onlinetsvtools logo

Tsv column swapper

World's simplest tsv tool

World's simplest online Tab Separated Values column swapper. Just paste your existing TSV in the form below, specify column positions, and they will instantly get exchanged. Free, quick and very powerful. Paste TSV, swap columns. Created by programmers for programmers.
love commas more than tabs? foo,bar,baz
We also have Online CSV Tools — utilities for working with comma separated values. Check it out!
fullscreen fullscreen_exit
Swap this TSV column
Column to swap
With this TSV column
Column to swap
Tsv column swapper tool What is a tsv column swapper?
This tool exchanges a pair of columns in a TSV (Tab Separated Values) file. Columns are numbered from 1 and you can choose which columns to swap by their ordinal position or by their titles. Simple and easy!
Tsv column swapper examples Click to use
Swap first two TSV columns
This example exchanges the first and the second column. Note that you can use both column position and names interchangeably.
first unknown third 1st unk 3rd
second first third 2nd unk 3rd
Required options
These options will be used automatically if you select this example.
Column to swap
Column to swap
Pro tips Master online tsv tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinetsvtools.com/swap-tsv-columns?input=first%09unknown%09third%0A1st%09unk%093rd&swap-column-from=1&swap-column-to=unknown
All tsv tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly convert a TSV file to a JSON data structure.
Quickly convert a JSON data structure to TSV format.
Quickly convert a TSV file to XML markup.
Quickly convert XML markup to a TSV file.
Quickly convert a TSV file to YAML markup.
Quickly convert YAML data to a TSV file.
Quickly convert TSV data to CSV data.
Quickly convert CSV data to TSV data.
Quickly convert TSV data to nicely aligned text columns.
Quickly convert text columns to TSV columns.
Quickly convert TSV data to base64 encoding.
Quickly convert base64-encoded TSV data to TSV data.
Quickly convert a TSV file to URL-encoding.
Quickly convert a URL-encoded TSV file back to TSV.
Quickly change TSV delimiter to a new one.
Quickly prepend new columns at the start of a TSV file.
Quickly append new columns at the end of a TSV file.
Quickly insert new columns anywhere in a TSV file.
Quickly extract columns from a TSV file.
Quickly replace columns in a TSV file.
Quickly delete columns in a TSV file.
Quickly swap columns in a TSV file.
Quickly exchange TSV columns with rows.
Quickly exchange TSV rows with columns.
Quickly transpose a TSV file.
Quickly generate random TSV data.
Coming soon These tsv tools are on the way
Convert TSV to HTML
Convert a Tab Separated Values file to an HTML table.
Convert TSV to PDF
Convert a Tab Separated Values file to a PDF document.
Convert TSV to an Image
Draw Tab Separated Values as a table and output it as an image.
Convert TSV to Excel
Convert a Tab Separated Values file to an Excel spreadsheet.
Preview and Edit TSV
Show a Tab Separated Values file in the browser and allow easy editing.
Convert TSV to LaTeX
Convert a Tab Separated Values file to LaTeX code that generates a table.
Convert TSV to SQL
Convert a Tab Separated Values file to an SQL query.
Merge TSV Files
Merge together two Tab Separated Values files.
Delete Empty TSV Columns
Delete columns that have no values in a Tab Separated Values file.
Delete Empty TSV Rows
Delete rows that have no values in a Tab Separated Values file.
Truncate TSV Columns
Truncate contents of TSV column cells to the given length.
Trim TSV Columns
Trim values of TSV columns by removing any extra spaces around them.
URL-escape TSV
Convert TSV to URL-encoding.
URL-unescape TSV
Convert URL-encoded TSV to regular TSV.
Compress TSV
Minify a Tab Separated Values file. Remove extra spaces and indentation.
Diff Two TSV Files
Compare two Tab Separated Values files and visually display the differences.