CSV to JSON Converter
Convert CSV rows into JSON objects in your browser. Auto-detects delimiter, uses the header row as keys, and can coerce numbers and booleans. Free.
About the CSV to JSON Converter
This CSV to JSON converter transforms spreadsheet-style data into a clean JSON array you can drop straight into an API, a config file or a test fixture. Paste your CSV, and by default the first row becomes the keys for each object while every following row becomes an entry in the array.
It parses CSV properly per RFC 4180, so quoted fields containing commas, quotes or newlines are read as single values. The delimiter can be auto-detected or set manually to comma, semicolon, tab or pipe, and an optional type-coercion mode turns numeric strings into numbers, true/false into booleans and empty cells into null — giving you idiomatic JSON instead of everything-as-string.
Turn the header option off to get arrays of values instead of keyed objects. The result is pretty-printed and ready to copy or download as .json. All processing happens locally in your browser, so private exports stay on your machine.
How to Use the CSV to JSON Converter
- 1Paste your CSV data into the input box.
- 2Choose the delimiter (or leave it on auto-detect) and set whether the first row is headers.
- 3Toggle number/boolean conversion to suit your needs.
- 4Click Convert, then copy or download the JSON.
Frequently Asked Questions
Does the first row become the JSON keys?
By default, yes. With the header option on, the first row's cells are used as property names and each subsequent row becomes an object. Turn the option off and you'll get an array of arrays (raw values) instead.
What does 'convert numbers and booleans' do?
With it enabled, a cell like 42 becomes the JSON number 42, true/false become real booleans, and empty cells become null. With it disabled, every value stays a string — useful when you need to preserve things like leading zeros in IDs or phone numbers.
How does auto-detect pick the delimiter?
It examines the first line and counts candidate delimiters (comma, semicolon, tab, pipe), choosing whichever appears most. If your data is unusual, set the delimiter manually to be sure.
Are quoted fields with commas handled correctly?
Yes. The parser follows RFC 4180, so "Khan, Ali" is kept as one value and escaped quotes inside quoted fields are decoded properly, rather than breaking your columns.
Is my CSV uploaded anywhere?
No. Conversion runs entirely in your browser, so you can safely convert exports that contain personal or business data without it ever leaving your device.