
Beautify, minify and validate JSON with clear error messages.
Convert CSV or TSV to JSON and back, with header detection, type casting and delimiter options.
Your files never leave your device. Everything runs in your browser.
CSV ↔ JSON Converter turns comma-separated data into JSON objects and back again, with support for tab, semicolon and pipe separators. It understands quoted fields, escaped quotes and line breaks inside a field, so exports from spreadsheets and databases survive the trip.
By default the first row is treated as the header, and values are converted to numbers, booleans and null so the JSON looks natural rather than stringly. Both behaviours can be switched off when you need every cell kept as text. The direction is detected from the content: a document starting with { or [ is treated as JSON, anything else as CSV.
The parser is deliberately small and runs entirely in the browser. It is a converter, not a database: it does not resolve schemas, flatten nested structures or stream files, so enormous exports are limited by the memory of the tab.
name,age Ada,36 Alan,41 converts to an array of objects with name and age properties, and the numeric values are real numbers.001 becomes the number 1. Turn auto-type off if codes such as ZIP codes or order IDs must keep their zeros.1e3 stays a string, because the converter only converts plain decimal numbers. Values with surrounding spaces like 42 are trimmed and become the number 42."42" still becomes 42 when auto-type is on.It looks at the first non-whitespace character of the input. If it is an opening brace or bracket the input is treated as JSON and converted to CSV; anything else is parsed as CSV and converted to JSON.
Yes, clear the Auto-type values checkbox. With auto-typing off every cell stays a string, so leading zeros, long numbers and values such as 1e3 are preserved exactly.
The converter collects the union of all keys from every object and emits one header row. Objects that lack a key get an empty cell, so the output is always a valid rectangle.
They are preserved as JSON text inside a single cell rather than flattened into parent.column columns. If you need flat CSV, restructure the JSON first.
Comma, tab, semicolon and pipe are built in. Other separators such as a colon or custom character are not offered, and the delimiter choice applies to CSV input and output.
No. Both parsers run in your browser and the data never leaves the page.
Related convert tools: JSON Formatter, YAML ↔ JSON Converter, XML Formatter, SQL Formatter.
CSV and JSON are converted locally in the browser — your data is never uploaded.