CSV to JSON

Turn a spreadsheet export into JSON for an API or app. It runs on your device.

Your files stay with you. Your files never leave your browser. This tool runs on your device: nothing is uploaded to our servers, so there is nothing for us to store or see.

How to use it

  1. Paste CSV text or open a .csv file.
  2. Check the detected separator and header options.
  3. Copy the JSON or download data.json.

Where it helps

Seeding apps

Turn a spreadsheet of products or cities into JSON for your code.

API imports

Prepare records for an API that expects a JSON list.

Test data

Make realistic fixtures from a sheet your team already keeps.

Good to know

  • Stays in your browser

    Your text is processed on your device and never sent to our servers.

  • Header row

    Untick it to get a list of lists instead of objects.

  • Quotes must close

    An unclosed quote is reported with its line number.

Questions people ask

How do you convert CSV to JSON?

Paste CSV text or open a .csv file. The tool detects the separator from the first line, uses the header row for key names and turns plain numbers and true/false into JSON types, while values with leading zeros, like PIN codes, stay as text. Copy the JSON or download data.json.

  • Auto Separator. Comma, semicolon, tab, pipe.
  • Types Numbers, true/false. Detected.
  • 0123 Leading zeros kept. Stays text.
  • Line no. Quote errors. Reported.
Does it handle commas and line breaks inside values?
Yes. Values wrapped in double quotes can contain commas, new lines and doubled quotes, as in standard CSV exported by Excel and Google Sheets. If a quote is never closed, the tool reports it with its line number, so you can find the broken row quickly instead of getting garbled output.
Why did my phone number or PIN keep its leading zero?
Values like 0123 are kept as text on purpose. Only plain numbers without leading zeros become JSON numbers. That protects PIN codes, phone numbers and IDs from being changed. You can also switch number detection off to keep every value as text, which suits many APIs.
Can it read semicolon or tab separated files?
Yes. The separator is detected from the first line, or you can choose comma, semicolon, tab or pipe yourself. Many European and some Indian Excel exports use semicolons, and database dumps often use tabs or pipes, so the right choice is usually picked for you.
What if my file has no header row?
Untick the header option and you get a list of lists instead of a list of objects. Each inner list holds one row's values in order. That suits files where column positions are fixed and known, or where you plan to add your own key names in code.
How are column names turned into keys?
Each header cell becomes a key as written, with spaces at either end trimmed. A blank header becomes column1, column2 and so on, and a repeated name gets _2 added. If you need keys like first_name rather than 'First Name', rename the headers in your spreadsheet before exporting.
Which values become numbers or booleans?
Plain numbers such as 42 or 3.5 become JSON numbers, true and false become booleans and null becomes null. Everything else, including numbers with leading zeros, stays a string, and empty cells become empty strings. Switch detection off if your API wants every value as text.
Why does my Excel file not open here?
The tool reads CSV, which is plain text. An .xlsx file is a different format. In Excel or Google Sheets, use File, Save as or Download and choose CSV first. Choose CSV UTF-8 in Excel so that names in Indian scripts and the rupee sign are kept.
Can I convert a Google Sheets export?
Yes. In Google Sheets choose File, Download, Comma-separated values, then open that file here. Google exports UTF-8 with commas, which the tool detects automatically. Each sheet tab is exported separately, so repeat this for every tab you need. Hidden columns are exported too, so delete any you don't need before downloading.
How large a CSV can I convert?
Conversion runs in your browser, so the limit depends on your device's memory. Files of several megabytes convert comfortably on a laptop. For very large exports, split the file or use a script on your own machine, because a giant JSON result is slow to view in any browser.
Is the output formatted?
Yes. The JSON is indented so it's easy to read and check. If you need it on one line, paste the result into the JSON formatter and choose Minified. Then copy it straight into a request body, a database field or a configuration setting. Two-space indentation is used by default.
What happens to blank lines?
Completely empty lines, often found at the end of exported files, are skipped so you don't get empty records. A row with separators but no values still becomes a record with empty strings, because it might be meaningful in your data. That keeps the JSON list clean without any manual editing.
Can I use the JSON for a WhatsApp or CRM import?
Yes, if the system accepts JSON. Many accept CSV directly, which is simpler. Marketiism imports contacts from a CSV file without any conversion. Use this tool when an API or script specifically wants a JSON list of records. Check the target system's import guide for the exact field names it expects.
Is my data uploaded?
No. The file is read and converted in your browser, so customer lists, prices and other records never reach our servers. Nothing is stored after you close the page. That's important for spreadsheets with personal details such as phone numbers and addresses. Close the tab when you're done and nothing remains.
Does it work on a phone?
Yes. Open a CSV from your phone's files or paste text, and download data.json when it's done. Reading long JSON is easier on a bigger screen, but the conversion works on any modern mobile browser, entirely on your device and without an app. It's handy for a quick check.
Is the CSV to JSON converter free?
Yes. It's free with no sign-up and no limit on use. It's one of the free developer tools from Marketiism, together with the JSON to CSV converter and the JSON formatter. Marketiism also builds software for WhatsApp, billing and CRM. Use it as often as you need.

Want this inside your own account?

Marketiism keeps your invoice numbers, GST reports, UPI payment links and WhatsApp reminders in one place. Leave your details and we'll call to set it up for your business, or start the trial yourself.

Start free trial

We use this only to contact you about Marketiism. No spam.

More Developer tools

JSON to CSV

Turn a JSON list of records into CSV for Excel or Google Sheets.

JSON Formatter

Format, validate and minify JSON, and see exactly which line has a mistake.

YAML to JSON

Convert YAML config files into JSON and catch indentation mistakes.

JSON to YAML

Convert JSON into clean YAML for configs, Kubernetes and CI files.

XML Formatter

Pretty-print or minify XML and find unclosed or mismatched tags.

Try it on your own business for two weeks.

14 days free, no card. If you get stuck setting up WhatsApp, we'll get on a call and do it with you.