HTML to Markdown
Convert HTML to Markdown, with tables emitted as GFM pipe syntax
What is HTML to Markdown?
This HTML to Markdown converter turns page fragments into clean Markdown, handling headings, lists, code blocks, blockquotes, and tables, which are written using GFM pipe syntax. It is a fast way to move documentation or web content into a knowledge base, and it runs entirely in your browser.
How to use HTML to Markdown
- 1Paste the HTML source. You can copy an element straight out of your browser devtools.
- 2Review the Markdown output, where tables are converted to pipe syntax.
- 3Paste it into your Markdown editor for a final pass.
Frequently asked questions
Why is some of the formatting lost?+
Markdown expresses structure rather than presentation, so purely visual information such as color, font size, and alignment is necessarily dropped. Semantic markup like bold, italic, and inline code survives. Keep the raw HTML whenever the exact styling matters.
Are nested tables converted correctly?+
No. GFM table syntax cannot nest a table inside a cell, so the inner table is flattened to plain text within that cell. Content like this is better left as the original HTML.
Related tools
All toolsJSON to YAML Converter
Convert JSON to YAML while preserving the nesting
YAML to JSON Converter
Convert YAML to JSON, multi-document files included
JSON to CSV Converter
Convert a JSON array of objects to CSV, with nested fields flattened automatically
CSV to JSON Converter
Convert CSV to JSON with automatic header and delimiter handling
JSON to TypeScript
Infer TypeScript type definitions from JSON
JSON to Go Struct
Convert JSON to Go structs with json tags filled in