Swap CSV Columns
Choose two column positions, exchange them without changing the other fields, and download the resulting CSV without uploading your data.
UTF-8 CSV up to 10 MB. Quoted fields may contain commas and line breaks.
Enter two different 1-based column positions.
A QUICK WALKTHROUGH
How to use this tool
- Choose a CSV file or paste comma-separated text.
- Enter the two 1-based column numbers to exchange.
- Review, copy, or download the reordered CSV.
CSV-aware column exchange
Quoted commas, escaped double quotes, and line breaks inside fields are parsed as part of the field. Only the selected positions are exchanged; every other cell stays in its original position.
Predictable boundaries
Column numbers are 1-based and must exist in every row. Rows with different field counts are rejected so the result does not silently move data into the wrong column.
Local and private
Reading, parsing, swapping, previewing, copying, and downloading happen in your browser. Files are limited to 10 MB and the preview is limited to 100,000 characters.
GOOD TO KNOW
Common questions
Does this upload my CSV?
No. The CSV is read and transformed locally in your browser.
Which column numbers should I enter?
Use the positions from left to right, starting at 1. For example, enter 1 and 3 to swap the first and third columns.
Are quoted commas and line breaks supported?
Yes. Standard double-quoted CSV fields, escaped quotes, and embedded line breaks are preserved.
Can I swap a column with itself?
No. Enter two different existing column numbers.