TSV转JSON
TSV转JSON;输入、输出与参数范围在实施前细化。
Use the first row as column names. Quoted fields may contain tabs, quotes, or line breaks.
使用步骤
如何使用
- Paste TSV with a header row, including quoted tabs, quotes, or line breaks when needed.
- Choose an array of objects or an object keyed by the first column and review parsing errors.
- Copy the JSON or download it as a .json file.
A local TSV parser
The converter reads tab-separated fields in your browser. It supports quoted fields, doubled quotes, embedded tabs, embedded line breaks, empty cells, and rows with missing trailing cells.
Two deliberate JSON shapes
Array of objects keeps every row. Object keyed by first column uses the first header as each object key, which is useful for records with stable IDs. Duplicate headers and empty keys are reported instead of silently producing ambiguous output.
Private browser processing
Parsing, formatting, copying, and downloading happen locally. Your TSV is not uploaded or sent to a server.
常见问题
你可能还想知道
Can a TSV cell contain a tab or line break?
Yes. Put the cell in double quotes. A literal double quote inside a quoted cell is written as two double quotes.
What happens to empty cells?
They become empty JSON strings, so the column remains present in every output object.
How does keyed object output work?
The first header becomes the key column. Each row is stored under its first-column value; empty keys are rejected.
Does this upload my data?
No. The converter runs entirely in your browser.