CSV to JSON
Convert spreadsheet exports into clean JSON with proper types.
Turn a spreadsheet into usable JSON
CSV is easy to export and awkward to work with. The moment a field contains a comma, a quote or a line break, a naive split produces garbage. This converter parses CSV properly, so quoted fields and escaped quotes survive intact.
Paste your rows or choose a file. The JSON appears immediately.
How to convert CSV to JSON
- Paste CSV text or drop a
.csvfile. - Pick the delimiter.
- Decide whether the first row is a header.
- Press Convert and copy the JSON.
The result is an array of objects, one per row, which is the shape most APIs and databases expect.
Details that usually break converters
Quoted fields. "Smith, John" is one field, not two. The parser respects quotes.
Escaped quotes. In CSV, a literal quote inside a quoted field is written as two quotes: "". This tool handles that correctly.
Line breaks inside fields. A quoted address can span two lines. Many simple converters split the file into rows first and destroy the record. This one reads the full record.
Leading zeros. A postcode like 01234 or a phone number like 07700 900123 should stay a string. Converting it to a number silently drops the zero.
Trailing empty columns. A stray comma at the end of every line creates a phantom field. The parser trims empty trailing columns so your JSON stays clean.
When you need real type conversion
A CSV has no types. Everything is text. This tool makes a reasonable guess: integers and decimals become numbers, true and false become booleans, and everything else stays a string. If your data needs strict typing, adjust it after conversion with JSON Formatter, where you can see the structure clearly.
For quick cleanup before conversion, Word Counter helps you estimate how much text you are dealing with. If the JSON then needs to travel inside a URL, Base64 Encoder can encode it.
Frequently asked
Does it handle commas inside quoted fields?
Yes. Quoted fields are parsed correctly, including commas, newlines and escaped quotes inside them.
Can I change the delimiter?
Yes. Choose comma, semicolon, tab or pipe. Semicolon is common in European exports where the comma is used as a decimal separator.
What if my file has no header row?
Turn off the header option and columns are named column_1, column_2 and so on.
Are numbers converted to numbers?
Yes, values that look like numbers become JSON numbers. Leading zeros are preserved as strings so codes and phone numbers are not damaged.
Is my data uploaded?
No. Parsing happens in your browser.