Skip to content
Created by Iternal Technologies, the AI Strategy ExpertsBy Iternal (opens in a new tab)

Convert

CSV to JSON

CSV

Paste a CSV table. The first row becomes the keys and each following row becomes one JSON object.

JSON

About CSV to JSON

CSV to JSON reads a comma-separated table and writes a JSON array indented by two spaces. With First row is headers on, each later row becomes an object whose keys are those cells. Turn the option off and the same table becomes an array of arrays.

Fields follow RFC 4180. A comma or a line break stays inside a quoted field, and a quote inside that field is two quotes (""). Cells stay JSON strings, so leading zeros are kept. A short row is filled with empty strings. A repeated header is reported on the second copy.

A row with more cells than the header is reported at the first extra cell, so a value is never dropped. Conversion runs in your browser and the table you paste is never uploaded.

Frequently asked questions

What does CSV to JSON convert?

It turns a comma-separated table into a JSON array indented by two spaces. With First row is headers on, the result is an array of objects. With the option off, the result is an array of arrays padded to the widest row.

What if a row has fewer cells than the header?

Missing cells become empty strings, so every object still has every header key. A row with more cells than the header is reported at the first extra cell instead of inventing a key.

How are quotes and line breaks inside a cell read?

A field wrapped in double quotes may contain commas and line breaks. A doubled quote ("") inside that field is one double quote. A quote that never closes, or text after the closing quote, is reported at the opening quote.

Are numbers and booleans detected?

No. Every cell is a JSON string, including values that look like numbers, booleans or null. Leading zeros and mixed columns stay as they were typed.

Is the text I paste uploaded anywhere?

No. This runs in your browser and the text you paste is never uploaded, logged or stored. Google Analytics records page views and feature use, never content.

  • Markdown to HTML

    Convert Markdown to clean HTML with a live preview. GitHub tables, task lists and footnotes included.

  • Markdown to DOCX

    Convert Markdown to a Word document (.docx) with a page preview. Tables, lists, footnotes and heading styles included.

  • JSON ↔ YAML

    Convert JSON to block YAML, or a YAML subset back to JSON.

  • XML ↔ JSON

    Convert an XML element tree to JSON, or JSON back to XML.

Iternal · AI Blueprint Builder

Plan the AI initiative, not just the output

The AI Blueprint Builder scores each use case across value, feasibility, cost, governance, risk, adoption and readiness before you commit budget. Free to start, about 60 minutes.

Open the AI Blueprint Builder (opens in a new tab)