The Swap CSV Columns tool lets you reorder the columns of any CSV, TSV, or custom-delimited file by simply typing the new column order, such as 3,1,2. You can also drop columns by leaving out their number, or duplicate a column by listing it more than once. A live preview table shows the result instantly, and everything runs 100% client-side in your browser.
The Swap CSV Columns tool reorders the columns of a CSV, TSV, or custom-delimited file by letting you type the new column order as a simple list of column numbers. It also supports deleting columns (by leaving a number out) and duplicating columns (by listing a number more than once) — all processed instantly in your browser.
3,1,2Input (columns A, B, C):
Name,Age,City
Alice,30,Paris
Bob,25,Berlin
Column order typed: 3,1,2
Output (columns C, A, B):
City,Name,Age
Paris,Alice,30
Berlin,Bob,25
Same input as above. Column order typed: 1,1
This drops column 2 (Age) and column 3 (City) entirely, and lists column 1 (Name) twice:
Name,Name
Alice,Alice
Bob,Bob
3,1,2
The tool uses a lightweight CSV line parser that correctly handles double-quoted fields, including fields that contain the delimiter character or escaped double quotes ("") inside them. This covers the vast majority of real-world CSV and TSV files without requiring a full RFC 4180 parser.