TSV to JSON Converter
Convert Tab-Separated Values (TSV) to clean JSON arrays or objects. Supports smart number parsing, minification, and compressed output formats.
About
This TSV to JSON Converter transforms raw Tab-Separated Values into structured JavaScript Object Notation (JSON). While TSV is excellent for simple spreadsheets and database exports (often simpler than CSV due to lack of comma escaping), JSON is the standard for web APIs and NoSQL databases.
The tool uses a deterministic parsing algorithm where Data is split by the newline character \n into rows, and each row is split by the tab character \t. If the Smart Parse option is enabled, values like 42 or true are converted from strings to their native types, reducing file size and post-processing needs.
Formulas
The conversion follows a mapping function where a TSV row R is transformed into a JSON Object O based on the Header row H.
Reference Data
| Feature | TSV (Tab-Separated) | JSON (JavaScript Object) |
|---|---|---|
| Delimiter | Tab Character (\t) | Commas, Braces, Colons |
| Structure | Flat Table (2D Grid) | Hierarchical Tree |
| Data Types | String (mostly) | String, Number, Boolean, Null, Array, Object |
| Readability | High (looks like text) | Medium (syntax heavy) |
| Web Native | No | Yes (Native JS support) |