paste in · markdown table out

JSON to Markdown Table Converter — renders everywhere

Paste JSON and get a GitHub-flavoured Markdown table you can drop straight into a README, an issue, or a wiki page. Pipes are escaped, numeric columns right-align, and nothing is uploaded.

Converter — Ready
Awaiting input
jq-style: .field .[] select(.f == "x")
idle — paste JSON and the table shows up here
0 rows 0 columns Markdown output
runs entirely in your browser
nothing is uploaded, ever
no sign-up, no account
free — no paid tier, ever
The basics

What is a JSON to Markdown table converter?

A JSON to Markdown table converter turns structured JSON data into a Markdown table — the pipe-delimited grid that GitHub, GitLab, Obsidian, Notion, and most documentation tools render as a table. It is the fastest way to get API output into a README, a bug report, a pull request description, or a wiki page.

The reason people end up hand-writing these tables is that the output of an API is rarely shaped like a table. A JSON array of objects has to have its keys lined up, its nested objects flattened, and its pipe characters escaped before Markdown will render it correctly. Get any of those wrong and the table silently breaks — a cell containing a pipe splits the row into two, and a value containing a newline ends the table entirely.

HopConvert does all of that work. It unions the keys across your records to build a consistent column set, flattens nested objects into columns like user__name, escapes pipes and backslashes so values cannot break the grid, collapses newlines inside cells into spaces, and generates the alignment row (---, ---:, or :---:) that makes the table render properly. Numeric columns are right-aligned automatically, which is exactly what a human would have done by hand.

Everything happens in your browser. The JSON you paste is never transmitted anywhere, so it is safe to use with data from a private API, an internal service, or a customer export.

Step by step

How to convert JSON to Markdown in 4 steps

Most conversions take under a minute. No login, no upload to a server, no installation.

  1. Paste or upload

    Drop a .json file into the upload zone or paste a JSON array of objects into the box. A single object becomes a one-row table.

  2. Tune the formatting

    Open the settings cog to set the alignment style, decide whether pipes are escaped, cap cell length if you want, and add a numbered index column.

  3. Preview

    The Markdown table appears instantly, with the separator row and alignment markers already generated.

  4. Copy or download

    Click Download .md to save the table, or select the preview text and paste it directly into your README or issue.

Why HopConvert

Built for the JSON you are about to paste into a README

Markdown tables break in small, confusing ways. HopConvert handles all of them for you.

Correct alignment row

The | --- | separator is generated for you, and numeric columns are right-aligned automatically — exactly what Markdown renderers expect.

Pipe escaping

A value containing | is escaped to \| so it cannot split your row into extra columns. Backslashes are escaped too.

Union of all columns

Records with different keys still produce one consistent table, with missing values left blank.

Newlines neutralised

A value containing a line break would end the table, so newlines inside cells are replaced with spaces.

Browser-only privacy

Internal API output and customer data stay on your machine — every byte is processed locally in JavaScript.

Optional index column

Add a numbered # column when you want rows to be referenced by position in an issue or a review.

Comparison

Markdown tables vs CSV vs HTML tables

Three ways to publish a table. Each has a different sweet spot.

Aspect Markdown CSV / HTML
Renders in a README Native CSV needs a link, HTML needs a renderer
Readme diffs Reviewable as text CSV is one long line
Spreadsheet-ready No — needs converting back Yes for CSV
Styling Minimal — alignment only Full CSS
Version control Clean diffs HTML diffs are noisy
Cell with a pipe character Needs escaping No issue
Where it comes from JSON, hand-written CSV, spreadsheet exports
Use cases

When teams reach for JSON to Markdown

Documentation, issue reports, and changelogs all want a table. JSON is what you have.

README feature tables

Turn a config dump or a list of supported options into a table you can paste into your project README.

Bug reports and issue threads

Paste the API response that broke, as a table, so the reporter and the maintainer see the same rows.

Documentation sites

Generate a table of API parameters, versions, or supported timezones straight from a JSON spec.

Changelogs and release notes

Summarise a release payload into a readable list of changes.

Slack and chat updates

Render a quick results table to paste into a channel without screenshotting a spreadsheet.

Teaching and workshops

Show a dataset as a table in a slide or a notebook so students can focus on the data, not the formatting.

The complete guide

JSON to Markdown: the complete guide

Everything about turning JSON into a Markdown table that renders correctly everywhere — alignment, escaping, and the rules that break grids.

Read the full JSON to Markdown guide

Related tools: JSON to Markdown guide · JSON to CSV

What does a Markdown table look like?

A GitHub-flavoured Markdown table is three kinds of line: a header row, a separator row, and one body row per record. Every cell is wrapped in pipes, and every row has the same number of cells.

| id | name       | active |
| --- | ---------- | ------ |
| 1  | Alice Chen | true   |
| 2  | Bob Singh  | false  |

