Home › Developer Tools › TSV to JSON Converter

TSV to JSON Converter

Paste cells copied from Excel or Google Sheets, or open a .tsv file, and get clean JSON instantly. Choose an array of objects, an object keyed by an ID column, an array of arrays or column arrays, with numbers, booleans and empty cells typed the way your code expects.

Last updated:

Paste cells copied from Excel or Google Sheets. Everything runs in your browser.

Tip: select cells in a spreadsheet, press Ctrl+C (⌘C), then paste here.

Columns & detected types
Advertisement
Advertisement

How to use the TSV to JSON Converter

  1. Paste your data: select cells in a spreadsheet, copy, and paste them into the TSV box, or open or drop a .tsv file.
  2. Choose the output shape: an array of objects suits most APIs; a keyed object lets you look rows up by ID.
  3. Set the typing options: detect numbers and booleans, decide what empty cells become, and nest dotted headers if you need nested objects.
  4. Check the column list to confirm each column got the type you expect.
  5. Copy or download the JSON.

The four JSON shapes, side by side

For a two-row table with the header id, name, active, each output shape looks like this:

ShapeResultBest for
Array of objects[{"id":1,"name":"Ada","active":true},{"id":2,"name":"Alan","active":false}]REST APIs, fixtures, most JavaScript code
Keyed object{"1":{"name":"Ada","active":true},"2":{"name":"Alan","active":false}}Fast lookups by ID, translation files, config maps
Array of arrays[["id","name","active"],[1,"Ada",true],[2,"Alan",false]]Compact storage, chart libraries, spreadsheets APIs
Column arrays{"id":[1,2],"name":["Ada","Alan"],"active":[true,false]}Charts and data-science tools that read columns

How values are typed

Cell textJSON value (type detection on)Why
42, -3.5, 1e642, -3.5, 1000000Plain decimal numbers become JSON numbers
01234"01234"Leading zeros would be lost as a number
1,234.50, $20, 15%stringsFormatted values are kept exactly as shown
TRUE, falsetrue, falseSpreadsheet booleans in any letter case
nullnullThe literal word null
(empty)null, "" or no keyYour choice under Empty cells

Tip: if a spreadsheet shows formatted numbers such as 1,234.50, change the column format to plain numbers before copying, or the values arrive as text. Dates are always kept as the text you see, because JSON has no date type; ISO dates like 2025-01-20 are the easiest to parse later.

Working with comma-separated files instead? Use CSV to JSON, or switch the delimiter first with the TSV to CSV Converter.

Frequently asked questions

How do I convert Excel or Google Sheets data to JSON?

Select the cells including the header row, copy them, and paste into the input box. Spreadsheets put tab characters between cells when you copy, so the data arrives as TSV and is converted to JSON immediately, with the header row used as the property names.

What is the difference between TSV and CSV?

Both are plain-text tables with one row per line. TSV separates values with a tab character and CSV with a comma. Because tabs rarely occur inside real data, TSV usually needs no quoting, which is why spreadsheets use it for the clipboard.

Why are some numbers kept as text?

Values with a leading zero, such as ZIP codes (01234) or product codes (007), stay strings so the zeros are not lost. Integers larger than 9,007,199,254,740,991 also stay strings because JavaScript numbers cannot store them exactly. Untick Detect numbers & booleans to keep every value as a string.

What does the keyed object output do?

It turns the rows into one object where each row is stored under the value of the column you pick, for example {"1": {"name": "Ada"}}. This makes lookups by ID easy. If the key column has duplicate values, later rows replace earlier ones and you are warned.

How do I get nested JSON from flat columns?

Name your columns with dots, for example address.city and address.zip, and tick Nest dotted headers. Those columns become an address object with city and zip properties.

What happens to cells that contain line breaks?

When a spreadsheet copies a cell that contains a line break, tab or quote, it wraps the cell in double quotes. With Spreadsheet quotes ticked, those cells are read back as one value, line breaks included. Untick it if your file uses quote characters literally.

Is my data uploaded?

No. Parsing and conversion run entirely in your browser, so the data you paste or open never leaves your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

