Ferramentas para programadores

CSV to JSON

Convert CSV with comma, semicolon, or tab delimiters into pretty-printed JSON arrays.

CSV to JSON workspace

Como usar

Paste CSV or choose a file, pick the delimiter and whether the first row is headers, Convert, then Copy or Download. Quoted fields keep commas and newlines inside a cell.

Exemplo

With headers on, the first row becomes object keys. With headers off, each row is a JSON array.

Entrada

name,role
Ada,editor
"Lovelace, Ada",analyst

Saída

[
  {
    "name": "Ada",
    "role": "editor"
  },
  {
    "name": "Lovelace, Ada",
    "role": "analyst"
  }
]

Como funciona

A quote-aware parser builds rows. Header mode maps columns to object properties. Output is pretty-printed JSON. Tab-separated values are supported as well as comma and semicolon.

Erros comuns

  • A quote was left open Close the quoted field or double inner quotes.
  • Keys looked wrong Turn Headers on only when the first row names the columns.
  • Semicolon files looked like one column Switch the delimiter to semicolon.

Limitações

Input over 500,000 characters is refused. Nested CSV is not inferred. This is not a spreadsheet formula engine.

Privacidade

The text you paste is processed in your browser. PepsTools does not receive it, store it, or send it to another service.

Perguntas

Are formulas executed?

No. Cell values stay strings in the JSON output.