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
.csvfile. - A header row, because the headers become the JSON keys.
Steps
- Open the page. Go to CSV to JSON; the JSON tab is already selected.
- Paste the CSV. Paste into the
Dán nhanhbox or pressNhập file. The box recognises commas and tabs. Check the column and row counts in the grid. - Pick the JSON shape. In
⚙ Tuỳ chọnchoose array of objects (each row becomes an object keyed by header) or another shape. - Decide about numbers. Turn on number export if your API needs real numbers. IDs such as
00123always stay strings. - Take the result. Press
Copy kết quảorTả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.