About the CSV to JSON Converter tool
Spreadsheets export CSV, but your code, API mock or NoSQL database wants JSON. This CSV to JSON converter reads comma, semicolon, tab or pipe separated data and produces a clean JSON array in real time. With “First row is header” on, each line becomes an object whose keys come from the header row; turn it off and you get an array of arrays instead.
The parser is written to handle the messy parts of real CSV files. Fields wrapped in double quotes can contain the delimiter, escaped quotes written as two double quotes, and even line breaks, just like files saved from Excel or Google Sheets. The delimiter can be detected automatically by looking at the first lines, and duplicate or blank header names are made unique so no data is lost. With “Typed values” on, numbers become JSON numbers and true or false become booleans, while codes with leading zeros such as PIN codes or 00450 stay as text.
The whole conversion runs in your browser. Your CSV is never uploaded, so you can convert customer exports and financial data without privacy worries.
How to use CSV to JSON Converter
- Paste CSV into the “CSV input” box, click “Open file” to load a .csv or .tsv file, or click “Load sample”.
- Leave Delimiter on “Auto-detect” or choose comma, semicolon, tab or pipe yourself.
- Toggle “First row is header” and “Typed values” to suit your data, and pick the JSON indent.
- Review the JSON output; an unclosed quote is reported with the line it starts on.
- Click “Copy” or “Download” to save the result as a .json file.
Features
Robust CSV parsing
Supports quoted fields, escaped double quotes and line breaks inside quotes.
Delimiter auto-detect
Recognises comma, semicolon, tab and pipe separated files automatically.
Header row option
Get an array of objects keyed by column name, or a plain array of rows.
Typed values
Numbers and true/false become real JSON types, while leading-zero codes stay strings.
Excel-friendly
Handles UTF-8 byte order marks and Windows line endings from spreadsheet exports.
When to use it
- Turn a Google Sheets export into seed data for a database or API mock.
- Convert a product or price list into JSON for a static website.
- Load CSV reports into JavaScript or Python scripts without writing a parser.
- Prepare bulk import files for tools that accept only JSON.
- Check how a tricky CSV with quotes and line breaks will be interpreted.
Frequently asked questions
How are quotes and commas inside a field handled?
Fields wrapped in double quotes may contain commas, line breaks and quotes written as two double quotes (""). They are unwrapped into the original text in the JSON.
What does “Typed values” change?
Plain numbers like 42 or 3.5 become JSON numbers, true/false become booleans and null becomes null. Values with leading zeros, such as 007 or a PIN code starting with 0, are kept as strings.
What if a row has more or fewer columns than the header?
Missing cells become null, and extra cells are added under generated keys like column7 so no data is dropped.
Can it read files saved from Excel?
Yes. Save your sheet as CSV UTF-8, then open it with “Open file”. Semicolon-separated files from European Excel versions are auto-detected.
Why is my whole file one big string?
The delimiter was probably wrong or a quote was never closed. Pick the delimiter manually and check the error message for the line number of the open quote.
Is my CSV uploaded to a server?
No. Parsing happens entirely in your browser and the data never leaves your device.