← All text tools

CSV Column Swapper

Swap two columns of a CSV file or move one column to a new position, picking columns by header name or number and keeping or dropping the header row.

  • Free
  • No sign-up
  • Works on any device

About CSV Column Swapper

Reorder CSV columns when a system expects them in a different sequence, for instance Email before Name for an import template. Choose Swap to exchange two columns, or Move to take one column out and drop it into a numbered position, which shifts the ones in between. Columns are listed by number and header, so you can pick Email or the third column with the same ease. Rows that are shorter than the widest row are padded so that values never slide into the wrong column, and you can leave the header row out of the result.

How to use CSV Column Swapper

  1. Paste your CSV and mark whether the first row is a header.
  2. Choose Swap two columns and pick both, or choose Move and give the new position, where 1 is the first column.
  3. Check the table under the result and copy or download the reordered CSV.

Why use this tool?

Also known as

Frequently asked questions

Can I use it on a file without a header row?

Yes. Untick the first-row option and the columns are named Column 1, Column 2 and so on, so you can still choose them by number.

What is the difference between swap and move?

Swap exchanges exactly two columns and leaves every other column where it was. Move lifts one column out and inserts it at the position you give, and the columns in between shift by one place.

Will my quoted values and separators survive?

Yes. Quoted fields, embedded line breaks and the original separator (comma, semicolon, tab or pipe) are preserved in the output.

Is CSV Column Swapper free?

Yes. CSV Column Swapper on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put CSV Column Swapper on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools