Skip to content
One System. Infinite Possibilities./by_xuanhieu.org
VI

1xA2Z · Guides

Convert CSV to JSON without writing code

Paste CSV into 1xA2Z, open the JSON tab, pick the array of objects shape and press Copy kết quả. IDs with leading zeros stay intact.

Converting CSV to JSON with a script means handling commas inside cells, line breaks and number types yourself. 1xA2Z does it in your browser and uploads nothing.

What you need

  • CSV text (pasted) or a .csv file.
  • A header row, because the headers become the JSON keys.

Steps

  1. Open the page. Go to CSV to JSON; the JSON tab is already selected.
  2. Paste the CSV. Paste into the Dán nhanh box or press Nhập file. The box recognises commas and tabs. Check the column and row counts in the grid.
  3. Pick the JSON shape. In ⚙ Tuỳ chọn choose array of objects (each row becomes an object keyed by header) or another shape.
  4. Decide about numbers. Turn on number export if your API needs real numbers. IDs such as 00123 always stay strings.
  5. Take the result. Press Copy kết quả or Tải file.

For the other direction: JSON to CSV.

Good to know

  • By default every value is a string, numbers included.
  • If you get a single column after pasting, the file may use semicolons. The paste box does not detect them; switch the source to commas and paste again.

What it cannot do

  • CSV has no nesting, so the tool never builds nested objects from CSV.
  • It does not guess dates or booleans; up to 10,000 rows and 200 columns.

1xA2Z

Convert a table between Excel, Sheets, CSV, JSON, Markdown, SQL and 10+ other formats.