CSV Column Renamer

Rename CSV headers while preserving data values and column order.

Processing stays in this browser. No CSV is uploaded.

Comma-separated CSV: up to 200,000 characters, 200 unique nonempty headers and 10,000 data rows.

Paste valid CSV to show columns.

Preserve mode keeps cell strings. Protection prefixes formula-like cells with an apostrophe, including negative numbers and headers; this changes their values. CSV quoting and line endings are normalized.

Rename headers without changing records

Paste CSV with a header row. An editable field appears for each column. Enter new names and select Rename columns, then copy or download the result. Column positions and all data records remain in their original order. This is useful when preparing an export for a system with different field names.

Example: adapt an export schema

Load the example with name and score headers. Change the first field to student and the second to points. The output begins with those new names while Ada's score stays 10, Lin's stays 2, and Kim's stays 10. Names containing commas are quoted correctly when exported.

Header rules

Provide one nonempty, unique name per column, with at most 200 characters per new name. Duplicate names produce an error rather than a file with ambiguous fields. Comparison is case-sensitive: Name and name are different, although some importing systems may treat them as equivalent. Whitespace is preserved, so check for accidental leading or trailing spaces.

Input must be comma-separated CSV with unique nonempty original headers. Rows must match the header width. Quoted commas, quotes and embedded line breaks are supported. Limits are 200,000 input characters, 200 columns and 10,000 data rows. This tool does not read spreadsheet workbooks or infer headers from unnamed data.

Export behavior

Preserve mode retains data strings and the new header text, normalizing only CSV quoting and line endings. Spreadsheet protection additionally prefixes formula-like cells and headers with an apostrophe, including negative values. That intentionally changes values; choose it only when needed for your destination.

Changing the input resets editable names to the new input headers and clears the old result. All processing remains local to the browser. Use CSV Column Selector to remove or reorder columns, or CSV Row Filter to select records; renaming alone does neither.