HTML to Markdown
HTML to Markdown convert web markup to md HTML table to Markdown HTML document converterMove HTML content into Markdown
Paste HTML source or open a UTF-8 HTML file. Review the Markdown preview and any conversion notes, then copy or download the result as an .md file. The preview keeps links inactive and does not fetch images. It is intended for checking document structure before using the output elsewhere.
Keep the document, leave the layout
Headings become hash-prefixed Markdown headings. Paragraphs become separate blocks, strong and emphasized text receive Markdown markers, and ordered or unordered lists retain their basic structure. Links and images become references to their supplied URLs. CSS classes, colors, fonts, page columns and positioned layouts have no general Markdown equivalent and are not preserved.
Worked example: a short note
The HTML <h1>Shopping</h1><p>Bring <strong>two</strong> notebooks.</p> becomes a level-one Shopping heading followed by Bring **two** notebooks. A following unordered list becomes dash-prefixed items. Copying rendered text from a page would lose much of this structure, so use actual HTML source when you want headings and emphasis carried across.
Code and tables
Preformatted blocks become fenced code blocks, with a fence longer than any backtick run inside the code. Inline code uses its own matching backtick delimiter. Basic HTML tables become pipe tables using a Markdown extension supported by many editors. If a table has no header cells, the converter adds a blank header row rather than promoting the first data row and losing its meaning.
Merged cells, nested tables and complex content inside table cells need manual review. Rowspan and colspan cannot be represented by a simple pipe table, so the tool warns when those structures are encountered. Different Markdown renderers may handle tables and line breaks differently; check the final document in the application that will display it.
Limitations and omitted content
Scripts, embedded frames, forms, audio, video and drawing elements are omitted. HTML-only formatting may be reduced to plain text. The tool reads the supplied markup; it does not run JavaScript to construct content, fetch a website, or recover information that exists only after a page loads. Relative links remain relative because an uploaded file does not establish the original website’s base address.
Input is limited to two megabytes, thirty thousand visited nodes and one hundred nested levels. Browser parsing can repair malformed HTML, so a successful conversion is not proof that the source was valid. Whitespace in ordinary text is normalized; preformatted code retains its internal whitespace. Review unusual lists, intentional spacing and custom elements before replacing an original document.
HTML conversion FAQ
Are image files downloaded?
No. Markdown retains image references, but this tool does not copy their files or load them in its preview.
Is converted Markdown safe to publish blindly?
Review links and content before publishing. The local preview is sanitized, but the destination renderer has its own behavior and policies.
Related tools
Need the reverse conversion? Use Markdown to HTML to export a fragment or complete document.