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

  1. Put the first column selector on line one
  2. Put the second column selector on line two
  3. Leave a blank line
  4. Paste the TSV below
  5. Run the tool to swap the two columns

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.

Run the main tool

Open the main Swap Columns in TSV Files page and test your own real input.

Open Swap Columns in TSV Files