Convert CSV or TSV without guessing data types
Paste text or choose a UTF-8 file, select the actual delimiter and decide whether the first record contains field names. This parser supports comma, tab, semicolon and pipe delimiters. It does not infer a dialect from a small sample.
For example, the text below keeps the product code as "0012", not the number 12. The comma inside the quoted product name is part of the value.
code,name 0012,"Tea, green"
The result is [{"code":"0012","name":"Tea, green"}]. A doubled quote inside a quoted field becomes one quote. Newlines inside quoted fields stay in the string. CRLF, LF and CR record endings are accepted.
Resolve errors rather than silently losing fields
Duplicate or empty header names are rejected because object keys would otherwise overwrite data. Without a header, keys are column_1, column_2 and so on. Every record must have the same field count. Unexpected text after a closing quote, quotes inside unquoted fields and unclosed quoted fields are errors, not automatic repairs.
The preview displays at most 100 records. Copy JSON and Download JSON include every accepted record, up to the stated limits. An empty field is an empty string; it is not inferred to be null. JSON object keys such as __proto__ are treated as ordinary data.
To go in the other direction, use JSON to Table. Format and inspect the JSON with JSON Formatter. Quoting conventions follow the common approach described in RFC 4180; this tool also explicitly supports the additional delimiters above.
CSV to JSON FAQ
Will dates, numbers and leading zeros change?
No type inference is performed. Values remain strings, including 0012, long identifiers, true, null, dates and exponent-shaped text. This cannot restore digits already changed by a spreadsheet before export.
What happens to blank lines and empty fields?
The default skips completely blank records outside quoted fields. A quoted empty string and a record containing delimiters are not blank records. Whitespace-only records contain real spaces. Empty fields remain empty strings. Turn off skipping if blank records are meaningful; they must still match the column count.
Can I import Excel files or other encodings?
This reads delimited UTF-8 text, not XLSX or XLS workbooks. Export a sheet as UTF-8 CSV or TSV first. Invalid UTF-8 is rejected rather than silently replaced. A leading UTF-8 BOM is accepted; UTF-16 and legacy encodings are not auto-detected.
Are formulas executed or sanitized?
No formula, HTML or JavaScript is executed. Formula-shaped values remain literal strings in JSON; they are not made safe for a later spreadsheet import. Review any subsequent conversion or import policy.
What limits and privacy apply?
Files are at most 4 MiB; decoded text is at most 2,000,000 characters. There are up to 5,000 data records, 200 columns and 100,000 data cells. Header-only input can produce an empty array. Input stays in this page; downloads include the full accepted data, which may be sensitive.