Skip to content

CSV to JSON

Paste or drop a CSV and get clean JSON instantly.

How to convert CSV to JSON

Three steps, all in your browser.

  1. 1

    Paste or open your data

    Drop a file or paste rows straight into the input box.

  2. 2

    Check the options

    Delimiter, header row, indentation: the output updates live.

  3. 3

    Download

    Save the converted file, or copy the output.

CSV to JSON: what to know

CSV (comma-separated values) is the plain-text table that every spreadsheet, database and analytics tool can export. JSON (JavaScript Object Notation) is the format most web APIs, apps and scripts read. This converter reads your CSV and writes it as a JSON array, with all the work done inside your browser.

With the header option on, the first row supplies the keys and every row after it becomes one object, so a row of Ada, 36, London becomes {"name": "Ada", "age": 36, "city": "London"}. Turn the header off and each row becomes a plain array. Empty or repeated header names are renamed (column_3, name_2) so no key is overwritten. The parser follows RFC 4180: quoted fields can contain commas, line breaks and doubled quotes, Windows and Unix line endings both work, blank lines are skipped and a byte order mark is removed.

Numbers and true/false become real JSON values only when the text would round-trip exactly, so 42 becomes a number while 007, 1.50, +1 and IDs too long to store exactly as numbers stay strings. Rows with too few fields are padded with empty strings, and the converter lists the rows that didn't match the header.

Popular uses

  • Loading a spreadsheet export into a web app or API
  • Creating seed data or test fixtures for a project
  • Feeding CSV reports into JavaScript charts
  • Checking what a CSV export really contains, field by field

Tips for the best result

  • If every row comes out as one long value, the delimiter wasn't a comma: pick semicolon, tab or pipe.
  • Turn off typed values to keep every cell as a string, exactly as written.
  • Check the warnings above the preview for rows with missing or extra fields.
  • Choose 0 spaces of indentation for the smallest file, or 2 or 4 to make it easy to read.

Read how JustYourConvert works and our privacy details. Keep your original files and check a converted file before you replace anything.

Frequently asked questions

With the header option on, each row becomes an object whose keys are the header names, so the result is an array of objects. Turn it off and each row becomes an array of values instead. Empty or repeated header names are renamed, for example to column_3 or name_2.

Yes, when the text would come back exactly the same: 42 and -3.5 become numbers and true and false become booleans. Values like 007, 1.50, +1 or very long IDs stay text, so zip codes and account numbers aren't changed. You can also keep every value as text.

Yes. The delimiter is detected automatically from commas, semicolons, tabs and pipes, and you can also pick it yourself. Semicolons are common in CSV files exported in Europe, where the comma is the decimal separator.

No. Every live tool on JustYourConvert opens and converts your files inside your browser, on your own device. Nothing is sent to our servers, and the result is saved straight from your browser.

Yes. Every tool is free, with no sign-up, no watermark and no daily limit. Clearly labeled ads keep it that way.

Only your device's memory. Because the work happens in your browser, very large files can be slow on phones and older computers. Each tool says its practical limit under the drop area.