Your data lives in a spreadsheet, rows and columns that anyone can read. The thing that needs the data wants JSON instead: an app import, an API, a developer on your team, a JSON-only tool. The usual advice is to write a script, record a macro or install a converter app, and for a one-off job all three are heavier than the task deserves.
The free CSV to JSON Converter on Ovatly does the whole job in your browser. Two routes in, one decision that shapes the output, and a file to download at the end: this guide walks through all of it with a worked example small enough to check by eye.
Contents
- Quick answer
- Why this job attracts unnecessary machinery
- Route one: copy and paste straight from the sheet
- Route two: export a CSV file and upload it
- The header decision, in plain words
- How to convert spreadsheet data to JSON, step by step
- Worked example: a two-row sheet becomes a JSON array
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Open the CSV to JSON Converter and either paste cells copied straight from your spreadsheet or upload a CSV file you exported from it. Leave the header checkbox on if your first row holds column names, and each remaining row becomes a JSON object keyed by those names. Convert, then download the result as converted.json. No code, no macros, nothing installed, and the conversion runs locally in your browser.
Why this job attracts unnecessary machinery
Spreadsheets and JSON are both ways of holding a table, but they store it differently. A spreadsheet keeps a visible grid of rows and columns; JSON keeps an array of records, each a set of named values. Moving between them is a mechanical reshaping, not a programming problem, yet the standard answers all involve tooling: a script, a macro, a paid converter app, an online service that wants your file on its server.
For a file you convert once, or even once a week, that machinery costs more time than it saves. What you need is a paste box, one checkbox and a download button, plus a clear grasp of the two choices that matter: how the data gets in, and whether the first row is names or data.
Route one: copy and paste straight from the sheet
The faster route needs no file at all: select the cells, copy them, and paste them into the converter. A spreadsheet paste does not arrive comma separated; the cells arrive separated by tabs, one row per line. That is fine here, because the delimiter is detected automatically: comma, semicolon, tab and others are recognised without any setting to change.
Pasting suits small and medium tables and quick checks: if the shape is wrong, adjust the selection and paste again. Fields that were quoted in the source are read by standard CSV rules, so a cell containing a comma survives as one value rather than splitting into two.
Route two: export a CSV file and upload it
For a large sheet, or one you will convert more than once, export it as a CSV file and upload that instead. The converter reads the file locally in your browser; uploading here means opening it on your own device, not sending it to a server.
This route keeps a clean source file you can reconvert later, which matters when the sheet changes and the JSON must be regenerated. The exported CSV carries the same grid as a paste, so everything below applies in exactly the same way.
The header decision, in plain words
One checkbox decides the shape of the whole output, and it comes down to a single question: is your first row names, or is it data?
In almost every spreadsheet, the first row is names: the column headings you typed, like name and age. Leave the header checkbox on. That row becomes the set of keys, and every row after it becomes one JSON object, each value placed under its column name: the array of objects most apps and APIs ask for.
Turn it off only when your data has no header row at all. The output is then an array of arrays: one inner array per row, values in column order, no keys. That shape is harder to consume, because a reader must learn from somewhere else what each position means. If your sheet has headings, and nearly all do, the checkbox stays on.
How to convert spreadsheet data to JSON, step by step
- Open the CSV to JSON Converter.
- Get your data in: paste cells copied from your spreadsheet, or upload a CSV file you exported from it.
- Check the header setting. On if the first row holds column names, off if every row is data.
- Convert, and read the output before downloading: check the keys match your column names and the first record looks right.
- Download converted.json and hand it to the app, import or person that asked for JSON.
Worked example: a two-row sheet becomes a JSON array
Take the smallest useful spreadsheet, a header row and two people:
name,age
Ana,31
Ben,28
With the header checkbox on, the conversion produces this:
[
{ "name": "Ana", "age": "31" },
{ "name": "Ben", "age": "28" }
]
Read it against the sheet: the header row disappeared as data and reappeared as keys, and each row became one object. The ages are in quotes: 31 and 28 arrive as the strings "31" and "28", copied exactly as written. That surprises everyone once, and the limitations section explains why it is deliberate.
Limitations and honest tradeoffs
Every value stays a string. The converter never guesses that a cell should be a number or a date. That protects codes with leading zeros, which a numeric guess would silently destroy, and it keeps dates exactly as written. The tradeoff is real: if the receiving app needs true numbers, that conversion has to happen on the receiving side, not by a guess here.
Rows shorter than the header are padded with empty strings, so every object carries the same keys. Nothing is dropped, but a padded empty string is a gap in your source data made visible, not an invented value.
Each conversion works on one paste or one uploaded file, so a workbook with several sheets means one conversion per sheet.
Common mistakes
- Turning the header off when the first row is names. The headings become just another row of values inside an array of arrays, and the output loses its keys.
- Leaving the header on when there is no header row. Your first real record gets promoted into the keys and vanishes as data.
- Expecting numbers in the output. Ages, prices and counts all arrive as strings. If you find quotes around a number, the converter is working as designed.
- Exporting a file when a paste would do. For a small table, copying the cells is faster, and the tab-separated paste is detected automatically.
- Converting a messy sheet and blaming the JSON. Gaps and short rows show up faithfully in the output, padded with empty strings. Tidy the sheet first.
FAQs
Do I need to install anything or write code? No. The converter runs in your browser. You paste your spreadsheet data or upload a CSV file, convert, and download a file called converted.json. There are no macros, scripts or installs involved.
Can I paste cells copied straight from my spreadsheet? Yes. Cells copied from a spreadsheet arrive tab-separated when you paste them, and the converter detects the delimiter automatically, so the paste is read correctly without any setting to change.
What does the header checkbox actually do? With it on, the first row is treated as column names and every other row becomes a JSON object keyed by those names. With it off, the output is an array of arrays, one inner array per row, with no keys.
Why is a number like 31 in quotes in the JSON output? Because every value stays a string exactly as written in the source. The converter never guesses that a cell should become a number, which protects values like codes with leading zeros. Turning text into numbers is left to the app or API that receives the JSON.
Is my spreadsheet data uploaded to a server? No. The conversion is fully local in your browser. You paste the data or load the file on your own device, and nothing is uploaded anywhere.
Conclusion
Converting spreadsheet data to JSON is a reshaping job, not a programming job: paste the cells or upload the CSV, leave the header on so column names become keys, and download converted.json. The companion guide on handling dates and numbers when converting CSV to JSON explains the strings rule in depth, and the rest of the series lives in our Data and JSON Tools guides.
References
- RFC 8259, the JSON data interchange standard: https://www.rfc-editor.org/rfc/rfc8259
- RFC 4180, the common format and MIME type for CSV files: https://www.rfc-editor.org/rfc/rfc4180