CSV to JSON Converter
Convert spreadsheet or export CSV into JSON for an API, fixture or script. Quoted commas, embedded newlines and duplicate whitespace are handled, and you can keep everything as strings or infer simple types.
—
How it works
- Paste CSV or load a .csv file up to 5 MiB.
- Choose automatic or explicit delimiter, header mode and type inference.
- Convert and review the JSON, then copy or download it.
Supported input and limits
| Input | CSV text, .csv data |
|---|---|
| Output | JSON array of objects, JSON array of arrays |
| Size limit | Not applicable |
| Offline | Verified after the page and its script are cached |
- CSV input is limited to 5 MiB.
- Duplicate header names resolve to the last column.
- The parser supports RFC 4180 quoting, not arbitrary Excel formulas.
Privacy
This tool runs entirely in your browser. Your input is not uploaded, logged or stored by TinkerFern. Read the privacy policy.
Frequently asked questions
Does it handle commas inside quotes?
Yes. Cells wrapped in double quotes may contain the delimiter, doubled quotes and line breaks. The parser follows RFC 4180 behaviour rather than splitting on every comma.
How is the delimiter detected?
The first non-empty line is scanned for comma, semicolon, tab and pipe counts. The delimiter with the highest count wins; you can override it if a cell contains misleading punctuation.
Should I enable type inference?
It is off by default because leading zeros, IDs and phone numbers must remain strings. Enable it only when you want numeric, boolean and null values in the resulting JSON.
What happens to duplicate or empty headers?
Empty header names are rejected with an error. Duplicate names overwrite earlier values in the object; rename duplicates in the CSV first if both columns matter.
Is my spreadsheet uploaded?
No. Parsing and JSON generation happen in the browser. No cell values, filenames or outputs are sent to analytics or a server.
Related tools
Continue with a task that often follows this one.
JSON to CSV Converter
Turn an array of JSON objects into a spreadsheet-ready CSV.
JSON Formatter & Validator
Format, minify and validate JSON with precise error locations.
Text Toolkit
Change case, clean up, sort and count lines and characters.
Base64 Encoder / Decoder
Encode UTF-8 text to Base64 or decode it back safely.
Read the guide
Background for this task, with the trade-offs explained.
JSON formatting and validation: a practical guide
Understand why JSON fails to parse, how to read line and column errors, and what formatting and minifying actually change.
CSV vs JSON: choosing a format for your data
CSV and JSON solve different problems. Compare types, nesting, size, encoding and conversion pitfalls before exporting data for Excel or an API.