JSON, CSV and Excel converter

Convert JSON object arrays to CSV or XLSX, and spreadsheet rows to JSON.

  • Runs locally
  • Free

Use the tool

Your files are processed in your browser and are not uploaded to a server.

About this tool

Convert between JSON and CSV or Excel: turn JSON object arrays into CSV or XLSX with an array path, flattened nested fields and column order, or convert table rows back to JSON.

Typical uses

  • Export a JSON list from an API to Excel
  • Turn a spreadsheet into JSON test data
  • Flatten nested JSON fields for analysis

How to use

  1. Choose a direction, paste or import JSON, or select CSV, TSV or XLSX with text encoding and worksheet.

  2. Optionally set the JSON array path, nested flattening and column order, then convert, preview, download or continue to cleanup, column operations, filtering or splitting.

Example

For {"data":{"items":[{"id":"001","name":"Ada"}]}}, use the array path /data/items to export id and name columns.

Good to know

JSON and CSV/TSV input: up to 5 MB; XLSX: 10 MB. Up to 20,000 rows, 200 columns, 200,000 cells and 10 MB output. Table-to-JSON values are strings; missing and null values become empty cells, so types do not round-trip losslessly.

The selected JSON value must be an array of objects. Imported table values remain strings to preserve leading zeros. Blank and nested values do not round-trip losslessly; CSV protects formula-like text.

What each JSON value becomes in the table

“JSON → table” needs the selected JSON to be an array of objects: each object becomes a row, and every property name found in any object becomes a column, in order of first appearance. Converting the “Load example” data (two records whose profile is a nested object) gives the columns id, name, score, profile by default, with profile kept as JSON text:

idnamescoreprofile
001Ada95{"city":"London"}
002Lin88{"city":"Shanghai"}

With “Flatten nested objects” on, nested objects are expanded level by level and the headers become JSON Pointer paths, starting with / and separating levels with /, not dotted names such as profile.city. Top-level fields get the leading / too:

/id/name/score/profile/city
001Ada95London
002Lin88Shanghai

This is what different JSON values turn into inside a cell (∅ is an empty cell):

JSON valueCell textNotes
"001"001Strings are kept as they are, leading zeros included.
9595Ordinary numbers are written as text.
19.9019.9A trailing zero is lost; write "19.90" as a JSON string to keep it.
1e2100Exponent notation is expanded.
-00-0 is written as 0.
0.10000000000000000555111512312578270.1Digits beyond double precision are dropped, without a warning.
1234567890123456789012345678901234567890Integers above 2^53 keep their original text and are counted in the status message.
1e4001e400Out-of-range numbers also keep their original text.
truetrueWritten as true / false.
null∅null becomes an empty cell.
["a","b"]["a","b"]Arrays are always JSON text; flattening does not split them.
{}{}An empty object stays {} even when flattening.
{"city":"Lyon"}{"city":"Lyon"}Without flattening, objects are JSON text.

A field missing from a record also gives an empty cell (a second record without note yields ∅), so the table cannot tell “missing” from null. When large numbers are kept as text, the status line says, for example, “Converted; 2 out-of-range numbers were preserved as their original text.”

Array path, column order and strict JSON

API responses usually wrap the array in an outer object. Put a JSON Pointer in “Array path (JSON Pointer; optional)”. It follows RFC 6901: start with / and write each property name or array index; inside a name, / is written ~1 and ~ is written ~0; an empty path means the whole document. With {"data":{"items":[…]},"a/b":[…],"m~n":[…]}:

Array pathResultNotes
/data/items2 rows · columns id, pricePoints at the array: converts normally.
/a~1b1 rows · columns xThe slash in the name “a/b” is written ~1.
/m~0n1 rows · columns yThe tilde in “m~n” is written ~0.
data/itemsInvalid JSON Pointer. Use /data/items; escape / as ~1 and ~ as ~0.A path must start with /.
/data/itemThe JSON Pointer target does not exist.A letter is missing.
/data/items/0Select a non-empty array of objects, such as [{"name":"Ada"}].Points at a single object, not an array.
∅Select a non-empty array of objects, such as [{"name":"Ada"}].The whole document is an object, not an array.

Flattened headers are escaped the same way: {"sp":{"a/b":1,"c~d":2}} gives the columns /sp/a~1b, /sp/c~0d. “Column order (JSON array; optional)” takes a JSON array of strings; the listed columns come first and the rest keep their relative order. The names must match the current mode:

Column orderFlattenResult
["name","id"]noname, id, score, profile
["/profile/city"]yes/profile/city, /id, /name, /score
["name"]yesColumn order must be a JSON array of existing, unique header strings.
["email"]noColumn order must be a JSON array of existing, unique header strings.
name, idnoEnter a valid JSON array for the column order.

Parsing is strict: no comments, no trailing commas, and no repeated property names in one object. RFC 8259 notes that software behaves unpredictably with duplicate names and that many implementations keep only the last value, so the tool stops instead of silently picking one:

InputMessage
// export ⏎ [{"a":1}]Enter strict JSON without comments or trailing commas.
[{"a":1},]Enter strict JSON without comments or trailing commas.
[{"id":1,"id":2}]JSON contains duplicate property names. Resolve them before converting.
[]Select a non-empty array of objects, such as [{"name":"Ada"}].
[1,2,3]Select a non-empty array of objects, such as [{"name":"Ada"}].
{"a":1}Select a non-empty array of objects, such as [{"name":"Ada"}].
[{"":1}]Every column needs a non-empty header.

