Rename CSV column headers one by one or all at once, in snake_case, camelCase or another style, with abbreviations expanded and duplicate names caught.
Initializing in your browser…
Choose which columns of a CSV to keep and in what order, preview the result, and download a smaller file with every value carried over unchanged.
Open a CSV as a sortable, searchable table, edit cells, rows and columns with undo, and download the result. Runs in your browser.
Sort a CSV by one or more columns, with numbers sorted by value, dates by day and item2 before item10, then download the sorted file.
An HR export uses a different header style in almost every column, and the data is about to be loaded into a database where snake_case names are the house style.
Header row
fname,lname,Email Addr,ph_num,EmpID,dept_code,Start Date
snake_case with abbreviations expanded
first_name,last_name,email_address,phone_number,employee_id,department_code,start_date camelCase instead: firstName,lastName,emailAddress,phoneNumber,employeeId,departmentCode,startDate
Each header is split into words first: Email Addr at the space, EmpID between the lower case p and the capital I, dept_code at the underscore. Then fname, lname, addr, ph, num, emp and dept are expanded, while id is kept as it is. Finally the style decides case and joiner, underscores for snake_case and capitals for camelCase. The data rows below the header are written unchanged.
Give every column in a CSV a consistent name in one step: pick a style such as snake_case or camelCase, expand short forms like qty and dept, add a prefix or suffix, or find and replace text inside names. Type a name by hand for any column that needs one. The data rows stay exactly as they were, and if two columns would end up with the same name you are told and they are numbered.
Why rename columns? Headers in real exports are a mix of styles: fname next to Email Addr next to EmpID. Databases, code and analysis tools work best with one predictable style, and some importers require it. Renaming by hand in a spreadsheet is slow and easy to get wrong when there are dozens of columns, and it risks touching the data. This tool changes only the header row.
Naming styles. Choose snake_case (first_name), camelCase (firstName), PascalCase (FirstName), kebab-case (first-name), SCREAMING_SNAKE_CASE (FIRST_NAME), Title Case, lower case with spaces, or dot.case. Each name is first split into words in a predictable way: at spaces and punctuation, between a lower case and an upper case letter, and inside runs of capitals, so HTTPStatus becomes http_status rather than h_t_t_p_status, while address1 stays one word. Characters the style has no place for, such as brackets or a dollar sign, are removed, and accented and non-Latin letters are kept.
Abbreviations, prefixes and patterns. Switch on Expand abbreviations to turn common short forms into full words: qty to quantity, dept to department, addr to address and num to number, among seventy in all, while id stays id. Under More options you can add text before or after every name, and find and replace inside names, either as plain text or as a regular expression. Switch on Only apply to columns I tick to limit the rules to some columns.
Hand edits and duplicates. Type straight into any column's new name to set it yourself; that name is kept whatever the rules say, and a reset button returns the column to the rules. If two columns end up with the same name, for example First Name and first_name both becoming first_name, the second is numbered first_name (2) and a notice says which columns collided. You can also choose to treat ID and id as the same name, as most databases do. A column with nothing left after the rules gets a name such as column_4 and is reported.
Details that save time. Copy all new names as a list, or paste a list of names from a spreadsheet to rename every column in order. Fields that some rows have beyond the header can be given names too. The preview shows the new header over the first rows, and the download keeps your file's delimiter, every data row byte for byte, standard quoting and a UTF-8 byte order mark. Nothing is uploaded.
Convert headers like Order Date and Cust ID to order_date and cust_id so they work as column names without quoting.
Turn spreadsheet headers into camelCase keys before converting the file to JSON for a JavaScript app.
Give two files the same header style so their columns line up when you merge them.
Expand cryptic abbreviations like ph_num and dept_cd so colleagues know what each column holds.
fname, lname, Email Addr, ph_num, EmpID, dept_code and Start Date become first_name, last_name, email_address, phone_number, employee_id, department_code and start_date with snake_case and abbreviations expanded.
Switching the style gives firstName, lastName, emailAddress, phoneNumber, employeeId, departmentCode and startDate.
First Name and first_name both want first_name, so the second becomes first_name (2) and a notice names both columns.
No. Only the header row changes. Every data row is written exactly as it was, and the download keeps the file's delimiter.
At spaces and punctuation, between a lower case and an upper case letter (userId), before the last capital of a run followed by lower case (HTTPStatus), and after a digit followed by a capital (col2Name). A letter next to a digit is otherwise not a split, so address1 stays one word.
The second and later ones are numbered, such as first_name (2), and a notice lists them. A header with the same name twice is valid CSV but most programs that read columns by name would only see one of them.
Yes. Type the new name straight into the column's box. If you also want a style applied to some columns only, switch on Only apply to columns I tick and tick them.
Because employee_id is what people expect to read and type. Other common short forms such as qty, amt, dept, addr and num are expanded.
Yes. In More options, switch on Find is a regular expression. An invalid pattern is reported instead of being applied. Replacements are inserted exactly as typed.
No. The renaming happens in your browser and the download is created on your device.
Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.