Why your leading zeros disappeared somewhere else
Most CSV-to-JSON converters guess the type of every cell. 007 becomes 7, 1.50 becomes 1.5, +1-555-0100 becomes a number or NaN, and a product code reading TRUE becomes a boolean. A ZIP code loses its leading zero and the record is now wrong in a way no error message will ever mention.
A CSV field is text, and this tool emits it as a JSON string exactly as written. That is the default and it is not a setting you have to find. If you do want numbers and booleans, set Values to Inferred — its label says it changes values, and the tool reports how many cells it changed.
Even then inference is conservative: a value becomes a number only if writing that number back produces the identical text, so 007 and 1.50 stay strings under inference too. A quoted field is never inferred at all, because the quotes were a statement that it is text.
How to use it
- Paste CSV, or bring it straight from JSON to CSV.
- Choose the Delimiter. Comma is the default; many European exports are semicolon-delimited. If the file looks like it uses a different one, the tool says so — but it never switches for you.
- Press Convert or Ctrl/Cmd + Enter, then Copy or Download
data.json.
Turn Header row off for a file that starts with data, and the output uses positional keys instead. Output shape switches between an array of objects and an array of arrays — the same parse, serialised differently.
What happens to a broken header row
Real exports have broken headers, and the usual failure is silent: two columns called name and one of them overwrites the other, so a 12-column file becomes a 10-key object and nobody notices.
Here every header defect is named. Duplicate names are suffixed so both columns survive and you are told which ones were renamed. An empty header gets a positional name and a warning. If a generated name would collide with a real header, the conversion stops rather than producing a file where two different columns share a key.
Ragged rows — rows with more or fewer fields than the header — are reported, never averaged away. A short row's missing keys are absent rather than guessed at; a long row's surplus values are kept under an explicit overflow key so nothing is dropped on the floor.
Quoting, line endings, the BOM and NUL bytes
Quoting follows RFC 4180: a field may be quoted, a quote inside a quoted field is doubled, and a quoted field may contain the delimiter and line breaks. Embedded newlines survive into the JSON string. A file that ends inside an open quote is an error that names the line where the quote opened, not the end of the file, because that is the line you have to fix.
CRLF, LF and a lone CR are all accepted as record separators. RFC 4180 names only CRLF; accepting the others is a stated deviation, and a file that mixes them is reported so you know the source was inconsistent.
A UTF-8 byte-order mark is removed before parsing — otherwise it becomes part of the first header name and every lookup on that key fails. A UTF-16 BOM is refused rather than guessed at, because this input is text and re-decoding it would be a guess. A NUL byte is preserved and escaped as \u0000, with a note: it usually means a binary file was pasted.
Cells that a spreadsheet would treat as formulas
A cell beginning =, +, -, @, a tab or a line break can be executed as a formula when a CSV is opened in Excel or LibreOffice Calc.
Converting to JSON does not execute anything, so the value is kept exactly as written — changing it would be data corruption. But you are warned, because the JSON may well be converted back to CSV later. OWASP's own position is that there is no universal CSV sanitisation that is safe for every spreadsheet application, so this tool will not tell you a file is safe.
Round-tripping with JSON to CSV, and exactly what it costs
Convert JSON to CSV and back, and you can diff the result against the original with the Diff Checker. Characters and order survive that trip. Five things do not, and all five are properties of CSV rather than bugs:
- Types. Numbers and booleans come back as strings unless you opt into inference.
- Null. CSV has no null; an explicit
nulland an empty string are the same empty cell. - Absent versus empty. A key that was missing in one row comes back as an empty string, because CSV gave it a cell.
- Nesting. Flattened paths such as
address.citycome back as flat keys, not as a nested object. - Key order across rows. Every row comes back with the header's column order.
These are disclosed here rather than discovered later, and each one is asserted by a test.
Frequently asked questions
Is my CSV uploaded?
No. Parsing runs in a Web Worker in your browser, and this tool does not send your input over the network. A URL inside a cell is text: it is never fetched, previewed or resolved.
Can I open an Excel file here?
No. An .xlsx file is a ZIP container, not CSV. Export it as CSV from the spreadsheet first, and pick the delimiter your locale used.
Why was my file refused for being too large?
JSON is usually bigger than the CSV it came from — every row repeats every key. The tool measures the output as it writes it and stops rather than building a string that would freeze the tab, and it stops rather than truncating, because a truncated file that claims to be complete is worse than a refusal.
Why does the tool suggest a delimiter but not use it?
Because a converter that silently changes how it read your file is the second problem on this page. The suggestion is information; switching is your decision.