Category: Developer tools

CSV Column Reorder

System ideaMissing a tool?

Reorder CSV columns by name or position

Paste CSV data and list the columns in the order you want them, by header name or by 1-based position, to reorder every row at once. Columns left off the list keep their relative order at the end. Runs entirely in your browser.

Reordered CSV
team,name,score
Blue,Ada Lovelace,92
Green,Grace Hopper,88

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

Spreadsheet exports and merged CSV files rarely put columns in the order a downstream tool expects, and reordering them by hand means editing every single row consistently. This tool reads the column order you give it, by header name when the file has a header row or by 1-based position either way, and rewrites every row, including the header, in that order; any column you don't mention keeps its relative position and is simply appended after the ones you named, so nothing is dropped.

How to use it

  1. Paste CSV data, or load the example.
  2. Choose the delimiter and whether the first row is a header.
  3. List the new column order by name or position, then copy the reordered CSV.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Is my data uploaded anywhere?
No. Parsing and reordering happen in JavaScript running in the page, so nothing you paste ever leaves your device.
What happens to a column I don't list?
It isn't dropped: every column left out of the order list is appended after the named ones, keeping its original relative order.
Can I use column positions instead of names?
Yes. Any entry in the order list that's a whole number is treated as a 1-based column position, which also works when the file has no header row.