Qgenx Tools

CSV to JSON Converter

Convert CSV, TSV, and semicolon-delimited tables into clean JSON arrays locally in your browser with quoted-comma support and zero uploads.

Runs in your browser
0
Data rows
0
Columns
Comma
Delimiter
0 B
JSON size

About this tool

A character-level RFC 4180 parser tracks quote state and escaped double-quotes (“”) across rows before mapping header keys (or outputting 2D arrays when Header row is unchecked) and serializing with JSON.stringify. Convert spreadsheet seeds into JSON fixtures for APIs.

How to use the CSV to JSON converter

  1. Paste your CSV into the input box. Each row is a record and each comma separates a field.
  2. Keep Header row ticked if the first row holds the field names. Untick it to get arrays instead of objects.
  3. Tick Minify for one compact line, or leave it off for an indented, readable result.
  4. Copy the JSON output, or download it as a .json file for an import or an API test.

How CSV becomes JSON

CSV is a plain table: one line per row, values separated by commas. JSON is a structured format that most programs and web services read directly. With a header row, each line becomes an object whose keys are the column names, so name,role becomes {"name": "...", "role": "..."}. Numbers stay numbers, and text stays text, inside quotation marks.

Quoted fields are handled, so a value such as "Leeds, UK" keeps its comma. Empty fields become empty strings, which makes missing values easy to spot in the output.

A worked example

The sample is a staff list with twenty rows and six columns. With the header row ticked, the first record becomes an object with name Aisha Khan, role Product designer, city Leeds, team Design, start_date 2024-02-12 and salary 52000. The whole list becomes an array of twenty such objects, ready to load into an app or a test fixture.

  • Turn a spreadsheet export of contacts into JSON for a mailing tool that accepts JSON.
  • Create test data for an API from a small CSV table of products or customers.

Who uses a CSV to JSON converter

  • Developers importing spreadsheet data into an application or a database seed file.
  • Analysts preparing a data set for a chart library or a dashboard.
  • Product teams building fixtures for automated tests.
  • Operations staff converting an export into a format an integration expects.
  • Anyone who needs the same table in a structured form for another program.

Tips and common mistakes

  • Check the delimiter. Semicolon-separated files from some European spreadsheets will not convert until the separator is correct.
  • Keep every row the same length. A row with a missing comma shifts all its values into the wrong columns.
  • Duplicate column names overwrite each other in an object. Rename the columns first.
  • Numbers with thousands separators, such as 52,000 inside an unquoted field, split into two values. Quote such fields.
  • The conversion runs in your browser, so names and salaries in a private list never leave your device.

Frequently asked questions

Yes. The RFC 4180 parser respects double-quoted fields so commas inside quotes stay part of the cell value.

Related browser tools