CSV to JSON Converter

Output
Examples:

Last updated: 2026-09-17

Paste CSV data and get a JSON array of objects. The first row is treated as headers by default. Toggle type inference to automatically convert numbers, booleans, and null values. Supports comma, semicolon, tab, and pipe delimiters. Parsing runs in your browser using PapaParse.

Leading zeros

Type inference converts “00123” to the number 123, losing leading zeros. Disable type inference if you need to preserve postal codes, phone numbers, or other zero-padded values.

Mixed delimiters

If your CSV uses inconsistent delimiters, PapaParse will attempt auto-detection. For best results, select the correct delimiter explicitly.

Multi-line values

Values enclosed in double quotes can span multiple lines. The parser handles this correctly, but some text editors may display the CSV incorrectly before parsing.

Frequently asked questions

How does type inference work?
When enabled, values that look like numbers are converted to JSON numbers, "true"/"false" become booleans, and empty strings become null. When disabled, all values remain strings. Disable type inference if you want to preserve leading zeros (e.g. zip codes "00123") or numeric-looking IDs.
Does it handle quoted fields with commas?
Yes. The parser follows RFC 4180 — fields enclosed in double quotes can contain commas, newlines, and escaped quotes. This is standard CSV behavior and works automatically.
What happens if my CSV has no header row?
Disable the "First row is header" option. The parser will use array indices as keys (col0, col1, col2, etc.) and every row becomes an array of values instead of an object.
How are empty cells handled?
With type inference enabled, empty cells become null. Without type inference, they remain empty strings. Cells containing only whitespace are preserved as-is.
Can I convert large CSV files?
Yes. Parsing uses PapaParse which handles large files efficiently. The converter processes the input in your browser — no data is uploaded to a server. For files over 1MB, the conversion may take a moment but will not freeze the page.

Related converters