TSV to CSV ConverterConvert TSV to CSV and back, or between tab, comma, semicolon and pipe, with correct quoting.CSV to JSONConvert CSV data to JSON with live preview.Excel to JSON ConverterConvert Excel sheets (XLSX, XLS, ODS) to JSON with header row, type and shape options.JSONL to CSV ConverterConvert JSON Lines / NDJSON to CSV with flattened columns; streams large files locally.JSON to Excel ConverterTurn JSON into a styled .xlsx spreadsheet; nested arrays become their own linked sheets.JSON to CSVConvert JSON data to CSV for spreadsheets.Excel to CSVConvert XLSX spreadsheets to CSV.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.Excel Viewer (XLSX / XLS)Open XLSX, XLS and ODS spreadsheets in your browser without Excel.Line Ending ConverterConvert text and files between CRLF, LF and CR line endings.Markdown to HTMLConvert Markdown to clean HTML with a live editor.XML to JSONConvert XML to JSON with validation.Text Encoding ConverterDetect and convert text file encodings like UTF-8, UTF-16 and Latin-1.JSON ViewerExplore JSON as a collapsible tree, search keys and values and copy any node's path.TTF to WOFF2 ConverterConvert TTF and OTF fonts to WOFF2 or WOFF and get a ready @font-face CSS snippet.Chmod CalculatorConvert Linux file permissions between checkboxes, octal (755) and symbolic (rwxr-xr-x) notation.JSON to TypeScriptGenerate TypeScript interfaces or types from JSON, with nested types and optional fields.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.HTML Table GeneratorBuild HTML tables in an editable grid with styles, header rows, CSV import and live preview.Hex to Text ConverterConvert hex to text and text to hex with UTF-8 support and space, 0x, \x or comma formats.JSON to XML ConverterConvert JSON to well-formed XML with attributes, arrays and pretty print.JSON to YAML ConverterConvert JSON to clean YAML as you type, with indent, quoting and sort options.YAML to JSON ConverterConvert YAML to pretty or minified JSON, with errors pinned to the exact line.HTML to Markdown ConverterTurn HTML or pasted rich text into clean Markdown with tables and live preview.Markdown Table GeneratorBuild Markdown tables in a grid or paste from Excel/CSV, with alignment and preview.JSON ValidatorCheck JSON with the exact line and column of each error, fix tips and one-click auto-fix.Image to Base64Convert images to Base64 data URIs, CSS backgrounds and HTML img tags in your browser.Base64 to ImagePaste a Base64 string or data URI to preview, identify and download the image.JSON CompareCompare two JSON documents and see every added, removed and changed path.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.Decimal to HexConvert decimal to hex instantly with steps and signed mode.Binary to DecimalConvert binary to decimal instantly with steps and signed mode.Decimal to BinaryConvert decimal to binary instantly with steps and signed mode.Two's Complement CalculatorDecimal to two's complement binary and back for 4-64 bits, with invert-and-add-1 steps.XML to CSV ConverterConvert XML to CSV: detects repeating records, flattens nested data, pick your columns.CSV to XML ConverterConvert CSV to well-formed XML with custom root and row names, escaping and pretty print.TOML to JSON ConverterConvert TOML to JSON and JSON to TOML with a full v1.0 parser and clear error lines.JSON to Go StructTurn JSON into Go structs with inferred types, nested structs and json tags.Compare Excel FilesCompare two Excel spreadsheets cell by cell, highlight changes and export a diff report.CSV CleanerClean messy CSV in one click: trim spaces, drop empty rows and columns, fix headers, dedupe.CSV VLOOKUP ToolJoin two CSV or Excel files on a key column like VLOOKUP, with left, inner and full joins.Remove Duplicates in ExcelFind and remove or highlight duplicate rows in XLSX or CSV files by the columns you choose.GeoJSON ViewerView GeoJSON on a map, inspect and edit properties, validate against RFC 7946 and export.GPX ViewerOpen GPX tracks on a map with distance, elevation profile, moving time, speed and splits.JSON Repair ToolFix broken JSON automatically: trailing commas, quotes, comments, truncated data, with a diff.Karnaugh Map SolverSolve 2–6 variable K-maps: click cells or enter minterms to get the minimal SOP or POS with groups.Merge Excel FilesCombine XLSX, XLS and CSV files into one workbook or append all rows into a single sheet.Parquet File ViewerOpen Apache Parquet files in your browser: schema, rows, filters and CSV or JSON export.Query CSV with SQLRun SQL on CSV, Excel, JSON and Parquet files in your browser with DuckDB. Join and export.Online Serial MonitorTalk to Arduino, ESP32 and USB serial devices in your browser: log, send, plot and save.Split Excel FileSplit an Excel sheet into several files by row count or by each value in a column, as ZIP.SQL Create Table GeneratorDefine columns, keys, defaults and indexes; get CREATE TABLE SQL for MySQL, Postgres and more.SQL IN Clause GeneratorTurn a pasted list into a SQL IN ('a','b') clause with quoting, dedupe and 1,000-item chunks.SQL Online CompilerRun SQL queries online on SQLite with sample databases, a result grid, CSV export and .db save.SQL to ER DiagramPaste CREATE TABLE statements and get an entity-relationship diagram with keys and links.XML to XSD GeneratorGenerate an XML Schema (XSD) from sample XML: types, occurrences, attributes and namespaces.XML ValidatorCheck if XML is well-formed, see the exact line and column of each error and pretty-print it.Wildcard Mask CalculatorConvert a subnet mask or CIDR to a wildcard mask for ACLs and OSPF, with range and binary.CSV to VCF ConverterConvert a contacts CSV into a vCard (.vcf) file, mapping columns to name, phone, email and more.CSV to YAML ConverterConvert CSV rows to a YAML list of mappings with type inference and delimiter detection.Endianness ConverterSwap byte order of 16, 32 and 64-bit hex values and see big- and little-endian integers and floats.Excel to SQL ConverterTurn an Excel sheet into CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.Excel to VCF ConverterTurn an Excel contact list into a vCard .vcf file for iPhone, Android, Google or Outlook.File to C ArrayConvert any file into a C or C++ byte array header, like xxd -i, with const and PROGMEM options.Image to C ArrayConvert images to monochrome, RGB565 or RGB888 C arrays for OLED, LCD and TFT displays.JSON Merge ToolDeep-merge two or more JSON objects with array concat, replace or union and a conflict rule.PHP Unserialize OnlineDecode PHP serialize() strings to JSON, a tree or print_r, and serialize JSON back to PHP.SQL Dialect ConverterTranslate SQL between MySQL, PostgreSQL, SQLite, SQL Server, Oracle, BigQuery and more.
See all 129 Data & File Format Converters →