Sort TSV Columns

Sort TSV columns by their headers in your browser. Control column order, direction, and header inclusion with live updates and no setup required.

Paste your input above or import a file below.
No file chosen
Supported file types: .tsv, .txt
Total characters: 0
Options
Sort descending
Preserve original order
Include header row
Maximize output

How to Use:

  • Paste your tab-separated data into the Input Text box.
  • Or click Choose File to import a .tsv or .txt file directly.
  • Toggle Sort descending to reverse the sort direction.
  • Toggle Preserve original order to override sorting and keep columns in their original sequence.
  • Toggle Include header row to treat the first row as column headers. Turn this off to sort anonymous columns.
  • Toggle Maximize output to expand the output textarea height.
  • Output updates instantly as you type or adjust any toggle.
  • Click Copy Output to copy the sorted result or Export to File to download it as a .tsv.
  • Use Clear All to reset everything including input, toggles, and output counter.

What Sort TSV Columns can do:

Sort TSV Columns gives you full control over how tab-separated data columns are rearranged. It works by sorting headers alphabetically, either A–Z or Z–A, depending on your settings. It can also skip the header row if needed, allowing anonymous column reordering. And if you just want to preview your data while keeping the original column layout, you can do that too all while getting a live preview of the output. It’s ideal for anyone working with structured TSV data who wants clean column sorting without opening spreadsheet software or writing a script.

Example:

Input:

Name	Age	Country
Alice 30 US
Bob 27 UK
Charlie 33 AU

Output (sorted ascending):

Age	Country	Name
30 US Alice
27 UK Bob
33 AU Charlie

Common Use Cases:

Sort TSV Columns is great when you’re wrangling data in TSV format and need to quickly reorder it by column name. It’s especially helpful for developers, researchers, or anyone exchanging data between systems. Whether you’re organizing fields before a merge, exporting cleaner tables, or prepping inputs for scripts that expect sorted keys, this tool takes care of it in seconds. No Excel. No coding. Just paste, sort, and go.

Useful Tools & Suggestions:

After you Sort TSV Columns, use Count TSV Columns to double-check that everything’s still in place. And if you want to tweak the layout further, TSV Column Swapper lets you move fields exactly where you want them.