代码、数据与二维码工具

Markdown转HTML

在浏览器中将Markdown转为经过清理的HTML;支持可选GFM表格/任务列表/删除线/自动链接、单换行硬换行、sandbox预览、复制与HTML下载。

优先本地处理无需注册隐私说明 ↗

Maximum 100,000 characters. The generated HTML is sanitized before it is displayed, previewed, copied, or downloaded.

Adds tables, task lists, strikethrough, and URL autolinking.

Only applies while GitHub Flavored Markdown is enabled.

使用步骤

如何使用

  1. Paste Markdown up to 100,000 characters.
  2. Choose whether to use GitHub Flavored Markdown and single-line hard breaks.
  3. Convert, inspect the sanitized HTML and sandboxed preview, then copy or download the result.

Markdown and GFM choices

Standard headings, paragraphs, emphasis, links, lists, block quotes, thematic breaks, and fenced code blocks are supported. GitHub Flavored Markdown is on by default and adds tables, task lists, strikethrough, and URL autolinking. Optional hard breaks turn single line endings into br elements while GFM is enabled. Code remains semantic pre and code markup; syntax highlighting is not added.

Sanitized output and isolated preview

The parser output passes through DOMPurify before it reaches the result, download, or preview. Scripts, event handlers, forms, embedded frames, active objects, styles, and unsafe URL schemes are removed. The preview uses an iframe without sandbox permissions plus a restrictive content security policy. External media addresses remain in the exported HTML but are omitted from the preview so viewing it cannot contact their servers; preview links are also inactive. Review generated HTML before publishing it in another system.

常见问题

你可能还想知道

Can the converter execute HTML from my Markdown?

No. The output is sanitized, and the preview is isolated in a sandboxed iframe without script or form permissions.

Why was some raw HTML removed?

Elements and attributes that can execute code, submit data, embed another page, or change styles are outside this tool’s safe output profile.

Does it add syntax highlighting to code blocks?

No. Fenced code blocks keep semantic pre and code elements plus their language class when available, but no highlighting library is loaded.