Convert CSV data to JSON format (array of objects).
About CSV to JSON
Front-end mocks, configuration files and API tests usually want JSON, while the data you have sits in a CSV export. This converter reads the header row as the list of keys and turns every following line into a JSON object, producing a pretty-printed array you can paste directly into code or a request body.
Paste the CSV, click Convert and the JSON appears on the right, ready to copy or download as data.json. The conversion runs in the browser: no upload, no account and no size limit beyond your device's memory.
How to use CSV to JSON step by step
Paste the CSV into the left text area. The first line must contain the column names.
Click "Convert to JSON". The result appears in the right box, indented with two spaces.
Use "Copy" to put the JSON on the clipboard or "Download" to save it as data.json.
100% free and online: no payments, no software or extensions to install.
Privacy-first: processing happens in your browser, your data never leaves your device.
No sign-up: paste your data and get the result in one click.
Fast and reliable: handle small or large files in seconds, ready for Excel and other tools.
Common use cases
Create fixture data for a React, Vue or Angular prototype from a spreadsheet exported as CSV.
Build the body of a bulk POST request to an API from a list kept in Excel.
Seed a MongoDB collection or a Firebase Realtime Database with rows from a CSV.
Convert a translations table or a product list into a JSON file consumed by a static site generator.
Limits and tips
Every value is exported as a string, including numbers and booleans: "1", not 1. Cast them in your code or post-process the JSON if you need real numbers.
The parser splits each line on commas and does not understand quoted fields. A value such as "Madrid, Spain" will spill into the next column, and a semicolon-separated CSV will produce a single key per row.
Leading and trailing spaces around values and headers are trimmed.
Blank lines in the middle of the file produce objects with empty values; remove them first for a clean result.
Frequently asked questions
Why are my numbers wrapped in quotes in the JSON?
CSV has no data types, so every cell is text. This tool keeps that behaviour and writes each value as a JSON string. If your consumer needs numbers or booleans, convert them after loading the JSON, for example with Number() in JavaScript or int() in Python.
What format does the output have?
A JSON array where each element is an object. The object keys are the header names from the first CSV line and the values are the cells of that row, in the same order. The output is indented with two spaces so it is easy to read and to diff.
Can I convert a CSV that uses semicolons?
Not directly: the parser only splits on commas. Convert the file to comma-separated values first with the CSV to Delimited tool, or use the CSV Viewer and Editor to paste the data and download it with commas.
What is the difference between CSV and JSON?
CSV is a plain table: rows of values separated by a delimiter, no types and no nesting, ideal for spreadsheets. JSON represents objects and arrays with typed values and can be nested, which is why APIs and JavaScript applications prefer it. CSV is smaller; JSON is self-describing.
Is my data sent to a server?
No. The text you paste is parsed by JavaScript in your browser and never leaves the page. You can even use the tool offline once the page has loaded.
Related guides
Best free online CSV to JSON converters in 2026 (tested) — We compared six free CSV to JSON converters: CSV Creator, CSVJSON, ConvertCSV, TableConvert, Online CSV Tools and Mr. Data Converter. Privacy, quoting, nested output, limits.