These cookies do not access your files. Your choice does not change which tools you can use, and you can update it anytime under Cookie choices.

Cookie details

Analytics: Google Analytics and Umami count visits and tool use. We save tool search text and may record a sample of browsing sessions with private areas masked.

Ads: Google AdSense displays a footer ad. Google Ads and Reddit measure which ads bring people here.

CSV to JSON

Pick file or take photo

More tools

How to prepare column names for JSON

When a CSV becomes JSON, the header row determines the field names your code reads. Use names that communicate meaning, and fix missing or repeated headers in your spreadsheet before conversion.

Open the JSON and compare an entry with an empty field and an entry with an identifier starting with zero. Treat IDs and codes as text unless a consuming system explicitly needs a number.

FAQ

Should I leave an unnamed CSV column in a file used by code?

Give it a clear, distinct name or remove it before converting. Then confirm the output keys match the names your importer expects.

How do I convert CSV to JSON?

Choose the CSV file and press Convert to JSON. Each row becomes an object and the first row gives the key names.

What if my file uses semicolons or tabs?

The page looks at the first line and picks a comma, a semicolon or a tab, whichever it uses most.

Are numbers kept as numbers?

No. Every value is kept as text exactly as it is in the CSV, so leading zeros and long ID numbers are not changed.

What happens to a column with no heading?

It is named column_2, column_3 and so on, by its position.

Can it read quoted cells with commas and line breaks?

Yes. Cells in double quotes may hold commas, line breaks and doubled quotes.

Is my file uploaded?

No. The file is converted inside your browser and never sent to a server. It is free.

Sign in

Use Google, Apple, or email. No account is needed to download. Sign in for the larger phone limit and saved favorite tools.