CSV to JSON
Paste CSV and get a clean JSON array of objects, with header detection and automatic number and boolean typing.
Converted to JSON live as you type. Nothing leaves your browser.
Options
JSON
How to convert CSV to JSON online
Paste your CSV
Paste or type comma-separated values into the input. The delimiter is detected automatically, so semicolon and tab separated data work too.
Set the options
Toggle First row is header to control whether rows become objects keyed by column names, and Detect numbers and booleans to get typed values instead of strings.
Copy the JSON
The pretty-printed JSON array updates live as you type. Click Copy JSON to put it on your clipboard.
Why use this tool
Converts as you type
There is no convert button. Parsing is debounced and reruns on every edit, so the JSON always reflects the current CSV.
A real CSV parser
Quoted fields, embedded commas, line breaks inside cells, and escaped quotes are all handled correctly.
Header row control
With a header row, each line becomes an object keyed by column names. Without one, each line becomes a plain array of values.
Optional type detection
Fields that look like numbers or true and false can become real JSON numbers and booleans, or stay strings to protect zip codes and IDs with leading zeros.
Skips empty lines
Blank lines in the input are dropped instead of turning into empty objects in the output.
Your data stays on your device
The parser runs in your browser, so a CSV full of customer records is never uploaded anywhere.
About this tool
This tool converts CSV to JSON with a full CSV parser rather than naive comma splitting. The output regenerates live as you type, debounced so a large paste does not reparse on every keystroke. With the header option on, the first row supplies the keys and every following row becomes an object in a JSON array; with it off, each row becomes an array of raw values. A second toggle converts number-like and boolean-like fields into real JSON types.
CSV is what spreadsheets, CRMs, and database exports produce, while JSON is what APIs, fixtures, and JavaScript code consume. Typical jobs include turning an Excel or Google Sheets export into seed data for a test suite, reshaping an analytics export before posting it to an API, and making sense of an awkward CSV by reading it back as structured objects.
Exports like these regularly contain names, emails, and order data, so where the conversion runs matters. Here it runs entirely in your browser and the CSV never leaves your device. To go the other way, the JSON to CSV converter flattens objects back into rows. To validate or re-indent the result, use the JSON formatter, and if the destination is a config file, JSON to YAML continues the chain.
Frequently asked questions
- How does the CSV to JSON converter work?
- Paste or type CSV into the input and the JSON updates live as you type. By default the first row is treated as the header, so each remaining row becomes a JSON object keyed by those column names. The delimiter (comma, semicolon, or tab) is detected automatically.
- Is my CSV uploaded to a server?
- No. The conversion runs entirely in your browser. Your data never leaves your device, is never sent to a server, and is not stored or logged.
- What if my CSV has no header row?
- Turn off "First row is header" and each row becomes a JSON array of values instead of an object. This is useful for raw tabular data where the columns are not named.
- Why are some values numbers and others strings?
- With "Detect numbers and booleans" enabled, values that look like numbers or true/false are converted to real JSON numbers and booleans instead of strings. Turn it off to keep every value as a string, which is safer for things like zip codes or IDs with leading zeros.
- Can it handle quoted fields and commas inside values?
- Yes. Standard CSV quoting is supported, so a field wrapped in double quotes can contain commas, line breaks, and escaped quotes without breaking the parse.
Related tools
JSON Formatter & Validator
Pretty-print, minify, or explore JSON as a collapsible tree, with syntax errors shown inline.
Line Sorter
Sort lines alphabetically or in natural order, shuffle them, remove duplicate lines, trim whitespace, and reverse line order.
Angle Converter
Convert an angle between degrees, radians, gradians, turns, arcminutes and arcseconds, with a degrees-minutes-seconds breakdown.
Area Converter
Convert area between metric and imperial units instantly.
Binary to Decimal Converter
Convert a binary number to its decimal value, with hexadecimal and octal readouts.
Celsius to Fahrenheit Converter
Convert Celsius to Fahrenheit instantly, and edit either side to convert back.