Swap Columns

Swap Columns

swap-columns

Column Swapper

Swap or reorder columns in delimited text or tables.

Rows Processed: 0
Columns in Output: 0

ℹ️ Column Swapping Tips

How to specify column order:

  • By index: "3,1,2" (swaps columns 3 and 1, keeps 2)
  • By header: "Email,Name,ID" (if headers exist)
  • Mixed: "ID,3,1" (combines header names and indexes)
  • Reverse: "-1" (reverses all columns)
Input (CSV) Column Order Output
John,Doe,john@example.com 3,1,2 john@example.com,John,Doe
ID|Name|Email|Date
1|Alice|alice@test.com|2023-01-01
Email,Name,ID Email|Name|ID
alice@test.com|Alice|1
A;B;C;D -1 D;C;B;A

Note: When using header names, matching is case-sensitive. Specify "-1" to reverse all columns.