CSV to JSON Converter
Convert CSV to JSON without destroying your identifiers.
What you paste
Parsed in your browser — never uploadedHow this reads your output
The CSV is parsed to RFC 4180, so quoted fields containing commas or newlines survive intact rather than splitting rows. Each header becomes a key, and values that look like numbers or booleans are converted, with two deliberate exceptions: anything with a leading zero and anything longer than fifteen digits stays a string. Those two rules exist because a postcode starting with a zero and a long order number are identifiers rather than quantities.
What the results mean
- Values converted from text
- How many cells became numbers or booleans. Everything else, including identifiers, stays as strings.
- Duplicate column names
- A JSON object cannot hold the same key twice, so a duplicate header means the later value silently wins.
- Problems in the source
- Ragged rows and unterminated quotes in the CSV. These produce misaligned data that looks perfectly valid afterwards.
Common problems and fixes
- Leading zeros disappeared in another converter
- It converted the value to a number, which is the standard failure for postcodes, product codes and telephone numbers. This converter keeps anything with a leading zero as a string for exactly that reason. If you need everything as strings, that is a safer default for a data pipeline than clever type detection.
- Rows are shifted by one column
- A quoted field containing the delimiter, split by something that did not respect quoting. The problems count above catches this. Splitting CSV on commas is the most common way to corrupt a file, since a field containing a comma is entirely legal and completely invisible until it breaks something.
Frequently asked questions
What happens to empty cells?
They become null. CSV cannot distinguish an empty value from a missing one, so this is a choice rather than a fact. If your pipeline treats null and empty string differently, be aware the distinction was never in the file.
Can it handle a CSV with no header?
Not directly, since the first row always becomes the keys. Add a header row before pasting. Converting a headerless file to an array of arrays instead is a different shape that most consumers do not want.
Which delimiter does it use?
It is detected by looking at consistency across several lines rather than counting one, so a European file using semicolons with commas inside decimal numbers is read correctly. The detected delimiter is reported so you can confirm.
Put this on your own site
Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.
<iframe src="https://runthetests.com/embed/csv-to-json/" width="100%" height="720" style="border:1px solid #e5e5e5;border-radius:8px" title="CSV to JSON Converter" loading="lazy"></iframe>
Preview it at https://runthetests.com/embed/csv-to-json/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.