Toolshub
convert · runs in your browser

Convert CSV to JSON without changing your values

Reads quoted fields, doubled quotes and newlines inside cells, sniffs the delimiter, and writes JSON or NDJSON with every value kept as the text it was.

$24 buyout · free up to 5.0 MB per file· 5 free runs a day

File
No file chosen

Leave the delimiter on auto unless the file has been misdetected.

Runs in this tab. Nothing is uploaded.

Result

Free tier: up to 5 MB per file, 1 files per run, 5 runs per day. A buyout for this tool is $24 once. Compare.

Licence: free tier.

What this page does differently

Most online converters break on the first field containing a comma, then rescue the file by trimming it into something wrong. This page parses properly: quoted cells may hold delimiters, newlines and doubled quotes; the delimiter is detected from the first line with quote awareness; blank lines are dropped rather than turned into empty objects. Values stay strings on purpose, so a postcode with a leading zero does not become a number.

parses quoted fields with embedded newlines and doubled quotes, sniffing the delimiter, and keeps every value as text so leading zeros survive

Sample input and output

Run Case Size Notes
Input 1,204 row supplier list, semicolon separated 145 KB exported from a spreadsheet in a German locale, where the delimiter is a semicolon and decimals use commas
Output Same rows as a JSON array 226 KB one object per row, column names taken from the header, all values still strings

These are the demo numbers this page was built against, not a guarantee for every file.

What you can check yourself

The claim What the test showed
A comma or a line break inside quotes stays in one field. The row "Doe, John" becomes 1 value, and a quoted note spanning 2 lines keeps its newline instead of splitting into 2 records.
A leading zero survives the conversion. An id written as 007 is emitted as the string "007", so a supplier code does not silently become the number 7.

Questions

Why are numbers quoted in the output?

Because a CSV has no types. A part number "007" and a price "1.50" are indistinguishable from text, and guessing turns the first into 7 and the second into a float that prints as 1.5. Keeping strings means the output says exactly what the file said.

Which delimiters are detected?

Comma, semicolon, tab and pipe. The first line is scanned with quote awareness, so a header like "last, first" does not make a semicolon file look comma-separated.

What happens to rows with missing cells?

They are kept, and missing trailing cells become empty strings rather than nulls, so the object shape stays consistent across records.

What is NDJSON for?

One JSON object per line, which is what bulk import endpoints and log pipelines usually want. It streams better than a single array and diffs cleanly in version control.

Is my data uploaded?

No. The file is read and converted in this tab. Nothing is sent anywhere, which is why the size limit is generous.

Price

This tool is $24 once, for as long as the tool exists. One payment, not a subscription. The licence is stored in this browser; the transaction id restores it elsewhere.

Free: 5 runs a day, 5 MB a file, a batch of 1. Buyout: a batch of 50, 200 MB a file.

Related