Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. CSV & Data Analysis
  3. CSV Column Renamer
Add to favorites

CSV Column Renamer

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.

Rows never leave your deviceMore csv & data analysisJump to full guide

Initializing in your browser…

You might also like

CSV Column Filter

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.

CSV Viewer & Editor

Open a CSV as a sortable, searchable table, edit cells, rows and columns with undo, and download the result. Runs in your browser.

CSV Sorter

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.

A sample run

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
What CSV Column Renamer produces

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.

Clean Up CSV Column Names

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.

How to use

  1. 1Drop a CSV file on the page, choose one, paste rows, or press Try a sample to see abbreviated headers turned into snake_case.
  2. 2Choose a naming style, and switch on Expand abbreviations if the headers use short forms.
  3. 3Open More options for a prefix, a suffix or find and replace inside names.
  4. 4Type over any new name you want to set yourself.
  5. 5Read any notice about repeated names, then check the preview.
  6. 6Press Download renamed CSV.

Key features

  • Nine naming styles, from snake_case and camelCase to Title Case and dot.case
  • Sensible word splitting, so HTTPStatus becomes http_status and address1 stays one word
  • Expansion of about seventy common abbreviations such as qty, dept, addr and num
  • Prefix, suffix, and find and replace in names, with optional regular expressions
  • Rules applied to all columns or only the ones you tick
  • Hand-typed names that the rules leave alone
  • Repeated names numbered and reported, with an option to treat ID and id as the same
  • Copy all new names, or paste a list of names to rename in order
  • Data rows untouched, with the original delimiter kept in the download
  • Runs in your browser

How it works

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.

Where this fits a data pipeline

  • Preparing a file for a database

    Convert headers like Order Date and Cust ID to order_date and cust_id so they work as column names without quoting.

  • Matching code conventions

    Turn spreadsheet headers into camelCase keys before converting the file to JSON for a JavaScript app.

  • Combining exports from different systems

    Give two files the same header style so their columns line up when you merge them.

  • Making a file readable

    Expand cryptic abbreviations like ph_num and dept_cd so colleagues know what each column holds.

Tips & best practices

  • Copy names gives you a list you can paste into documentation or a database migration.
  • To rename from a mapping in a spreadsheet, copy the new names column and use Paste names; they are applied in column order.
  • Check the notice about repeated names before downloading, especially after a style that removes punctuation.
  • Use the Only apply to columns I tick switch to leave codes such as SKU or ISBN in capitals.

Examples

  • An HR export

    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.

  • The same headers in camelCase

    Switching the style gives firstName, lastName, emailAddress, phoneNumber, employeeId, departmentCode and startDate.

  • Two columns that collide

    First Name and first_name both want first_name, so the second becomes first_name (2) and a notice names both columns.

Frequently asked questions

Does renaming change my data?

No. Only the header row changes. Every data row is written exactly as it was, and the download keeps the file's delimiter.

How are names split into words?

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.

What happens when two columns end up with the same name?

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.

Can I rename just one or two columns?

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.

Why is id not expanded to identifier?

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.

Can I use a regular expression?

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.

Is my file uploaded?

No. The renaming happens in your browser and the download is created on your device.

Related tools and how they differ

  • CSV Column Filter: Use it to drop or reorder columns before or after renaming them.
  • CSV to SQL: Use it to turn the renamed file into a database table; names are quoted there, but tidy names are easier to query.
  • CSV Search & Replace: Use it to change values inside the data rather than the column names.

Private by design

Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.