CSV to JSON
Convert CSV or TSV to JSON: an array of objects, arrays or columns, with real numbers and booleans, and nested objects from headers like address.city. Arabic supported.
Free, no sign-up
Your data stays on your device
Works offline after first open
The tool
Loading the tool…
How to use
- Paste CSV data or drop the file.
- Pick the JSON shape: an object per row (most common), arrays, or one key per column.
- Choose how numbers and empty cells are handled.
- Copy the JSON or download it as a file.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
Why did 0501234567 stay a string?
Numbers that start with zero are usually codes (phone, postal code) and turning them into numbers would drop the zero. Each column gets one type: a single text value among numbers keeps the whole column as text.
What does “nested objects” mean?
A header like address.city becomes { "address": { "city": … } }, and address.0 becomes an array.
What is “keyed object”?
One object whose keys are the first column’s values, each holding the other columns. Handy when the first column is a unique id.
Related tools
JSON to CSVTurn JSON or JSON Lines into a CSV table: we pick the array for you, flatten nested objects into columns like address.city, and download a file that opens in Excel with correct Arabic.CSV Viewer & AnalyzerOpen a CSV file, even a big one, then sort and filter it page by page, see per-column stats, missing cells and duplicate rows, and download the result. All in your browser.JSON Formatter & ValidatorPretty-print JSON or minify it to one line, sort keys alphabetically, validate it with the exact line, column and cause of any error, or escape and unescape JSON strings.JSON Schema GeneratorPaste sample JSON and get a ready JSON Schema (Draft 2020-12 or 07): types, required fields, nullable values and formats like email, date and uri, merged across many records.