᠎᠎᠎          
51K

Tsv to json converter

World's simplest tsv tool
World's simplest online Tab Separated Values to JavaScript Object Notation converter. Just paste your Tab Separated Values in the form below and they will instantly get converted to JSON. Free, quick, and very powerful. Paste TSV, get JSON. Created by programmers from team Browserling.
we have a comic! comic for nerds
We have created our own comic! Check it out! New comics every week.
JSON Indentation
Indent JSON with spaces.
How many spaces per indent?
Indent output with tabs.
Don't indent and compress JSON.

What is a tsv to json converter?

learn more about this tool
This tool transforms Tab Separated Values (TSV) files to JavaScript Object Notation (JSON) data structures. The output JSON is an array of hashes, where each hash contains one TSV row. The first row of the TSV data is used for column titles. The JSON hash keys are the values on the first row and the JSON hash values are the TSV values of that row. You can change the JSON's indentation to spaces, tabs or output compressed JSON. Coming soon, you will be able to switch between various JSON output formats, such as an array of arrays and an array of objects. TSVabulous!

Tsv to json converter examples

Click to use
Transpile TSV to JSON
This example translates TSV to JSON and sets JSON indentation to 1 space. The input data contains 3 columns and 3 rows. The first row defines column titles, and the remaining 2 rows contain the data. When the input is converted into JSON, the column titles are used as JSON keys.
foo bar baz aaa bbb ccc ddd eee fff
[ { "foo": "aaa", "bar": "bbb", "baz": "ccc" }, { "foo": "ddd", "bar": "eee", "baz": "fff" } ]
Required options
These options will be used automatically if you select this example.
Indent JSON with spaces.
How many spaces per indent?
Minified JSON
In this example, we minify the output JavaScript object. The input TSV contains the most popular games of the last decade. The first column contains the years and the second column contains the game titles.
Year Video Game 2010 Mass Effect 2 2011 Dark Souls 2012 The Walking Dead 2013 Dota 2 2014 The Last of Us 2015 The Witcher 3 2016 Overwatch 2017 Legend of Zelda 2018 Minecraft 2019 Resident Evil 2 2020 Mortal Kombat 11
[{"Year":"2010","Video Game":"Mass Effect 2"},{"Year":"2011","Video Game":"Dark Souls"},{"Year":"2012","Video Game":"The Walking Dead"},{"Year":"2013","Video Game":"Dota 2"},{"Year":"2014","Video Game":"The Last of Us"},{"Year":"2015","Video Game":"The Witcher 3"},{"Year":"2016","Video Game":"Overwatch"},{"Year":"2017","Video Game":"Legend of Zelda"},{"Year":"2018","Video Game":"Minecraft"},{"Year":"2019","Video Game":"Resident Evil 2"},{"Year":"2020","Video Game":"Mortal Kombat 11"}]
Required options
These options will be used automatically if you select this example.
Don't indent and compress JSON.
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/convert-tsv-to-json?input=foo%09bar%09baz%0Aaaa%09bbb%09ccc%0Addd%09eee%09fff&indent-use-spaces=true&indent-spaces=1
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 columns from a TSV file.
Quickly delete columns in a TSV file.
Quickly add quotes around TSV columns.
Quickly remove quotes that surround TSV columns.
Quickly swap columns in a TSV file.
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 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 replace 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.
Coming soon These tsv tools are on the way
Display TSV Statistics
Print information about a TSV file.
Calculate TSV Entropy
Find the complexity of a TSV file.
Show TSV Structure
Create an abstract painting that shows the structure of a TSV.
View and Edit TSV
Show a TSV file in the browser 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 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 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.
Split a TSV File
Create multiple TSV files from the given TSV file.
Merge TSV Files
Merge together two Tab Separated Values files.
Delete TSV Tabs
Remove tabs that go between TSV columns and merge all data.
Delete Empty TSV Columns
Delete columns that have no values in a TSV file.
Delete Empty TSV Rows
Delete rows that have no values in a TSV file.
Filter TSV Data
Filter rows and columns that match a pattern.
Find Values in TSV
Find certain values in TSV cells.
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.
Slice a TSV File
Extract a slice (rows/columns/cells) of a TSV.
Randomize TSV Columns
Shuffle the order of TSV columns.
Randomize TSV Rows
Shuffle the order of TSV rows.
Sort TSV Columns
Sort values in a TSV column.
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.
Open a TSV
Open a TSV file in your browser.