Swap TSV Columns lets you quickly rearrange two columns in a tab-separated file. Just pick the column numbers, paste or import your TSV, and get updated output instantly.
How to Use:
- Paste your tab-separated data into the Input TSV box or use Choose File to import a text-based file
- In the Options box, enter two column numbers (1-based) you want to swap
- Toggle Include header in swap if you want the first row (typically column names) included in the swap
- Use Maximize output to expand the output area for easier review
- Click Swap to see the result live
- Use Copy Output or Export to File to save your new TSV
- Hit Clear All to reset inputs, toggles, and the preview
What Swap TSV Columns can do:
Swap TSV Columns lets you fix the order of two columns without needing a spreadsheet or script. It’s perfect for TSV cleanup, reordering fields for compatibility, or quick restructuring of tabular data. You can choose whether or not to include the header row, and changes are shown immediately in a live-updating output window. Everything runs in your browser with no uploads or dependencies.
Example:
Input:
name age country
Alice 30 USA
Bob 25 UK
Swapping columns 1 and 3 gives:
country age name
USA 30 Alice
UK 25 Bob
Common Use Cases:
Swap TSV Columns is useful for anyone working with structured data analysts, devs, sysadmins who need to change column order for reports, scripts, APIs, or just to tidy up exported files. It’s fast, flexible, and requires no code.
Useful Tools & Suggestions:
Once you’ve used Swap TSV Columns to rearrange things, TSV Column Exporter is handy if you need to pull out just one of those swapped fields. And if you’re curious how the table’s shaping up, Show TSV Structure gives you a quick visual overview.