Table to Markdown Converter (HTML Table)
Convert any table to markdown. Paste an HTML table or copy cells from a web page and get markdown, HTML, CSV, LaTeX or JSON output. Free tool.
What Is a Table to Markdown Converter?
A table to markdown converter takes a table from a web page, an HTML file or a rich-text document and rewrites it as a markdown pipe table. It reads the <table>, <tr>, <th> and <td> elements, flattens merged cells, keeps the text alignment declared in the HTML and produces a table you can paste into a README, wiki page or note.
Because the parsed table is a neutral grid, this page also works as a general table converter: the same input can be output as HTML, CSV, LaTeX, JSON or a plain text table. Parsing uses the DOM parser built into your browser, so nothing is uploaded.
How to Convert a Table from a Web Page
- Select the table on the web page with your mouse and copy it. In most browsers you can start the selection just above the table and end just below it.
- Paste into the input pane. The tool detects the HTML on the clipboard and shows the row and column count.
- If the source is raw HTML, paste the markup instead; a full page with several tables works too. Use the Table menu to pick one.
- Choose an output format. Markdown is the default; HTML, CSV, LaTeX, JSON and text are one click away.
- Copy the output or download it with the right file extension.
Output Formats Reference
One parsed table, six outputs. Pick the one that matches where the data is going:
| Format | Best for | Details |
|---|---|---|
| Markdown | GitHub, docs, notes | Padded pipes, alignment row from the HTML |
| HTML | Web pages, email | Clean thead/tbody, escaped text, no scripts or classes |
| CSV | Excel, Sheets, pandas | RFC 4180 quoting |
| LaTeX | Papers, theses | booktabs tabular with escaped special characters |
| JSON | Code, tests, APIs | Array of objects keyed by header, numbers parsed |
| Text | Terminals, code comments | Box-drawing characters |
HTML Table to Markdown: What Is Preserved
An HTML table to markdown conversion keeps cell text, header cells and alignment (from align attributes or text-align styles). Bold, links and other inline markup are reduced to their text, because markup copied from arbitrary pages is rarely what you want in a document. Line breaks inside a cell become spaces, and nested tables are flattened into the parent cell. Images are dropped. If you need inline formatting, use the HTML to Markdown converter on the whole page instead and cut the table out of the result.
Markdown Table to HTML and Other Directions
The input pane is not limited to HTML. Paste a markdown table and choose HTML to get a markdown table to HTML conversion with proper thead and tbody elements, or paste CSV and choose LaTeX to skip a step. When you need to convert table data between any two of these formats, this table to markdown converter is the shortest path, and the dedicated generators on this site give you finer control over styling once the data is in place.
Frequently Asked Questions
How do I copy a table from a web page?
Drag to select the table on the page, press Ctrl+C or Cmd+C, and paste into the input pane. Browsers put both the HTML and the plain text of the selection on the clipboard; the table to markdown converter reads the HTML version, so column boundaries are exact even when cells contain spaces.
What happens to merged cells (rowspan and colspan)?
Markdown has no merged cells, so the value is repeated into every position the merge covered. A header that spans three columns becomes three identical header cells, which keeps the columns lined up correctly.
Can I convert an HTML table to something other than markdown?
Yes. The output format menu offers markdown, HTML, CSV, LaTeX, JSON and a plain text table. The same parsed table feeds every format, so you can switch between them without pasting again.
The page has several tables. Which one is converted?
When the pasted HTML contains more than one table, a Table menu appears so you can pick the one you want. Nested tables inside a cell are flattened into the cell text.
Is the HTML sent anywhere?
No. The HTML is parsed with your browser's own DOM parser, and scripts inside it never run. Nothing leaves your device.