Web Table to Markdown Converter
Copy a table from any web page, paste it here, and get a Markdown table with links, images and merged cells handled.
Sample shown — copy your own table and paste to replace it.
Rich table detected: formatting, links and merged cells are read from the copied HTML. Editing this text switches to plain text.
How to copy a table from a website to Markdown in 3 steps
Select and copy the table
Drag from the first cell to the last cell of the table on the page so every cell is highlighted, then press Ctrl+C (⌘C on a Mac).
Paste it into the box
Click the box and press Ctrl+V, or click Paste. The tool reads the HTML table from the clipboard, not just the text.
Copy the Markdown
Check the preview, tweak links, images, footnote markers and merged cells, then click Copy Markdown.
Example
Largest cities by population (caption)
Rank | City | Population[1] (two header rows)
| Name | Country |
1 | Tokyo | 🇯🇵 Japan | 37,115,035
2 | Delhi | 🇮🇳 India | 33,807,403
3 | Shanghai[a] | 🇨🇳 China | 29,867,918
(city names are links, [1] and [a] are footnotes)**Largest cities by population** | Rank | City Name | City Country | Population | | ---- | -------------------------------------------- | ------------ | ---------: | | 1 | [Tokyo](https://en.wikipedia.org/wiki/Tokyo) | 🇯🇵 Japan | 37,115,035 | | 2 | [Delhi](https://en.wikipedia.org/wiki/Delhi) | 🇮🇳 India | 33,807,403 | | 3 | **Shanghai** | 🇨🇳 China | 29,867,918 |
Options explained
- Keep bold, italic & code
- Bold, italic, strikethrough and monospace text become Markdown emphasis and `code`.On (default) · Off
- Keep links
- Links with a full http(s) address become [text](url). Browsers normally copy full addresses; a link that arrives as a relative path (/wiki/Tokyo) cannot be resolved and keeps only its text.On (default) · Off
- Keep images
- Images with an absolute address become , which is how icons and badges in table cells survive. Off writes the alt text instead.On (default) · Off
- Drop footnote markers
- Removes Wikipedia-style markers such as [1], [a] and [citation needed], and hidden sort keys that sortable tables carry.On (default) · Off
- Merged cells
- colspan and rowspan are flattened onto a grid because Markdown cannot merge cells. Cells covered by a merge stay blank, or repeat the value.Leave covered cells blank (default) · Repeat the value
- Header
- Uses the table's header cells (th) or its first row. Tables with two header rows are combined into one ("City Name", "City Country"). "None" writes Column 1, Column 2… and keeps every row as data.Automatic (default) · First row · None
- Table, Compact, Caption line
- A copy that spans several tables gives you a choice of one or all. Compact removes padding spaces. Caption line adds the table's <caption> above it as a bold line.
Convert to and from other formats
Convert other formats to Markdown
- CSV to Markdown TableConvert CSV text or .csv files, including quoted cells.
- Excel to Markdown TablePaste cells copied from Excel straight into a Markdown table.
- Google Sheets to Markdown TablePaste a copied range or a public sheet URL.
- TSV to Markdown TableConvert tab-separated text into a Markdown table.
- HTML Table to MarkdownConvert <table> markup into a Markdown table.
- JSON to Markdown TableConvert a JSON array of objects into a table.
- SQL to Markdown TableConvert MySQL, PostgreSQL or SQLite CLI query output.
- Word Table to MarkdownPaste a table copied from Word or Google Docs.
- Image to Markdown TableTurn a screenshot or photo of a table into Markdown in your browser.
- PDF to Markdown TableExtract a table from a PDF page, with OCR for scans.
- Universal Table to MarkdownPaste anything tabular; the format is detected for you.
Convert Markdown to…
- Markdown Table to CSVExport a Markdown table as RFC 4180 CSV.
- Markdown Table to TSVCopy as tab-separated values that paste cleanly into Excel and Sheets.
- Markdown Table to HTMLExport semantic <table> markup.
- Markdown Table to JSONExport rows as an array of JSON objects.
- Markdown Table to LaTeXExport LaTeX tabular code for papers and Overleaf.
- Markdown Table to SQLGenerate CREATE TABLE and INSERT statements.
- Markdown Table to ExcelDownload a real .xlsx with numbers, bold header and one sheet per table.
- Markdown Table to Google SheetsCopy a table that pastes cleanly into Google Sheets.
- Markdown Table to WordCopy a formatted table into Word or Google Docs, or download .docx.
- Markdown Table to ConfluenceWiki markup, storage format or a rich copy for the Cloud editor.
- Markdown Table to JiraConvert to Jira and Confluence wiki markup.
- Markdown Table to ImageRender the table as a PNG or SVG for slides and posts.
About this tool
Select a table on a web page, copy it, and paste it here. The converter reads the HTML table your browser puts on the clipboard, so you do not need the page source or a browser extension. Links and images with absolute addresses become Markdown, Wikipedia-style footnote markers and hidden sort keys are removed, and rowspan and colspan are flattened onto a grid. Everything happens in your browser.
- Reads the HTML table from the clipboard, not just the text
- Wikipedia footnote markers and hidden sort keys removed
- colspan and rowspan flattened, with a repeat-the-value option
- Links and images with absolute URLs kept as Markdown
- Bold, italic, code and strikethrough kept
- Several tables in one copy, each with its caption
- Pipes and other Markdown characters in text escaped
- No upload and no browser extension needed
Technical details
Copying a rendered table versus converting HTML source
When you copy a rendered table, the browser puts an HTML fragment on the clipboard that has already been resolved: styles applied, hidden elements mostly removed, and scripts gone. This page converts that fragment. The HTML table to Markdown tool is for the other case, where you have the <table> source code itself; this page also accepts that if you paste it as text.
- Spans: each cell is placed on a grid using its colspan and rowspan, and covered cells are blank or repeated depending on the option.
- Headers: th cells and the table head become the header row; several header rows are joined with a space and identical neighbors are not repeated.
- Cleanup: footnote markers, edit links, hidden sort keys, empty rows and empty columns are removed so only the visible data remains.
- Links: only absolute http(s) and mailto addresses are written; a relative link is not resolved because the clipboard does not say which site it came from.
- Safety: the HTML is parsed with DOMParser into an inert document; scripts do not run and nothing is fetched. Output is plain Markdown text with special characters escaped.
Common problems and fixes
The paste came out as lines of text, not a table
Cause: The page does not use a real HTML table. Many modern sites draw tables with div elements, which copy as plain lines.
Fix: Try copying the visible rows again and paste; tab-separated text still splits into columns. For text laid out with spaces, split it into columns in a spreadsheet first.
Some rows or columns are missing
Cause: The selection did not cover the whole table, or the page loads rows only when you scroll (virtual lists).
Fix: Scroll to load all rows first, then drag from the first to the last cell. A table with a pager has to be copied one page at a time.
Links lost their address
Cause: The copied HTML held a relative link (/wiki/Tokyo). The clipboard does not say which site it came from, so the full address is unknown.
Fix: Turn off Keep links to get clean text, or add the site prefix to the links in the table editor.
The header row is wrong
Cause: The table has no header cells, or has two header rows.
Fix: Pick Header → First row, or None to keep every row as data and name the columns yourself.
Nothing happens when I click Paste
Cause: Browsers ask permission before a page may read the clipboard, and some block it in embedded or private windows.
Fix: Click the box and press Ctrl+V (⌘V on a Mac); no permission is needed for that.
Frequently asked questions
How do I copy a table from a website to Markdown?
Drag across the table from its first cell to its last, press Ctrl+C (⌘C on a Mac), and paste into the box on this page. The Markdown appears beside it, with links and images kept as Markdown.
How do I select a whole table in Chrome, Firefox or Safari?
In all three, click just before the first cell and drag to the end of the last cell, or click in the first cell and Shift+click in the last. In Firefox you can also hold Ctrl (⌘ on a Mac) and click cells to pick a cell range. Selecting the whole table is the safest way to keep its structure.
How do I convert a Wikipedia table to Markdown?
Select the table on the Wikipedia page, copy it and paste it here. Footnote markers like [1] and hidden sort keys are removed, links keep their address, images with a full address become Markdown images, and merged header cells are flattened.
What happens to merged cells (colspan and rowspan)?
Markdown cannot merge cells, so the merge is flattened: the value is written once and the covered cells stay blank, or it is repeated in each covered cell if you choose that option. A two-row header is combined into one row.
Are links and images kept?
Yes, when the copied HTML has a full address, which browsers normally provide. [text](https://…) and  are written. A relative link such as /wiki/Tokyo keeps its text only, because the clipboard does not say which site it came from.
Why did the table paste as plain text lines?
The page probably draws its "table" with div elements instead of a real HTML table, so only text is copied. Tab-separated text still splits into columns; text aligned with spaces needs to be split into columns in a spreadsheet first.
What is the difference from the HTML Table to Markdown tool?
This page converts a table you copied from a rendered page. HTML Table to Markdown converts <table> source code that you paste as text. This page also accepts pasted source code, so either works for that.
Can I convert a table from a PDF?
PDF text copies as lines without cell boundaries, so there is nothing to detect. Paste the lines into a spreadsheet, split them into columns there, then copy the cells into the Excel to Markdown tool.
Is the page content sent to a server?
No. The copied table is read from your clipboard and converted in your browser. Nothing is uploaded and no extension is needed.