Conversor CSV ↔ JSON
Converta uma tabela CSV num array JSON e vice-versa, com campos entre aspas bem tratados. Todo o processamento acontece no seu navegador; seus dados nunca são enviados ao servidor.
CSV is what a spreadsheet exports; JSON is what an API expects. Moving between them by hand is tedious and error-prone, mostly because real CSV is harder than it looks: a field can contain the delimiter, a line break, or a quote, as long as it is quoted correctly. This converter implements those rules properly instead of splitting on commas.
Como usar
- Paste your CSV, or paste a JSON array if you want to go the other way.
- Pick the delimiter. Comma is standard, but semicolon is common in locales where the comma is a decimal separator.
- Leave "first row is header" on to get an array of objects with named keys; turn it off to get plain arrays.
- Press the direction you want and copy the result, or send it straight to a paste.
Perguntas frequentes
- Does it handle commas inside quoted fields?
- Yes. The parser tracks quote state character by character, so "Ankara, Turkey" stays a single field. Doubled quotes inside a field are unescaped correctly too.
- What happens to nested JSON objects?
- Going JSON to CSV, only top-level keys become columns; a nested object lands in a cell as [object Object]. Flatten your data first if you need nested values as columns.
- Why is my Excel file using semicolons?
- Excel follows your regional settings. In locales where the comma is the decimal separator, it exports semicolon-delimited files. Choose the matching delimiter here.
- Is the data uploaded?
- No. Parsing and serialisation both run in your browser on this page.