Back to public tools
← All tools
Developer utility

Markdown HTML Converter

Turn Markdown notes into HTML, or recover editable Markdown from an HTML fragment. Convert GFM tables, nested lists, headings, links and fenced code, then inspect a separate sanitized preview before copying the output.

Browser-local conversion. No account, conversion service, text storage or remote asset loading.

Convert notes and web markup

Choose the direction, paste your text or choose a file, then choose Convert. Review the output and separate preview below before copying or downloading.

Up to 1 MiB of UTF-8 text. Upload .md, .markdown, .html or .htm files. Large or deeply nested documents may need splitting.

Markdown supports headings, tables, nested lists, fenced code and common text styling. The HTML export is raw and not sanitized; inspect and sanitize it before opening or publishing. The separate preview removes active content and remote assets.

How to use Markdown HTML Converter

Choose the direction and source

Choose Markdown to HTML or HTML to Markdown. Paste source text, choose a UTF-8 file, or use Try an example for the selected direction. Uploading a Markdown or HTML file selects its matching direction. Use arrow keys, Home or End on the direction tabs as a keyboard alternative.

Convert and inspect

Choose Convert. Markdown headings, tables, nested lists, fenced code, links and strikethrough use CommonMark with GFM extensions. HTML to Markdown keeps supported writing structure while removing styles, scripts, forms and images.

Read the output text and the separate sanitized preview. The preview removes active content, remote assets and link destinations; it cannot show every feature of the export. Images are not fetched.

Copy or download

Copy raw HTML or Download raw HTML exports the exact unsanitized result. Markdown can include literal HTML, scripts or event handlers, so apply your own trusted sanitization before opening or publishing that export. The sanitized preview is not the raw download.

Copy Markdown or Download Markdown saves the converted writing. If clipboard access is blocked, the output is selected for manual copying. Edits and direction changes clear old results. Cancel stops conversion or a pending file load. Clear starts again and returns to the input.

Example: share project notes

Write a Markdown heading, a short task list and a fenced code block, or use Try an example to load a table and nested list. Convert Markdown to HTML and inspect the generated heading, table cells and code in the preview.

Switch to HTML to Markdown and try its example. The result is editable Markdown with a pipe table and fenced code. Spacing may change, so compare the content rather than expecting the original source spelling.

About Markdown and HTML

Markdown uses simple writing marks for headings, lists and emphasis. HTML uses tags to describe web content. Converting between them is useful for notes and articles, but it cannot preserve every webpage layout.

HTML to Markdown loses styles, images, media, forms and unsafe structures. Complex or merged tables, custom components and exact source formatting may change. Task checkbox states are not preserved because form controls are removed. Review the result before using it.

The preview is a separate sanitized fragment inside a sandboxed frame. Scripts, styles, IDs, forms, images, SVG, MathML and remote resources are removed. Links cannot navigate, and code is displayed as literal text. Raw HTML output remains plain text in its field until you choose to export it.

This uses CommonMark and GFM extensions rather than a full GitHub renderer. It does not render diagrams, LaTeX, MDX or syntax highlighting. Relative links remain relative in exports and are inert in the preview.

Your source, filename and result stay in browser memory. Referenced web resources are not requested. UTF-8 text files are supported; binary files, UTF-16 and unsupported controls are rejected. Split large or deeply nested input if conversion exceeds its limits.

Conversion engine versions and redistribution licenses.

Stars and feedback

Loading…

Tool reference #173