JSON Table Generator
Edit data in the grid and copy it as JSON. With a header row you get an array of objects; without one, an array of arrays.
- Markdown table generator
- HTML table generator
- CSV table generator
- LaTeX table generator
- SQL table generator
- MediaWiki table generator
- Plain Text table generator
- reStructuredText table generator
- Balsamiq table generator
- Mathematica table generator
- Typst table generator
- YAML table generator
- AsciiDoc table generator
How to create your table
- Type or paste your data, with the field names in the first row.
- Turn on Headers › Header row so the first row becomes the header. Its cells become the object keys.
- Copy the JSON from the output panel. Turn off Pretty print in the output panel menu for compact output.
Example output
[
{
"Item": "Widget",
"Qty": "4",
"Price": "3.00"
},
{
"Item": "Gadget",
"Qty": "12",
"Price": "5.50"
}
]
Array of objects or array of arrays
With a header row, each data row becomes an object whose keys are the header cells, as in the example above. Without a header row, the output is an array of arrays, one inner array per row, and the first row is data like the others. There is no separate setting: turn the header row on or off with Row › Set first row as header.
Only the first header row gives the keys. Further header rows are written as objects, like the data rows.
[
["Widget", "4", "3.00"],
["Gadget", "12", "5.50"]
]
Data types
Every value is a JSON string with the cell text as you typed it: 4 is written as "4" and true in a text cell as "true". A checkbox cell is written as true or false without quotes. A link is written as its text, or as the web address when the cell has no text. Number formats are not applied. Convert the values in your code if you need numbers, or use the YAML format, which writes numbers and true or false without quotes.
Converting Excel or CSV to JSON
Paste the cells from Excel or Google Sheets into the grid, or open a .xlsx, .ods or .csv file with File › Import. Check that the first row is the header, so its cells become the keys.
It also works the other way: File › Import reads a JSON array of objects or arrays, and you can copy the table out as CSV or Markdown. A nested object or array is kept as JSON text in its cell.
What the editor can do
- Merge and split cells
- Paste cells from Excel, Google Sheets or an HTML table
- Import CSV, TSV, Excel (
.xlsx), OpenDocument (.ods), Markdown, HTML, LaTeX, Typst, JSON, MediaWiki and plain text tables - Copy the table as one of 14 text formats, or download it as an Excel, OpenDocument or Word (
.docx) file - Header rows and columns, borders, and bold, italic and alignment per cell
- Number formats for numbers, percentages and currencies
- Checkboxes, and one link per cell. Links stay links in Markdown, HTML, LaTeX, Typst, Excel, Word and the other formats that have them
- Sort, transpose, fill down or right, and find and replace with regular expressions
- Undo and redo, keyboard shortcuts and a command palette (
Alt+Q) - Save tables in the browser, reopen recent tables and share a table as a link
- Also available as a Windows app
Table Editor for Windows
The same editor as a Windows app, with what a browser tab can't do.
- Tabs. Keep several tables open at once. Tabs with unsaved changes come back when you start the app again.
- Your own files. Open Excel, CSV, Markdown, LaTeX and other files directly, also from Windows Explorer, and save back to the same file.
- Offline, without ads. Works without an internet connection. No ads, no analytics, and nothing leaves your computer.
A one-time purchase in the Microsoft Store.
Frequently asked questions
- When do I get objects instead of arrays?
- When the table has a header row, each data row becomes an object keyed by the header cells. Empty header cells become
column1,column2and so on, and a repeated name gets a suffix such as_2. Without a header row, the output is an array of arrays. - Are numbers written as JSON numbers?
- No. Every value is a string with the text as you typed it, so
4is written as"4". Number formats such as currency are not applied. Checkbox cells (Format › Number format › Checkbox) are the exception: they are written astrueorfalse. - Can I import JSON?
- Yes. File › Import reads an array of objects, an array of arrays, or a single object, which becomes a table of keys and values.
trueandfalsebecome checkbox cells.