— Column Swapper

Column Swapper and Reorderer

Quick Tips

  • This tool runs entirely in your browser - your data stays private.
  • Press Ctrl+V (Cmd+V on Mac) to quickly paste text.
  • Use the Copy button to save your result to clipboard.
  • Bookmark this page for quick access!

Rearrange and swap columns in CSV and delimited data.

Examples

Input
A,B,C
1,2,3
Output
C,A,B
3,1,2 (order: 3,1,2)
Input
First,Last,Email
John,Doe,john@test.com
Output
Email,First,Last
john@test.com,John,Doe
Input
a	b	c
Output
c	b	a (reversed)

Frequently Asked Questions

Enter the column positions in your desired order, separated by commas. If you want columns 3, 1, 2 (move third column to first), enter "3,1,2". Column numbers start at 1 for the first column.

Yes, simply don't include unwanted column numbers. If you have 5 columns but only want columns 1, 3, and 5, enter "1,3,5". The output will only contain those columns in that order.

To swap columns 2 and 3 in a 4-column file, enter "1,3,2,4". This keeps columns 1 and 4 in place while swapping 2 and 3. List all columns with the two you want swapped in exchanged positions.

Yes, header rows are reordered along with the data. You can also choose to reference columns by header name instead of position number, making complex reordering more intuitive.

Yes, include a column number multiple times to duplicate it. "1,2,1,3" outputs column 1, then 2, then 1 again, then 3. This is useful when you need the same data in multiple positions.

Cookie Preferences

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.

Cookie Preferences

Manage your cookie settings

Essential Cookies
Always Active

These cookies are necessary for the website to function and cannot be switched off. They are usually set in response to actions made by you such as setting your privacy preferences or logging in.

Functional Cookies

These cookies enable enhanced functionality and personalization, such as remembering your preferences, theme settings, and form data.

Analytics Cookies

These cookies allow us to count visits and traffic sources so we can measure and improve site performance. All data is aggregated and anonymous.

Google Analytics _ga, _gid

Learn more about our Cookie Policy