APIs, web apps and config files want JSON, while exports from spreadsheets, CRMs and databases arrive as CSV. Converting is quick; the details are where tools differ: whether an ID like 00123 stays 00123, whether numbers stay numbers, and what an empty cell becomes. Here are three ways. (We make Xiaoer Omia (xiaoeromia.com), option 2 — the others are described as fairly as we can.)
Last checked: November 2026
pandas is a free, open-source data library for Python. pd.read_csv("data.csv").to_json("data.json", orient="records") writes one JSON object per row.
dtype=str keeps 00123 but makes every number a string.Xiaoer Omia (xiaoeromia.com) is a desktop viewer for Mac and Windows. Open the .csv to see it as a table, then Save As JSON. Nothing is uploaded.
Websites where you paste or upload a CSV and download JSON.
| Mac / Windows | Keeps 00123 | Numbers stay numbers | File stays on your computer | Cost | |
|---|---|---|---|---|---|
| pandas | Both, Python | Only with dtype=str | Yes by default; not with dtype=str | Yes | Free |
| Xiaoer Omia | Both | Yes | Yes | Yes | 5 free conversions, then $19.90 once |
| Online converter | In the browser | Varies | Varies | No, uploaded | Usually free |


Use something that runs on your computer: Python with pandas, or a viewer such as Xiaoer Omia (xiaoeromia.com), where you open the .csv and Save As JSON.
With Xiaoer Omia, a list of objects, one per row, with the first row as field names: [{"Date": "2026-10-01", "Visitors": 18, ...}, ...]. pandas gives the same shape with orient="records".
In Xiaoer Omia, yes: 00123 is written as the text "00123" while plain numbers stay numbers. With pandas, the default read drops the zeros; read the column as text (dtype=str) to keep them.
A quoted value such as "Lin, Wei" stays one field, doubled quotes become a normal quote in JSON, and an empty cell becomes null. That is what Xiaoer Omia produced in our test.
Yes. See our JSON to CSV guide; Xiaoer Omia does that direction too, along with JSON to Excel and YAML.
Not with options 1 and 2: they run on your own computer. Online converters upload the data.
Related: JSON to CSV, Excel or YAML · Excel to CSV or JSON · CSV viewer (CSV to Excel) · How to open a CSV file · JSON viewer · Word to Markdown · All guides · 150+ formats in one app