Our Network


Coming Soon


Coming Later

TSV Column Replacer

World's Simplest TSV Tool

Simple and free online TSV column replacer. Just paste a Tab-Separated Values table into the form below, enter the replacement column in the options, and the tool will overwrite the selected column with the new fields. You can replace a column by position or header name, put one or several new columns in its place, choose how missing replacement fields are filled, and skip comment or empty rows. Created by programmers from team Browserling.

TSV Column Replacer

World's Simplest TSV Tool

Simple and free online TSV column replacer. Just paste a Tab-Separated Values table into the form below, enter the replacement column in the options, and the tool will overwrite the selected column with the new fields. You can replace a column by position or header name, put one or several new columns in its place, choose how missing replacement fields are filled, and skip comment or empty rows. Created by programmers from team Browserling.

Tool Options

Replacement Column

Paste the TSV field values that should replace the selected column.
Enter one value per row for a single new column. Use tabs when replacing with multiple new columns.
For example: Code ⇥ State A1 ⇥ Ready B2 ⇥ Hold

Column to Replace

Enter the TSV column position to replace. Column 1 is first; column -1 is last.
Enter the exact header text of the TSV column to replace.
Replace all columns with this header, not just the first match.

Missing Fields

Choose how to fill missing TSV fields.
Custom value to fill missing TSV fields.

TSV Cleanup

Ignore input rows that start with this character.
Ignore blank TSV rows.

What Is a TSV Column Replacer?

This online tool replaces columns in Tab Separated Values (TSV) files. It finds the TSV column that needs to be replaced and rewrites each field in that column, from the header cell to the final value in the last row. All other columns remain unchanged, so you can update one part of the table without rebuilding the entire TSV file. Column replacement is useful when one table column is outdated, imported under the wrong header, or stored in the wrong unit of measurement. To replace it, enter a new column of the same height in the options, using one value per line. You can also place several new columns where the original column used to be by entering tab-separated replacement values in the options. The column to replace can be selected by position. For example, 1 replaces the first column, 2 replaces the second column, and -1 replaces the last column. If the TSV has a header row, you can select the replacement column by header text, such as "name" or "status". When the same header appears more than once, the tool can replace only the first matching column, or it can replace every matching header in the TSV. If the height of the replacement column does not match the number of rows in the input TSV, the tool can automatically fill missing fields with either empty values or a custom string that you specify in the options. The tool can also clean the TSV before replacement by skipping rows that begin with a comment symbol and removing empty rows that contain no data. Tsv-abulous!

What Is a TSV Column Replacer?

This online tool replaces columns in Tab Separated Values (TSV) files. It finds the TSV column that needs to be replaced and rewrites each field in that column, from the header cell to the final value in the last row. All other columns remain unchanged, so you can update one part of the table without rebuilding the entire TSV file. Column replacement is useful when one table column is outdated, imported under the wrong header, or stored in the wrong unit of measurement. To replace it, enter a new column of the same height in the options, using one value per line. You can also place several new columns where the original column used to be by entering tab-separated replacement values in the options. The column to replace can be selected by position. For example, 1 replaces the first column, 2 replaces the second column, and -1 replaces the last column. If the TSV has a header row, you can select the replacement column by header text, such as "name" or "status". When the same header appears more than once, the tool can replace only the first matching column, or it can replace every matching header in the TSV. If the height of the replacement column does not match the number of rows in the input TSV, the tool can automatically fill missing fields with either empty values or a custom string that you specify in the options. The tool can also clean the TSV before replacement by skipping rows that begin with a comment symbol and removing empty rows that contain no data. Tsv-abulous!


TSV Column Replacer Examples

Click to try!
click me

Replace Trail Kilometers with Miles

In this example, we update a TSV trail list by replacing the second column. The input stores trail lengths in kilometers, but we want the output to show the same distances in miles. We choose column number 2 and replace the "km" values with converted "mi" values.

trail km difficulty Moose Lake Loop 2.7 easy Parker Ridge 5.4 moderate Bald Hills 10.4 hard Sulphur Skyline 8.0 hard Whistlers Trail 13.6 hard
trail mi difficulty Moose Lake Loop 1.7 easy Parker Ridge 3.4 moderate Bald Hills 6.5 hard Sulphur Skyline 5.0 hard Whistlers Trail 8.5 hard
Required options
These options will be used automatically if you select this example.
Paste the TSV field values that should replace the selected column.
Enter the TSV column position to replace. Column 1 is first; column -1 is last.
Enter the exact header text of the TSV column to replace.
Replace all columns with this header, not just the first match.
Choose how to fill missing TSV fields.
Custom value to fill missing TSV fields.
Ignore input rows that start with this character.
Ignore blank TSV rows.
click me

