CSV to JSON
Convert a header-based CSV table into JSON records while preserving every cell as text.
Loading tool…
How to use CSV to JSON
Move spreadsheet-style data into a JSON array without silently changing IDs, dates, or leading zeros. The first record supplies unique property names and all later records must have matching widths.
- Paste CSV with one non-empty, unique header row and choose its delimiter.
- Select Run tool to create a JSON record for every data row.
- Review the result, then copy it or download the generated file.
Good to know
- Up to 200,000 characters, 5,001 records, 200 columns, and 50,000 characters per cell. Quotes must follow CSV rules; output CSV uses formula-safe apostrophe prefixes where needed.
- All cells remain strings, including empty cells. Header names are case-sensitive and no type inference is performed.
- Malformed quotes report the logical record and field plus the physical line and UTF-16 column in the original input. Unclosed fields point to their opening quote; no repair is applied.
- JSON output is limited to 1,000,000 characters. Long column names repeat in each record and may require splitting a table into smaller batches.
Keep a quoted multiline cell and a leading-zero ID
Choose the comma delimiter and paste this CSV, including the newline inside the quoted note. The header becomes JSON property names and each cell stays a string; the ID is not automatically converted to a number.
Comma-separated CSV
name,note,id Ada,"First line Second line",0012
JSON record
[
{
"name": "Ada",
"note": "First line\nSecond line",
"id": "0012"
}
]- A quoted newline belongs to the cell, rather than starting another record. A double quote inside a quoted cell must be doubled.
- Select semicolon or tab explicitly for those formats. Headers are case-sensitive, and empty cells remain empty strings.
- The output is a JSON array of records. Check the selected delimiter before copying or downloading the result.
Need JSON records that match an agreed schema? Ask about a specific column mapping or a reproducible CSV parsing issue. For a suitable task, we can quote a JavaScript/TypeScript patch, agreed regression cases and expected results, plus acceptance and run instructions. Ask about a paid data fix. Scope, fee, deadline and payment terms are agreed before work starts. We use AI assistance; this converter is our own work, not a customer project. Share only public or synthetic examples. This tool stays free.
Common questions
Why is 00123 still a string?
Converting it to a number would lose the leading zeros, so cell text is deliberately preserved.
Keep going with related tools
All data →JSON to CSV
Convert JSON records into quoted CSV while retaining original number text and spreadsheet formula protection.
DataCSV Validator
Check CSV quoting and record widths, reporting row and column counts with header warnings.
DataCSV Column Extractor
Select and reorder CSV columns by exact header names without uploading the table.
DataCSV to Markdown Table
Turn a CSV table into a Markdown table with escaped cell markup and preserved line breaks.
DataCSV to SQL Inserts
Generate quoted SQLite or PostgreSQL INSERT statements from CSV without executing SQL.
FilesOFX XML Statement Exporter
Export posted bank or credit-card transaction source rows from a selected local OFX 2.x XML file without changing amount, date or ID text.