Simple online tools for developers, networking, text and conversions.
Text Tools
Swap Columns in TSV Files Examples
Review practical Swap Columns in TSV Files examples so you can understand expected input, output, and common patterns faster.
Why examples matter for Swap Columns in TSV Files
Use this tool to swap the positions of two TSV columns. It is useful for fixing column order, matching import templates, cleaning exports, and reorganizing TSV data without manual editing.
Example pages are especially useful for text tools because they show
what good input looks like, what kind of output to expect, and how the tool behaves in common scenarios.
Swap Columns in TSV Files examples
Swap name and role by header
Input
name
role
name email role
John john@example.com admin
Anna anna@example.com editor
Output
role email name
admin john@example.com John
editor anna@example.com Anna
Useful when the column order needs to be corrected fast.
Swap columns 1 and 3
Input
1
3
id title status
1 Book ok
2 Pen ok
Output
status title id
ok Book 1
ok Pen 2
Supports both header-based and index-based selectors.
How to use these examples
Put the first column selector on line one
Put the second column selector on line two
Leave a blank line
Paste the TSV below
Run the tool to swap the two columns
Compare your own input with the Swap Columns in TSV Files examples below before running the tool.
Keep the input format as close as possible to the example pattern when you test a new case.
If your output looks wrong, check spacing, separators, symbols, or the exact value type first.
Common mistakes in sample input
Using a column that does not exist
Fix: Check the TSV header or use valid 1-based positions.
Selecting the same column twice
Fix: Use two different selectors.
Forgetting the blank line before the TSV body
Fix: Put the two selectors first, then a blank line, then the TSV.
Next steps
After reviewing these examples, run the live tool with your own input.
If your task involves a follow-up step, the related page can help you move to the next tool in the workflow.