JSON / CSV to Markdown Table

Paste JSON or CSV, get a tidy Markdown table.

Runs in your browser Instant No sign-up
Input
Align
JSON array or CSV

Paste, type or drop a file — output appears as you type.

Waiting for input
Processed locally · nothing is uploadedProcessed locally

How to use the Markdown table generator

  1. Paste a JSON array or CSV into the left pane. The Markdown table appears as you type.
  2. Input: Detect (the default), JSON or CSV.
  3. Align: Numbers right (the default), Left, Center or None.
  4. Pad columns: pad cells so the source is readable as plain text. Turn it off for the shortest output.
  5. Copy the table, or Download it as table.md.

The status bar shows the number of rows and columns and which input format was used.

Example

[
  { "tool": "JSON Formatter", "users": 5200, "rating": 4.8 },
  { "tool": "JWT Decoder", "users": 2400, "rating": 4.7 },
  { "tool": "Regex Tester", "users": 900, "rating": 4.5, "note": "supports | pipes" }
]

becomes

| tool           | users | rating | note              |
| :------------- | ----: | -----: | :---------------- |
| JSON Formatter |  5200 |    4.8 |                   |
| JWT Decoder    |  2400 |    4.7 |                   |
| Regex Tester   |   900 |    4.5 | supports \| pipes |

The note column only exists in the last object, so the other rows get an empty cell, and the pipe in its text is escaped.

Where Markdown tables work

GitHub-flavored Markdown tables render in README files, pull request descriptions and issues on GitHub and GitLab, in Notion, Obsidian, Confluence’s Markdown import, Jira, Slack canvases and most static site generators. They are also an easy way to show tabular data to a language model in a prompt.

How the columns are chosen

For an array of objects, the header is built from every key in the order it first appears, so objects with extra or missing fields still line up: missing values become empty cells. Values that are themselves objects or arrays are written as compact JSON in a single cell, which keeps the table rectangular. Numbers are detected per column in the default alignment mode, so a column that mixes numbers and text stays left-aligned. For CSV input the first row is always the header, empty rows are skipped, and quoted fields keep their commas and line breaks.

Tips

  • Too many columns? Remove fields in JSON first, or use the JSONPath Tester to pick the ones you need.
  • Need a spreadsheet instead? Convert the same data with JSON to CSV, or browse a big CSV in the CSV Viewer.
  • Check the rendering by pasting the table into Markdown to HTML.

Frequently asked questions

What JSON shapes can it turn into a table?

An array of objects (one row per object, and the columns are every key that appears, in order of first appearance), an array of arrays (the first array is the header), a single object (a two-column key/value table) or a plain list of values (one column). Other shapes get an error explaining what to paste.

Can I paste CSV instead?

Yes. With Input set to Detect, text that starts with [ or { is read as JSON and anything else as CSV. The delimiter (comma, semicolon, tab or pipe) is detected, quoted fields with commas or line breaks are handled, and the first row becomes the header.

What happens to pipes and line breaks in cells?

A | inside a cell is escaped as \| so it doesn't start a new column, and a line break becomes <br>, which GitHub, GitLab and most Markdown renderers show as a new line inside the cell. Nested objects and arrays are written as compact JSON.

How are columns aligned?

In the default mode, columns that hold only numbers are right-aligned and everything else is left-aligned, using the :--- and ---: markers. You can force left, center or no alignment. With Pad columns on, cells are padded so the raw Markdown lines up in a fixed-width font; Chinese, Japanese, Korean characters and emoji count as double width.

Is my data uploaded?

No. The table is built in your browser and nothing you paste leaves your device.

Last updated