The separator row is not decoration — it is required, and it is what tells the renderer where the header ends. Each of its cells must contain at least three hyphens. A table without a separator row is not a table; it renders as plain text.

How does column alignment work?

The separator row also controls alignment. The hyphens can be padded with a colon on either side:

  • | --- | — default, left-aligned
  • | :--- | — left-aligned, explicitly
  • | :---: | — centred
  • | ---: | — right-aligned

Padding the dashes to match the width of the header cell is purely cosmetic, but it makes the raw Markdown far easier to read in a diff. Most people right-align numeric columns because that is what a spreadsheet would do, and HopConvert detects it automatically — a column whose every value is a number gets ---:.

How do you escape special characters?

Two characters will break a Markdown table if they are not handled:

  • The pipe character | is the column separator. A cell containing a raw pipe is split into two columns, and the row becomes ragged. Escape it as \|.
  • The newline ends the row. A cell containing a line break must have it replaced with a space, or the table stops early and the rest of your data becomes stray text.

Backslashes need care too: escaping a pipe introduces a backslash, so a literal backslash in your data has to be doubled first. HopConvert escapes in that order — backslashes, then pipes — which is the only order that is actually correct.

value "a | b"   becomes   value "a \| b"
value "C:\dir"  becomes   value "C:\\dir"

How is the column set decided?

The converter reads every record and builds the column list from the union of all keys, in order of first appearance. Records missing a key simply get an empty cell. Without this, a JSON array where the first record has three keys and the second has four would produce a broken table with mismatched row lengths — which most renderers either drop or silently repair.

How is nested data handled?

Nested objects are flattened into column names joined by __ — {"user": {"name": "Alice"}} produces the column user__name. Arrays of objects expand into one row per element with the parent fields repeated, which is the layout a documentation table almost always wants.

Because a Markdown table must stay flat, there is no way to represent genuinely nested content. For anything that needs structure, CSV or Excel is the better target.

Common edge cases

  • A value containing a pipe: escaped to \|.
  • A value containing a newline: replaced with a space.
  • Empty values: rendered as an empty cell, not the string "null".
  • Boolean and numeric values: written as true / false and bare numbers, and numeric columns are right-aligned.
  • Very long values: optionally truncated with an ellipsis using the cell-length setting.
  • A single object instead of an array: converted to a one-row table.
  • An array of scalars: converted to a single column named value.
  • Unicode and emoji: written as UTF-8, which every modern renderer handles.

Where do Markdown tables belong?

Markdown tables are a documentation format, not a data format. They are the right choice for:

  • READMEs and documentation sites — feature matrices, parameter tables, version comparisons, supported options.
  • Issue and pull request bodies — where a reviewer needs to see actual rows.
  • Changelogs and release notes — a table of changes per version.
  • Slack, Discord, and email — a short table pasted into a channel, where a screenshot would be worse.

They are the wrong choice for anything that needs to be sorted, filtered, pivoted, or joined. That is a spreadsheet job — use JSON to Excel or JSON to CSV instead. And if the data is sensitive enough that it should never leave your machine, every HopConvert tool keeps it in the browser.

FAQ

Frequently asked questions

Everything you need to know about turning JSON into a Markdown table.

What is a JSON to Markdown table converter?
A JSON to Markdown table converter transforms a JSON array of records into a GitHub-flavoured Markdown table — a header row, an alignment separator, and one row per record. The result pastes directly into a README, issue, pull request, wiki, or chat message.
Is HopConvert free to use?
Yes. The JSON to Markdown converter is 100% free with no sign-up, no watermark, and no premium tier. It runs in your browser, so there are no server costs to pass on.
Do I need an account?
No. No account, no email, no personal details. Open the page, paste your JSON, and copy the table.
Is my JSON uploaded?
No. The table is generated locally in your browser with JavaScript. There is no backend that could receive your data, and the "Verify: nothing uploaded" button on the page shows a live audit of every network request it makes.
How are pipes and newlines handled?
A pipe inside a value is escaped to a literal pipe so it cannot split the row, and newlines inside a value are replaced with spaces so they cannot end the table early. Backslashes are escaped first, which is the only order that stays correct.
How is column alignment decided?
By default it is automatic: columns whose values are all numeric are right-aligned, and everything else is left-aligned. You can force left, centre, or right alignment for every column in settings.
What happens to nested JSON?
Nested objects are flattened into column names joined by __, so {"user": {"name": "Alice"}} becomes the column user__name. Arrays of objects expand into one row per element.
Can I add a row number column?
Yes. Turn on the index column in settings and each row gets a numbered first cell, which is handy when rows need to be referenced in a review.
Should I use Markdown or CSV instead?
Use Markdown when the table is for documentation — a README, an issue, a changelog. Use CSV when the data needs to be sorted, filtered, pivoted or opened in a spreadsheet, and use Excel when you need types and formatting preserved.

Build the Markdown table

Free, instant, and private — your JSON never leaves this tab.

Start Converting Read the FAQ