CSV to JSON Converter
Convert between CSV and JSON in your browser, with configurable delimiters and header detection.
Privacy: This tool runs entirely in your browser. Your data never leaves your device and is never uploaded to any server.
How to use this CSV to JSON converter
- Paste or load your CSV, or your JSON.
- Choose the delimiter your file actually uses.
- Decide whether the first row is a header.
- Copy the converted output — the data never leaves your browser.
Choosing the right delimiter
Guessing the delimiter is the most common reason a CSV import produces a single column of nonsense.
| Delimiter | Name | Common in |
|---|---|---|
| Comma | CSV | US, UK and most English-language tools |
| Semicolon | CSV (European) | Locales that use a comma as the decimal separator |
| Tab | TSV | Spreadsheet exports and log files |
| Pipe | PSV | Data that already contains commas and semicolons |
When to use CSV and when to use JSON
- CSV — spreadsheets, exports from databases, anything a human will open in Excel.
- JSON — APIs, configuration, nested or typed data.
- CSV is flat by nature and cannot express nesting without inventing conventions.
- If your data has arrays or objects inside it, JSON is the honest format.
Headers and types
With a header row, each column becomes a property name and each row becomes an object. Without one, you get an array of arrays.
CSV is text only, so 007 becomes the number 7 and a leading plus sign disappears. If the exact text matters, keep the values as strings.
Where CSV quietly breaks
- A comma inside a value — it must be wrapped in double quotes.
- A quote inside a value — it must be doubled.
- A newline inside a value — legal, but many parsers miss it.
- Different line endings and a byte order mark on the first column name.
- Regional files that use a semicolon instead of a comma.
Frequently asked questions
Which delimiters are supported?
Comma, semicolon, tab and pipe. Choose the one your CSV uses.
How are CSV headers handled?
You can treat the first row as object keys, or convert CSV into a plain array of arrays.
Is my data uploaded?
No. Conversion runs entirely in your browser.
Why do my numbers come out as strings?
CSV has no types — every field is text. Values are converted to numbers or booleans when they look unambiguous, but an id like 01234 should stay a string.
What happens if two columns have the same name?
A JSON object cannot hold the same key twice, so the later column overwrites the earlier one. Rename the duplicates before converting.
Can I convert nested JSON back into CSV?
Only the top level flattens cleanly. Nested objects and arrays have no natural CSV representation, so flatten them first or keep them as JSON strings.