Switch to English?

Switching reopens this page. Unsubmitted files, edits and browser processing results will not move to the other domain.

Submitted server tasks remain accessible. Files keep their original deletion deadlines.
Destination website:

CSV to JSON

Convert CSV to JSON while preserving leading zeros.

Improve this tool

Checking tool availability…

About this tool

Read CSV or TXT using the selected UTF-8 or GB18030 encoding and comma, semicolon or tab delimiter, then export an array of JSON objects. By default the first row supplies column names; without a header, keys are named column_1, column_2 and so on. Every cell remains a string, so leading zeros stay intact. The server accepts up to 10,000 data rows, 100 columns and one file up to 5 MiB.

How to use

  1. Paste CSV or choose one CSV/TXT file; select its actual text encoding.
  2. Set the delimiter and whether the first row is a header, then choose two- or four-space JSON indentation.
  3. Convert, verify column names and values, and download converted.json.

Frequently asked questions

Are numbers converted to JSON numbers?

No. Every CSV cell is kept as a string so codes such as 001 retain their leading zeros.

What happens if a row has a different number of columns?

The conversion stops and reports the affected row instead of shifting values between columns.

COMMUNITY

Discussion & comments

Share your experience and discover more ways to use this tool.

Loading comments…