Skip to main content
Preparing workspace

CSV to JSON

Convert CSV or TSV to JSON in your browser. Keep leading zeros, select and rename output keys, set field types, edit cells, and download JSON.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

CSV to JSON

Convert CSV or TSV to JSON with delimiter detection, editable rows and local downloads.

CSV to JSON converts delimited text into a JSON array of objects. Upload a CSV or TSV file or paste text, choose a delimiter and use the first row as keys or generate column names. Quoted cells keep their delimiters and line breaks, and values stay strings by default. Select which columns to export, rename JSON keys, and choose number or boolean types. Review and edit cells before downloading pretty or minified JSON.

How to use CSV to JSON

  1. Upload a CSV or TSV file or paste delimited text. Confirm the separator and whether the first row contains headers.

  2. Review notices about duplicate headers, missing cells or extra fields, then edit the preview if needed.

  3. Use Output columns to omit fields, give them new JSON keys, or assign a JSON type while keeping identifier columns as Text.

  4. Choose Pretty or Minify, select Convert to JSON, and copy or download the complete result.

Why use CSV to JSON

  • Flexible imports

    Auto-detect comma, semicolon, tab or pipe separators. Select a delimiter manually when the source is ambiguous.

  • Preserve source values

    Quoted cells keep embedded line breaks and escaped quotes. Duplicate keys are renamed and extra fields get their own columns.

  • Choose exported fields

    Omit fields, rename JSON keys, and assign Number or Boolean to match the receiving app's data format.

  • Edit before export

    Add, remove or edit rows in the preview, then copy or download the complete JSON result. Your file is processed in your browser.

Common use cases

  • Turn a spreadsheet export into API seed data while keeping product codes, postal codes and large identifiers exactly as text.
  • Load a tab-separated export or an international spreadsheet using semicolon delimiters and decimal commas.
  • Review irregular rows, correct a cell and preserve extra fields before importing a dataset into another application.

Frequently asked questions

Can I rename CSV columns in the JSON output?

Yes. In Output columns, fill in JSON key for any included field. The new key is used in the JSON preview, copy, and download. The editable table keeps the original CSV header. Leave the key empty to keep its original name. Each included column needs a unique key.

Link to answer
Can I select columns and choose JSON value types?

Yes. Open Output columns and choose Text, Number, Boolean or Omit for each field. Blank number and boolean cells become null. Invalid values identify the data row and column to correct before exporting.

Link to answer
Will numbers in my CSV become JSON numbers?

Text is the default for every column. It keeps postal codes such as 00123 and identifiers such as 9007199254740993 intact. Use the import settings to keep unquoted leading or trailing spaces as well.

Link to answer
Can I convert a TSV file or a CSV file without headers?

Yes. CSV and TSV files up to 10 MB can be selected or dragged onto the tool. Keep Auto-detect or choose Tab, Comma, Semicolon or Pipe. Turn off First row contains headers to retain it as data and generate keys such as column_1 and column_2.

Link to answer
What happens when CSV rows have different lengths?

Missing cells become empty strings and extra fields receive generated column names. Blank headers are given positional names, and repeated headers receive suffixes so each original value remains accessible.

Link to answer
What is the difference between pretty and minified JSON?

Pretty output uses two-space indentation and downloads as pretty_data.json. Minified output omits whitespace outside the values and downloads as minified_data.json. Both contain the same records.

Link to answer
What does the mock API toggle add?

It generates an id when the source has no id field, plus a sequential mock email and a shared ISO 8601 timestamp. If those keys exist in the source, the generated fields use available names to preserve the originals.

Link to answer