Конвертер CSV ↔ JSON

Преобразуйте CSV-таблицу в JSON-массив и обратно; поля в кавычках обрабатываются верно. Вся обработка происходит в браузере; ваши данные не отправляются на сервер.

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.

Как пользоваться

  1. Paste your CSV, or paste a JSON array if you want to go the other way.
  2. Pick the delimiter. Comma is standard, but semicolon is common in locales where the comma is a decimal separator.
  3. Leave "first row is header" on to get an array of objects with named keys; turn it off to get plain arrays.
  4. Press the direction you want and copy the result, or send it straight to a paste.

Частые вопросы

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.
Инструменты разработчика