How to use it
- 1Paste CSV text, open a .csv file or load the example.
- 2Keep automatic delimiter detection or choose comma, semicolon, tab or pipe.
- 3Decide whether the first row contains headers and whether numbers and booleans should be detected.
- 4Copy or download the JSON, pretty-printed or minified.
Reliable CSV parsing
The converter follows the CSV conventions used by spreadsheet software: fields in double quotes may contain delimiters, line breaks and escaped quotes (""). Empty cells are kept as empty strings, and rows with fewer fields than the header are padded and reported.
Duplicate or empty headers are renamed (for example id and id_2) so that no column silently overwrites another in the JSON objects.
Type detection is your choice
By default every value stays a string, exactly as written. This protects postal codes, phone numbers and identifiers such as 00123 that would lose their leading zeros if converted to numbers.
When type detection is enabled, only canonical numbers without leading zeros and with at most 15 significant digits become JSON numbers, true and false become booleans, and empty cells become null. Everything else stays text.
Frequently asked questions
Which delimiters are detected?
Comma, semicolon, tab and pipe. The detected delimiter is shown below the editors, and you can override it at any time.
What if my CSV has no header row?
Turn off “First row contains headers”. The output becomes an array of arrays, one per row.
Are large files supported?
Files up to 10 MB can be opened. Very large inputs are processed when you press Process to keep the page responsive.