Skip to main content

CSV to JSON converter

Convert CSV (comma, semicolon, tab or pipe) to JSON with or without a header row. Runs in your browser; nothing is uploaded.

Turn CSV into JSON in your browser. Pick the delimiter, say whether the first row holds column names, and copy the result. Nothing is uploaded.

How to use

  1. Paste CSV into CSV input.
  2. Choose the Delimiter: comma, semicolon, tab or pipe (|). Spreadsheets saved in many European locales use semicolons.
  3. Leave First row is header ticked to get an array of objects keyed by column name. Untick it to get an array of arrays (one per row).
  4. Click Convert and copy the JSON output.

How the parser handles tricky CSV

  • Fields wrapped in double quotes can contain the delimiter and line breaks.
  • A doubled quote ("") inside a quoted field becomes a single ".
  • A byte-order mark at the start of the file is ignored, and Windows (\r\n) and Unix line endings both work. Blank lines are skipped.
  • An unclosed quote stops the conversion with an error rather than producing scrambled data.
  • If a row is shorter than the header, missing cells become empty strings. All values stay strings; numbers are not converted.

Typical uses

Preparing data for an API or a script, feeding a table to an AI model as structured input, or checking a CSV export from a spreadsheet. To go the other way use JSON to CSV; to fix messy columns first, try the CSV cleaner.

JSON to CSV · CSV cleaner · JSON formatter · JSON to JSONL · All tools

How we check

The behaviour described on this page was checked against the tool’s source code on 2026-11-19 (Asia/Colombo). Spotted a mistake? Contact us.

More free tools