Table to JSON: everything is a string

“CSV / XLSX → JSON” uses the first row as headers and turns each row into an object whose values are all strings: numbers, booleans and dates are not guessed. Spaces around headers and a byte order mark at the start of the file are removed. The status line then reads “Converted. All fields are strings, preserving leading zeros without guessing dates or numbers.” For this CSV row:

HeaderCSV cellJSON value
id00123"00123"
zip01234"01234"
price1.50"1.50"
activeTRUE"TRUE"
shipped2026-11-21"2026-11-21"
note∅""

CSV, TSV and TXT files are decoded with the “Text file encoding” you choose (UTF-8, GB18030 / GBK, UTF-16 LE or UTF-16 BE); nothing is auto-detected, and a byte order mark that contradicts the choice gives “The BOM does not match the selected encoding. Choose the matching UTF-8 or UTF-16 encoding.” For XLSX you pick the worksheet, and cells are read as stored, not as displayed:

XLSX cellJSON value
Number 123 with format 00000 (shows 00123)"123"
Text 00123"00123"
Number 1.5 shown as $1.50"1.5"
Date 2026-11-21"2026-11-21T00:00:00.000Z"
Logical TRUE"true"
Formula =B2*2 with cached result 3"3"
Formula without a cached resultA formula has no cached result. Recalculate and save in Excel or compatible software, then import again.
Number 12345678901234567890The workbook contains unsafe numeric values. Store long IDs as text and import again.

A number displayed as 00123 is read as "123". To keep leading zeros, store IDs as text in the source workbook; precision Excel has already lost cannot be recovered. Dates become ISO text in UTC.

What a round trip loses, and the CSV / XLSX exports

Converting JSON to a flattened table and that table back to JSON does not give the original back:

FieldOriginal JSON valueJSON after the round trip
id"001""/id": "001"
qty2"/qty": "2"
viptrue"/vip": "true"
notenull"/note": ""
tags["a","b"]"/tags": "[\"a\",\"b\"]"
profile{"city":"Lyon"}"/profile/city": "Lyon"
note (2)—"/note": ""
  • Numbers and booleans become strings; null and missing fields both become empty strings.
  • Flattened headers are JSON Pointer paths and are not rebuilt into nested objects. Without flattening, a nested object comes back as one JSON string.
  • Arrays stay JSON text in a single cell. If you need the types or structure again, restore them in your own code after converting.

“Download CSV” uses the comma, tab or semicolon chosen in “CSV delimiter” (with tab the file is named converted-table.tsv) and CRLF line breaks. “Add UTF-8 BOM for Excel” is ticked by default. To stop spreadsheet software from running formulas, text starting with =, +, - or @ gets an apostrophe, while plain numbers stay unchanged:

CellWritten to the CSVNotes
=1+1'=1+1A formula gets an apostrophe.
-5-5A negative number is unchanged.
1e51e5Exponent notation is a number and stays.
+33 6 12 34 56 78'+33 6 12 34 56 78A phone number with spaces is not a number, so it is prefixed.
@team'@teamA leading @ is prefixed.
␣-x'␣-xLeading spaces do not hide the minus.

“Download XLSX” stores every cell as text, so 00123 still shows as 00123 in Excel. Numeric columns are text too; convert them to numbers in Excel before summing.

Limits and error messages

MessageWhen it appears
Text input limit: 5 MB.Pasted JSON or CSV text exceeds 5 MB (counted as UTF-8 bytes), or an imported CSV / TSV file is larger than 5 MB.
File must use UTF-8 encoding.An imported .json file is not UTF-8. JSON files must be UTF-8; the encoding option applies only to CSV, TSV and TXT.
JSON nesting cannot exceed 64 levels.Objects or arrays are nested more than 64 levels deep.
Every column needs a non-empty header.A header is empty, or the JSON has an empty property name "".
Duplicate headers found. Rename columns first.The CSV header repeats a column name (also after trimming spaces).
A row has more cells than the header. Check the delimiter or headers.A pasted CSV row has more cells than the header. Rows with fewer cells are padded with empty values instead.
Invalid CSV. Check quoting and the delimiter.A CSV syntax error such as an unclosed quote.
Limit: 20,000 rows, 200 columns and 200,000 cells including headers.More than 20,000 rows, 200 columns or 200,000 cells including headers. Flattening adds columns.
Output exceeds 10 MB. Use smaller batches.The CSV, JSON or table content produced exceeds 10 MB.

XLSX files can be up to 10 MB. The JSON preview shows the first 20,000 characters; “Download full JSON” contains everything. Conversion runs in your browser; data is not uploaded.

Sources

Frequently asked questions

How are nested objects handled?

With flattening on, nested fields become columns named by JSON Pointer paths such as /profile/city; top-level fields get a leading / too, as in /id. Arrays stay as JSON text.

Are numbers strings after table-to-JSON?

Yes. Table-to-JSON values are strings, and missing or null values become empty cells, so types do not round-trip exactly.

Data limits?

JSON and CSV up to 5 MB, XLSX up to 10 MB; 20,000 rows and 200 columns.