# CSV to JSON

> CSV to JSON converts a spreadsheet exported from Excel, Google Sheets or a database into JSON records. Free, no sign-in. Works on phone and computer.

Page: https://ishowpdf.com/tools/csv-to-json

## What CSV to JSON does

CSV to JSON converts a spreadsheet exported from Excel, Google Sheets or a database into JSON records. Developers use it to load test data, build mock APIs or move a contact list into an app.

The separator is detected from the first row: comma, semicolon, tab or the | sign. Quoted values with commas or line breaks inside are read correctly. With the first row as column names, each row becomes an object; turn that off to get plain lists. Numbers become real numbers, but codes with leading zeros and very long digit strings, such as account numbers, stay as text.

## How to use CSV to JSON

1. **Paste the CSV**: Copy it from a .csv file or straight from a spreadsheet.
2. **Set the headings option**: Keep it on if the first row holds column names.
3. **Choose number handling**: Keep numbers as numbers, or untick it to keep every value as text.
4. **Copy the JSON**: Copy it or download data.json; the row count is shown below.

## Questions

**Will leading zeros like 007 be lost?**

No. Values that start with 0 stay as text, so codes like 007 keep their zeros. Only 0 on its own, or a decimal like 0.5, becomes a number.

**Can I convert a CSV that uses semicolons?**

Yes. Semicolons, tabs and the | sign are detected automatically, as long as the first row uses the same separator.

**How do I convert an Excel file to JSON?**

Turn the sheet into CSV first with our Excel to CSV tool, then paste the CSV here.

More free tools: https://ishowpdf.com/tools
