How to convert CSV to JSON
- Paste your CSV into the input box, choose a file, or drag one onto the box.
- Check the parsed table. If columns look merged or split wrongly, change the delimiter.
- Choose whether the first row holds column names, and whether you want pretty or compact JSON.
- Copy the JSON or download it as a
.jsonfile.
Example
This CSV, with a quoted comma and an escaped quote:
id,name,notes
007,"Lee, Morgan","Asked about ""team"" pricing" becomes this JSON with the default settings:
[
{
"id": "007",
"name": "Lee, Morgan",
"notes": "Asked about \"team\" pricing"
}
] Notice that 007 is still a string. With type inference on it would also stay a string, because turning it into the number 7 would lose the leading zeros.
Supported input
- Comma, semicolon, tab, pipe or any other single-character delimiter.
- Fields wrapped in double quotes, including delimiters, doubled quotes (
"") and line breaks inside them. - Windows (CRLF), Unix (LF) and old Mac (CR) line endings, and files that mix them.
- UTF-8 text with or without a byte order mark, and UTF-16 files that start with a BOM. If a file is not valid UTF-8 you are told, and can choose to decode it as Windows-1252.
The file extension is not trusted: the content is checked, and Excel workbooks (.xlsx, .xls) are rejected with an explanation instead of producing garbage.
Options explained
Header row
With headers on, each row becomes an object whose keys are the column names, in their original order. With headers off, each row becomes an array of strings, which is useful for files without column names.
Type inference
Off by default. When on, true and false become booleans, and a value becomes a number only if a JSON parser would read it back as exactly the same text. So 42 and 0.1 convert, while 00123, 1.50, 1e5 and 12345678901234567890 stay as strings. Dates are never converted.
Empty rows and trimming
A completely empty row is one where every field is empty — for example a blank line or a line containing only commas. Trimming removes spaces and tabs at the start and end of each value, and is off by default because those spaces can be meaningful.
Inconsistent rows
If some rows have more or fewer fields than the header, the converter lists them and asks what to do: keep everything (missing values become null, extra values go into extra_1, extra_2…) or leave those rows out.
Limitations
- Maximum input size is 50 MB. Previews show the first 100 rows and the first 100 KB of output; downloads always contain everything.
- Output is always UTF-8 JSON. Nested JSON cannot be created from dotted column names — each column becomes one key.
- If a quoted field is never closed, the rest of the file cannot be read reliably, so no JSON is produced until the CSV is fixed. The error message shows the row and line.
Frequently asked questions
Why are my numbers in quotes?
By default every value is kept as a JSON string, because CSV has no types and guessing can damage data: ZIP codes and IDs lose leading zeros, and long numbers get rounded. Turn on "Infer numbers and true/false" to convert values that can be represented exactly.
Is my CSV uploaded anywhere?
No. Parsing and conversion run inside your browser using JavaScript and a Web Worker. The file is read from your device into memory and is discarded when you close or reset the page.
How large a CSV file can I convert?
Up to 50 MB per file. In testing on a desktop computer, a 50 MB CSV converted in a few seconds; on phones and older computers, files under about 10 MB are more reliable. Very large files may need to be split.
What happens with duplicate or blank column names?
JSON objects need unique keys, so the converter stops and asks. You can let it rename them (blank names become column_N and repeats get _2, _3 suffixes) or switch off the header row to produce arrays instead.
My file uses semicolons. Will that work?
Yes. The delimiter is suggested automatically from the first rows of your data, and you can change it to comma, semicolon, tab, pipe or any other single character if the suggestion is wrong.
Last updated .