CSV to JSON converter
Turn CSV into a JSON array or JSON Lines, or turn JSON back into CSV, with a parser that handles quotes, commas and line breaks inside fields.
Runs in your browser. Nothing is sent to Dizo. Files are read locally and never uploaded.
How to use it
- Choose a direction: CSV to JSON array, CSV to JSONL, or JSON or JSONL to CSV.
- Paste your data or upload a file. Delimiters are detected automatically, or pick one.
- For CSV input, say whether the first row is a header, and turn on type detection if you want numbers and
true/falseas real JSON values. - Check the record count and any warnings under the input.
- Copy or download the result. Use output as input flips the conversion so you can check a round trip.
The CSV rules this parser follows
CSV looks simple until a value contains a comma. The common standard (RFC 4180) handles that with double quotes: a field wrapped in "..." can contain the delimiter, line breaks and quote characters, and a quote inside a quoted field is written twice (""). Splitting each line on commas breaks on all three cases. This parser reads character by character, so "Northwind, Inc." stays one value and a two-line note stays in one record.
It also strips a byte-order mark from Excel exports, accepts \r\n and \n line endings, skips blank lines, and warns when the input ends inside an open quote. Repeated header names are made unique (email, email_2), and missing headers become column_1, column_2 and so on. Semicolon-delimited files from European Excel and tab-separated files are detected from the first row.
JSON array or JSONL
A JSON array wraps every record in one [...] value. It suits small datasets, config files and most APIs that accept a list. JSONL (JSON Lines, also called NDJSON) puts one complete JSON object on each line with no surrounding array. It is easy to stream, append and split, which is why batch and data-pipeline tools often use it for large result files.
Worked example: the sample has a header and 3 data rows, so it becomes 3 objects with 5 keys each. The notes field for Priya contains a line break, which becomes \n in JSON, and Sam's quoted word becomes \"async\". With type detection on, 420 becomes the number 420. Without it, every value stays a string.
Going from JSON back to CSV
The JSON-to-CSV direction accepts a JSON array of objects, a single object, or JSONL. Columns are the union of every key seen, in first-seen order, so records with different fields still line up. Missing keys and null become empty cells. Nested objects and arrays are written as JSON text in a single cell, since CSV has no nested structure.
Watch out for type detection with identifiers. Zip codes like 02134 and IDs with leading zeros are kept as strings because the leading zero would be lost as a number, and numbers longer than 15 digits stay as strings to avoid rounding. If a column must stay text, such as phone numbers, leave type detection off.
FAQ
Is there a file size limit?
Only your browser's memory. Files of tens of megabytes usually convert fine. The on-screen preview is shortened for very large outputs, but copy and download include everything.
Why did my numbers turn into strings?
Type detection is off by default so values such as zip codes and IDs are not changed. Turn on Detect numbers, true/false and empty as null to get JSON numbers and booleans.
Is my data uploaded?
No. Conversion runs in your browser and nothing is sent to Dizo or anyone else.
Related tools
CSV deduplicator
Upload or paste a CSV, pick the columns that identify a duplicate, and download the file with repeat rows removed, all in your browser.
CSV splitter
Split a large CSV into smaller files of a set number of rows, keep the header in every file, and download each part from your browser.
Dizo API request builder
Choose a Dizo endpoint, edit the example request, and copy working cURL, Python or JavaScript code that calls https://api.dizo.ai/v1.
Domain extractor
Paste emails, URLs or messy text and get a clean, deduplicated list of root domains, with subdomains, paths, ports and www stripped.