CSV to JSON

Turn a CSV into JSON. Quotes and commas inside values are handled properly.

Работает в вашем браузереБесплатно · без регистрации

Об инструменте «CSV to JSON»

Paste a CSV, or drop the file on the page, and get JSON back: one object per row, using the first row as the field names. The separator is worked out for you, whether the file uses commas, semicolons, tabs or pipes. Quoted values are read the way the standard says, so an address with a comma in it, or a note with a line break, stays in one field instead of breaking the row. Numbers and true/false can come out as real values rather than text, while something like an id of 007 or a phone number starting with a plus is left as text, where it belongs. It runs inside your browser, so nothing is uploaded and nothing is stored.

Этот инструмент работает в вашем браузере, поэтому ваши файлы не покидают устройство.

Как пользоваться: CSV to JSON

  1. Paste your CSV, or drop the file on the page.
  2. Check the separator it found and the options.
  3. Copy the JSON or download it.

Вопросы

How do I convert CSV to JSON?

Paste the CSV above and the JSON appears beside it. The first row is treated as the field names unless you turn that off.

Does it handle commas inside a value?

Yes, as long as the value is quoted, which is how CSV files are written. "Patel, Asha" stays one value. Line breaks inside quotes work too.

Why is my phone number still text?

On purpose. Turning +919876543210 or an id like 007 into a number would lose the plus and the leading zeros, so only values that survive the trip unchanged become numbers.

It says the rows have different numbers of columns.

Usually the separator was guessed wrong, or a quote is unclosed somewhere. Set the separator by hand and look at the row where the count changes.

Is anything uploaded?

No. The tool runs inside your browser, so what you paste or add stays on your device.

Похожие инструменты