Split Flight Gate Codes in TSV

In this example, we replace one TSV column with two new TSV columns. The original flight table has a single "gate_code" field that combines the terminal and gate. We select this column by its header name and replace it with separate "terminal" and "gate" fields. The replacement data in the options uses tabs between the two new fields on every row.

flight city gate_code AX-104 Oslo T2-G14 BR-218 Rome T1-G08 CX-331 Lima T3-G22
flight city terminal gate AX-104 Oslo T2 G14 BR-218 Rome T1 G08 CX-331 Lima T3 G22
Required options
These options will be used automatically if you select this example.
Paste the TSV field values that should replace the selected column.
Enter the TSV column position to replace. Column 1 is first; column -1 is last.
Enter the exact header text of the TSV column to replace.
Replace all columns with this header, not just the first match.
Choose how to fill missing TSV fields.
Custom value to fill missing TSV fields.
Ignore input rows that start with this character.
Ignore blank TSV rows.
click me

Replace Photo Lenses with Type

This example replaces the "lens" column in a TSV photo table with a new "lens_type" column. Before replacing it, we remove the blank rows and skip the "# test shots" comment row. The cleaned TSV has four photo rows, but the replacement data provides lens types for only three of them, so the final photo receives the custom fill value "unknown".

photo camera lens IMG-104 Nikon 35mm # test shots IMG-118 Canon 24-70mm IMG-127 Sony 50mm IMG-132 Fuji 18-55mm
photo camera lens_type IMG-104 Nikon wide IMG-118 Canon zoom IMG-127 Sony prime IMG-132 Fuji unknown
Required options
These options will be used automatically if you select this example.
Paste the TSV field values that should replace the selected column.
Enter the TSV column position to replace. Column 1 is first; column -1 is last.
Enter the exact header text of the TSV column to replace.
Replace all columns with this header, not just the first match.
Choose how to fill missing TSV fields.
Custom value to fill missing TSV fields.
Ignore input rows that start with this character.
Ignore blank TSV rows.

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://onlinetools.com/tsv/replace-tsv-columns?input=trail%09km%09difficulty%0AMoose%20Lake%20Loop%092.7%09easy%0AParker%20Ridge%095.4%09moderate%0ABald%20Hills%0910.4%09hard%0ASulphur%20Skyline%098.0%09hard%0AWhistlers%20Trail%0913.6%09hard&replace-column=mi%250A1.7%250A3.4%250A6.5%250A5.0%250A8.5&use-column-number=true&column-number=2&use-column-name=false&column-name=km&replace-select-all=false&incomplete-format=set-empty-value&custom-value=N%252FA&remove-comments=false&comment-character=%2523&remove-empty-lines=false

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 change the TSV delimiter to a different symbol.
Quickly generate random TSV data.
Quickly extract selected columns from a TSV file.
Quickly delete selected columns in a TSV file.
Quickly remove tabs that go between TSV columns and merge all data.
Quickly add quotes around TSV columns.
Quickly remove quotes that surround TSV columns.
Quickly swap columns in a TSV file.
Quickly sort TSV data by selected column values.
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 add one or more columns before the first TSV column.
Quickly append new columns at the end of a TSV file.
Quickly insert new columns anywhere in a TSV file.
Quickly replace selected columns in a TSV file.
Quickly remove extra spaces around TSV columns.
Quickly truncate the contents of TSV cells to any length.
Quickly exchange TSV columns with rows.
Quickly exchange TSV rows with columns.
Quickly transpose a TSV file.
Quickly inspect the structure and contents of a TSV file.
Quickly check a TSV file for errors and report them.
Quickly test tab-separated data for row and field problems.
Quickly locate missing and blank cells in TSV data.
Quickly fill missing and blank cells in TSV data.

Coming Soon

These TSV tools are on the way!
Calculate TSV Entropy

Find the complexity of a TSV file.

Show TSV Structure

Create an abstract drawing that shows the structure of a TSV.

View and Edit TSV

Show a TSV file in a neat editor and allow easy editing.

Convert TSV to Double-TSV

Convert a TSV file to a double-TSV file.

Convert Double-TSV to TSV

Convert a double-TSV file to a regular TSV file.

Convert TSV to HTML Table

Convert a Tab Separated Values file to an HTML table.

Convert HTML Table to TSV

