CSV to JSON
Convert CSV (from Excel or Google Sheets) into a JSON array of objects.
The CSV to JSON converter reads comma-separated values — copied straight from Excel or Google Sheets — and rebuilds each row as a JSON object using the header row as keys. The result is pretty-printed JSON ready for code, APIs or further processing.
Spreadsheet data and developer data speak different languages: a sheet of users, products or orders is exactly what a script, migration or API seed needs as an array of objects. The converter handles quoted fields, escaped quotes, commas inside values and line breaks, and auto-detects comma, semicolon or tab delimiters for international exports.
Conversion happens entirely in your browser. Pair it with the JSON to CSV tool to move data back and forth as many times as your pipeline requires.
How to use the CSV to JSON
- Copy a range from Excel or Google Sheets, or paste CSV text.
- Make sure the first row contains headers — they become the JSON keys.
- Click 'Convert to JSON'.
- Copy the pretty-printed JSON array.
- Use it in code, an API client, or a data import.
Frequently asked questions
What happens to the header row?
The first row is treated as headers and becomes the keys of every JSON object. Each following row maps to one object: header value pairs. Duplicate headers are kept in order but will overwrite earlier ones.
Can I paste data directly from Excel?
Yes — when you copy cells in Excel or Google Sheets and paste, the clipboard contains tab-separated values, which this converter detects automatically. Quoted cells and special characters survive the round trip.
Are all values converted to strings?
Currently yes — CSV has no type information, so every value becomes a string ('123', 'true'). If your pipeline needs numbers or booleans, transform the fields after conversion or use a library with type inference.
Related tools
View all developer tools →JSON Formatter & Validator
Format, minify and validate JSON instantly with clear error messages that point at the exact problem.
Dev ToolsJSON Validator
Check if your JSON is valid and find syntax errors with exact line and column.
Dev ToolsJSON Minifier
Compress JSON to its smallest valid form for storage and transport.
Dev ToolsJSON to CSV
Convert a JSON array of objects into a clean CSV file in one click.
Dev ToolsBase64 Encoder
Encode text or files to Base64 — standard or URL-safe — in your browser.
Dev ToolsBase64 Decoder
Decode Base64 back to readable text — UTF-8 safe, instant and private.