Free tool

CSV to JSON Converter

Paste CSV or choose a file. The delimiter and character encoding are detected automatically, and each row becomes a JSON object keyed by the header.

Your data never leaves your computer: everything runs in your browser.

How to use it

  1. Paste CSV text or choose a .csv / .tsv file. Files Excel saved in a Windows encoding are recognised automatically.
  2. Leave the delimiter on Detect automatically, or pick comma, semicolon, tab or pipe yourself.
  3. Keep First row is the header ticked to use the headers as JSON keys. Without a header, columns are named column_1, column_2…
  4. Press Convert to JSON, then copy the result or download it as .json.

Example

A CSV with a quoted comma and a phone number with a leading zero, which stays intact:

Input

name,city,phone
Jane Doe,"Boston, MA",0617000001
John Smith,Austin,0512000002

Output

[
  {
    "name": "Jane Doe",
    "city": "Boston, MA",
    "phone": "0617000001"
  },
  {
    "name": "John Smith",
    "city": "Austin",
    "phone": "0512000002"
  }
]

Need more?

Run ForLab Formatter on Apify to do the same conversions every day, automated and validated.

  • Call it from the API or on a schedule: files convert inside your workflow, not by hand.
  • In: CSV/TSV, Excel, JSON, NDJSON, XML, YAML and HTML tables; merge up to 10 files or Apify datasets.
  • Clean in the same run: dedupe, filter, sort, flatten nested JSON, select and rename columns, repair broken JSON; Turkish encodings and ; delimiters are detected.
  • Out: JSON, CSV, Excel, SQL INSERT, Markdown, HTML and JSON Schema; every row is validated against one example object.
  • Pay only for valid rows: $0.0001 each (1,000 rows ≈ $0.10), plus $0.001 per run.

Frequently asked questions

How is the delimiter detected?

The first rows are checked against comma, semicolon, tab and pipe, and the one that gives a consistent column count wins. The result shows which delimiter was used; if it is wrong, pick one from the list.

Why do accented characters sometimes break?

Excel often saves CSV in a Windows encoding instead of UTF-8. When you choose a file, the tool tries UTF-8 first and, if that fails, reads it as Windows-1254 (Turkish), which matches Western European Windows text for nearly all accented letters.

Why are numbers returned as text?

Values stay text on purpose: leading zeros in phone numbers, postal codes and long IDs break when converted to numbers. To turn fields into numbers or dates and validate them against a schema, use Formatter.

Are quoted commas and line breaks handled?

Yes. Delimiters and line breaks inside double quotes are treated as part of one value, as the CSV standard requires.

Is my file uploaded anywhere?

No. The file is read and converted in your browser and is never sent anywhere.

Other free tools