CSV to JSON Converter
Convert CSV with a header row to a JSON array of objects.
Wondering what happens to types and delimiters? Read: CSV to JSON: What Actually Happens to Your Data
Getting garbled rows or misaligned columns? Read: Why Your CSV Won't Parse
How it works
This converter reads the first row of your CSV as column headers and turns every subsequent row into a JSON object, with each column becoming a key. It supports comma, semicolon, and tab delimiters, since real-world CSV exports — especially from European locales or databases — often use something other than a plain comma.
When you’d use this
- Importing a spreadsheet export into an API or database that expects a JSON array of records
- Feeding CSV data into a JavaScript app or Node.js script
- Converting a database CSV dump into JSON for a downstream service
Common questions
What happens if my CSV doesn't have a header row?+
This converter expects the first line to be column headers, which become the JSON keys. If your file starts directly with data, add a header row first, or the first data row will incorrectly become the headers.
Are numbers and true/false converted to their proper JSON types?+
No — every CSV value is read as plain text, so numbers and booleans stay as strings (e.g. "30" rather than 30) in the resulting JSON. This avoids incorrectly guessing types for values that are meant to stay as text, like a ZIP code or ID.
What if my CSV uses semicolons instead of commas?+
Select the semicolon delimiter option above the input — this is common in CSV files exported from European Excel locales, where the comma is already used as a decimal separator.
Can I upload a CSV file instead of pasting it?+
Yes — use the drag-and-drop area above the text input, or click it to browse for a .csv file. The file is read directly in your browser; it's never uploaded to a server.