About the CSV to JSON Converter
This converter turns CSV data into JSON using a proper RFC4180-style parser that correctly handles quoted fields, embedded commas, escaped double quotes, and both Unix and Windows line endings — not a naive split on commas.
How to use it
- 01Paste CSV data, or load the example.
- 02Choose the delimiter used in your file (comma, semicolon, tab or pipe).
- 03Toggle whether the first row is a header and whether values should be type-inferred.
- 04Choose array-of-objects or array-of-arrays output, then copy or download the JSON.
Features
- Handles quoted fields with embedded delimiters, quotes and newlines
- Delimiter selection: comma, semicolon, tab, pipe
- Optional header row and automatic type inference for numbers, booleans and null
- Array-of-objects or array-of-arrays output modes
- One-click .json download
Practical examples
Spreadsheet exports
Convert a CSV exported from a spreadsheet into JSON for use in an app or API.
Data migration
Turn a semicolon-delimited European-format export into properly typed JSON records.
Limitations
- Very large files are limited by available browser memory since parsing happens in a single pass in the tab.
- Type inference is heuristic — a numeric-looking string like a ZIP code with a leading zero will be treated as text only if it doesn't fully match the number pattern.
Privacy
Parsing happens entirely in your browser; your CSV data is never uploaded.
Read the full privacy policy for how the site as a whole handles data.
Frequently asked questions
Does it handle commas inside quoted fields?
Yes, quoted fields — including ones containing the delimiter, escaped double quotes (""), or line breaks — are parsed correctly per RFC4180 conventions.
What does type inference do?
It converts numeric-looking strings to numbers, 'true'/'false' to booleans, and 'null' or empty cells to JSON null, leaving everything else as text.
Can I get an array of arrays instead of objects?
Yes, switch off 'Array of objects' to get a plain nested array matching the row/column structure.