The quick answer
Tab-separated text becomes a 2-space-indented JSON array: the first row supplies each record's keys, every following row becomes one object, and number-like cells (30) become numbers while true/false become booleans. A 2-row paste reports 2 records × N columns. Tabs are the only delimiter — comma files belong on the CSV to JSON page. All local, nothing uploads.
What the TSV to JSON does
The genuine privacy problem in data conversion is the upload itself. Exports carry real customer records, configs stash API keys, logs collect tokens and personal data — hand any of it to a server-side converter and you have trusted a third party with everything. Do the same work in the browser and the privacy is structural rather than promised: parsing and serialization are pure computation, the built-in JSON engine and a streaming CSV parser handle tens of thousands of rows without breaking a sweat, and normal-size files convert just as fast as anywhere. TSV to JSON was built on that side of the line.
With TSV to JSON specifically: JSON formatting, validation and tree inspection; CSV↔JSON in both directions with delimiter control; YAML, XML, TSV, NDJSON and Markdown-table conversions; CSV operations like sorting, filtering and deduplication; code generation from JSON into TypeScript, Java and Go — that is the workbench TSV to JSON belongs to. The processing libraries load on demand, and nothing you paste leaves your browser.
Tab-separated in, typed JSON out
In plain terms, the TSV to JSON is a utility that runs in your browser for one conversion: tab-separated text in, a JSON array out — the header row supplies each record's keys, and the output is pretty-printed with a 2-space indent. "Browser-based" is the important part: the computation runs on your machine using JavaScript, which means your data is never uploaded to a server, never stored, and never seen by anyone but you. The regulars: analysts pasting database CLI output and analytics-tool exports, and developers handling the tab-separated files that bioinformatics pipelines and spreadsheet clipboards produce.
The TSV to JSON belongs to our json, csv & data tools collection, and it pairs naturally with the CSV to JSON Converter and JSON to CSV Converter — tools built to chain together in real workflows rather than live as isolated one-offs.
How to use the TSV to JSON — step by step
Here is the complete workflow for the tsv to json, from empty input to a result you can copy and trust. Every step is optional except the first two.
Load an example or paste your own data
The Load example button fills the input with a realistic sample; otherwise paste your own. The tool works live: you paste one format and the converted format appears — direction switches with one click.
Choose your options
Mode buttons and controls switch the transformation's behavior — direction, convention or parameters. The output re-renders instantly with each change.
Review the output panel
The result panel updates live and reports what changed — counts, notes and status messages confirm the operation behaved as expected rather than silently doing nothing.
Copy, download or continue
Copy puts the result on your clipboard; Download writes it as a file; and where chaining makes sense, "Use as input" pipes the output straight back for the next transformation.
Verify with the worked example
The methodology section below shows exactly what the tool computes, with a real worked example — the fastest way to confirm your understanding matches the tool's behavior.
Clear when done
Clear wipes the input instantly. Because processing is local, there is no history, no server copy and no residue — privacy by architecture.
First-use overhead is effectively zero: paste your tsv to json input, glance at the result, copy it away. Depth is available below, never required.
How the conversion actually works
The parse is a character-by-character state machine in the RFC 4180 tradition, with the tab character as the delimiter: quoted fields and doubled quotes are honored even though real-world TSV rarely quotes, and embedded content survives intact. The first row becomes the key names (trimmed of surrounding whitespace); every following row becomes one object. Coercion is policy, not accident: a cell matching a plain numeric pattern becomes a number — 30 lands as 30 — and true/false (either case) become booleans, while everything else stays a string.
The output side is deterministic. Records land in input order, serialized once with a 2-space indent; a row with fewer cells than the header gets empty strings for the missing keys rather than shifting values left; and blank lines are dropped before they can become empty objects. The note bar reports the shape — N records × M columns — which is the fastest way to confirm the columns you expected are the columns you got.
A detail worth knowing: TSV is the quiet standard in more places than people realize — the internal clipboard format spreadsheets use when you copy a range, the default layout of many database command-line clients, and the lingua franca of bioinformatics files. If it arrives tab-separated, it converts here; comma-separated material belongs one page over, on the CSV to JSON Converter.
A worked conversion you can check by hand
Take a three-column paste: a header of name, age, city (tab-separated), then Alice, 30, NYC and Bob, 25, LA on their own lines. The output is a 2-element JSON array — {"name":"Alice","age":30,"city":"NYC"} and {"name":"Bob","age":25,"city":"LA"} — with age holding actual numbers, not strings, and the note bar reading 2 records × 3 columns. Check it by eye: header-to-key mapping, coercion, and order are all visible in those two objects.
Now the edges. A cell reading 007 becomes the number 7 — the leading-zero trap, and the reason zip-code-like columns deserve a second look before the output feeds anything typed. A row with only two of the three columns simply gets an empty string for the missing key instead of absorbing its neighbor's value. And a completely blank line in the middle of the file disappears without becoming an empty record. Every one of those behaviors is visible in the output panel the moment you paste the case.
Accuracy and edge cases
Trustworthy output includes its own fine print. Here are the tsv to json's accuracy guarantees — and its documented boundaries.
On the TSV to JSON page, exactness comes from real parsers rather than split-on-tab habits. The state machine walks the text character by character, so quotes and embedded delimiters cannot split a field that should have stayed whole; the coercion rules are the only judgment call, and they are stated in the methodology above rather than implied. The list below covers the remaining edge cases that generate questions in practice.
- JSON parse error at a position — the formatter shows the exact character position and surrounding context; look for trailing commas, single quotes or unescaped newlines.
- Generated types show "unknown[]" — the source array was empty; add a sample element or type the field manually.
- Numbers lose precision on round-trip — very large integers exceed JavaScript’s safe integer range (2^53); treat such fields as strings.
TSV to JSON vs the alternatives
You have options for tsv to json-style work. Here is how the mainstream alternatives stack up — including where they legitimately win.
| Alternative | Why people pick TSV to JSON instead |
|---|---|
| Server-side converters | Identical output without uploading customer data or credentials to a third party — and no file size quota |
| jq and command-line tools | Zero install and a visual tree for exploration; the command line still wins for scripted pipelines |
| IDE plugins | Works in any browser on any machine — including the locked-down laptop in the meeting room |
Frequently asked questions
What is the delimiter — and can I choose one?
The tab character, and no: there is no delimiter selector on this page, because a file that needs comma parsing is a different job — the CSV to JSON Converter in the same collection handles comma, with the same coercion rules and the same local processing.
Is the output always valid JSON?
Yes. The output is machine-generated and serialized with a 2-space indent, so it is valid JSON by construction — malformed input can only fail the parse, never produce malformed output.
How large a file can I convert?
Tens of thousands of rows are comfortable work for a normal laptop, and the limit is your device's RAM because no server exists. The parse is one pass over the text, so size scales linearly with the file.
Does the tool coerce my values?
Yes, by stated policy: cells matching a plain numeric pattern become numbers, and true/false (either case) become booleans; everything else stays a string. Watch the leading-zero case — 007 becomes the number 7.
Where does TSV actually come from?
More places than people realize: spreadsheet clipboards (copy a range and you have TSV), many database command-line clients, analytics-tool exports, and bioinformatics formats. Any of them paste straight into this tool.
Are quoted fields supported?
Yes — the parser is a full state machine in the RFC 4180 tradition, so quoted fields and doubled quotes are honored even with the tab delimiter. Real-world TSV rarely quotes, but when it does, the field comes through intact.
What happens to rows with missing columns?
A row with fewer cells than the header gets empty strings for the missing keys — values never shift left into the wrong column. The note bar's N records × M columns count is the quick way to spot a mis-shaped file.
Where does my data go during conversion?
Nowhere. Parsing and serialization are browser-side JavaScript with zero transmission to any server. The page works offline after loading, and closing the tab erases everything you pasted.
Can I convert JSON back to TSV?
Yes — the sibling JSON to TSV tool in the same collection runs the reverse direction with the same tab convention. Round-tripping a small file through both is a common sanity check.
Is the TSV to JSON free to use?
Free to use, unlimited: no account to create and no email to hand over. TSV to JSON runs entirely in your browser, so each extra use costs this site nothing and costs you nothing either. Clear your cache and reload as often as the job requires.
Sources and further reading
Sources and further reading
- YAML 1.2 specification(yaml.org)
- W3C XML specification(w3.org)
- MDN: Working with JSON(developer.mozilla.org)
- RFC 8259 — the JSON specification (IETF)(datatracker.ietf.org)
- RFC 4180 — CSV format common definition(datatracker.ietf.org)
We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.