Convert an HTML table to a Tab Separated Values file.

Convert TSV to Markdown

Convert a TSV file to a Markdown table.

Convert Markdown to TSV

Convert a Markdown table to a TSV file.

Convert TSV to PDF

Convert a Tab Separated Values file to a PDF document.

Convert PDF to TSV

Convert a PDF document to a Tab Separated Values file.

Convert TSV to Image

Draw Tab Separated Values as a table and output it as an image.

Convert Image to TSV

Extract data in an image and format it as a TSV file.

Convert TSV to Excel

Convert a Tab Separated Values file to an Excel spreadsheet.

Convert Excel to TSV

Convert an Excel file to a Tab Separated Values file.

Convert TSV to LaTeX

Convert a TSV file to LaTeX code that generates a table.

Convert TSV to ASCII Table

Convert a Tab Separated Values file to a neat ASCII table.

Convert ASCII Table to TSV

Convert an ASCII table to a Tab Separated Values file.

Convert TSV to SQL

Convert a Tab Separated Values file to an SQL query.

Convert TSV to SQLite

Convert a Tab Separated Values file to an SQLite database.

Convert SQLite to TSV

Export tables from an SQLite database as TSV files.

Convert TSV to PSV

Convert a TSV file to a PSV (Pipe Separated Values) file.

Convert PSV to TSV

Convert a PSV (Pipe Separated Values) file to a TSV file.

Convert TSV to HSV

Convert a TSV file to a HSV (Hash Separated Values) file.

Convert HSV to TSV

Convert a HSV (Hash Separated Values) file to a TSV file.

Convert TSV to SSV

Convert a TSV file to a SSV (Semicolon Separated Values) file.

Convert SSV to TSV

Convert a SSV (Semicolon Separated Values) file to a TSV file.

Convert TSV to 0SV

Convert a TSV file to a 0SV (Null Separated Values) file.

Convert 0SV to TSV

Convert a 0SV (Null Separated Values) file to a TSV file.

Split a TSV File

Create multiple TSV files from the given TSV file.

Merge TSV Files

Merge together two Tab Separated Values files.

Delete Empty TSV Columns

Remove columns that have no values in a TSV file.

Delete Empty TSV Rows

Remove rows that have no values in a TSV file.

Delete Empty TSV Lines

Remove lines in a TSV file that are blank.

Delete TSV Comments

Delete TSV lines that are comments.

Filter TSV Data

Filter rows and columns that match a pattern.

Find Values in TSV

Find certain values in TSV cells.

Find Duplicate TSV Rows

Extract repeated rows in a TSV file.

Merge Duplicate TSV Rows

Combine duplicate rows in a TSV file.

Deduplicate TSV Rows

Remove repeated rows from a TSV file.

Delete Duplicate TSV Rows

Delete duplicate rows from a TSV file.

Compress TSV

Minify a TSV file and remove extra spaces and indentation.

Compare Two TSV Files

Diff two TSV files and visually display the differences.

Rotate TSV Columns

Rotate TSV columns to the left or right.

Rotate TSV Rows

Rotate TSV rows up or down.

Cut a TSV File

Cut a fragment from a TSV file.

Slice a TSV File

Extract a slice (rows/columns/cells) of a TSV file.

Randomize TSV Values

Shuffle all data values in a TSV file.

Randomize TSV Columns

Shuffle the order of TSV columns.

Randomize TSV Rows

Shuffle the order of TSV rows.

Sort TSV Rows

Sort values in a TSV rows.

Count TSV Columns

Find how many columns there are in the given TSV data.

Count TSV Rows

Find how many rows there are in the given TSV data.

Count TSV Entries

Find how many total entries there are in a TSV file.

Color a TSV File

Add colors to TSV data for easy visual overview of the file.

Add Errors to TSV

Create random errors in a TSV file for fuzz testing.

Create a Custom TSV

Generate a custom TSV with n rows and m columns.

Open a TSV File

Open a TSV file directly in your browser.


Subscribe!

Subscribe to our updates. We'll let you know when we release new tools and features, and when we organize online workshops.

Enter your email here


Feedback. We'd love to hear from you! 👋

Created with love by

We're Browserling — a friendly and fun cross-browser testing company powered by alien technology. At Browserling, we love to make developers' lives easier, so we created this collection of online TSV tools. Our tools have the simplest user interface that doesn't require advanced computer skills and they are used by millions of people every month. Behind the scenes, all our TSV tools are actually powered by our programming tools that we created over the last couple of years. Check them out!

49K
@browserling

Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!