Convert CSV or TSV to JSON and JSON to CSV in your browser, with a table preview. Handles quoted fields, detects the delimiter and reads Shift_JIS files. Infers numbers, booleans and null, flattens nested JSON into dot-notation columns, and can save CSV with a BOM for Excel.
CSV is the usual export format of spreadsheets and databases, while JSON is what most APIs and programs expect. This tool converts in both directions as you type and shows the data as a table, so you can check columns and spot broken rows before using the result. Files are read in your browser and never uploaded.
.csv, .tsv, .txt or .json file onto the drop area (or click it to select one). The mode switches automatically based on the file.| Option | What it does |
|---|---|
| Delimiter | Auto (detected from the first rows), Comma, Tab, Semicolon or Pipe |
| Output | Array of objects (one object per row) or Array of arrays |
| Indent | 2 spaces, 4 spaces, Tab or Minified |
| First row is header | Use the first row as keys. Empty or duplicate names become column3, name_2 and so on |
| Infer types (number, boolean, null) | Turn 42, true/false and empty or null cells into JSON values. Values with leading zeros such as 007 and integers too large to keep exactly stay strings |
| Option | What it does |
|---|---|
| Nested values | Flatten (a.b.c) creates columns like address.city and tags.0; JSON string writes nested objects and arrays as JSON text in one cell |
| Delimiter | Comma, Tab, Semicolon or Pipe (Tab downloads as .tsv) |
| Line ending | CRLF (Windows / RFC 4180) or LF |
| Download encoding | UTF-8, or UTF-8 with BOM (Excel) so Excel shows non-English text correctly |
| Header row | Include or omit the column names |
The input can be an array of objects, an array of arrays, or a single object. Columns are the union of all keys in the order they first appear, so objects with missing keys simply get empty cells.
"" escapes, and commas or line breaks inside quotesCSV input:
JSON output (array of objects, types inferred):
No. Reading, decoding and converting all happen in your browser.
Excel assumes a legacy encoding for CSV files without a BOM. Set Download encoding to UTF-8 with BOM (Excel) before downloading.
Type inference never converts values with leading zeros, so codes and IDs are not changed. Turn off Infer types if you want every value as a string.
Yes. Auto usually detects the semicolon; you can also select Semicolon (;) under Delimiter.