在 Markdown 和 HTML 之間互相轉換,並提供即時預覽。支援雙向轉換。
如何使用 Markdown / HTML
選擇轉換方向:Markdown 轉 HTML,或 HTML 轉 Markdown。
在輸入框中輸入或貼上您的內容。
複製轉換後的輸出,或使用 Markdown 的即時預覽。
This is a two-way converter between Markdown and HTML. Turn Markdown into clean HTML to paste into a CMS, email or template, or convert existing HTML back into tidy Markdown for documentation and notes. A live preview shows the rendered result as you type.
Markdown is a lightweight way to write formatted text using plain characters, # for a heading, * for emphasis, - for a list, so it stays readable as source and converts cleanly to HTML. It powers README files, many docs sites, chat apps and static blogs.
The converter uses GitHub-Flavored Markdown, so headings, bold and italics, links, images, ordered and unordered lists, tables, blockquotes and fenced code blocks all convert as you would expect from GitHub or most modern Markdown tools.
The preview renders inside a sandboxed frame that cannot execute scripts, so even HTML containing embedded scripts is displayed safely. That matters when you paste HTML from an unknown source just to see or convert it.
Common uses include drafting content in Markdown and exporting the HTML a platform needs, cleaning messy HTML from a page into readable Markdown, or simply checking how a snippet will render before publishing it.
Everything runs locally in your browser, which keeps it fast and private. The text you convert never leaves your device.
常見問題
使用 GitHub 風格的 Markdown,因此標題、清單、連結、表格、程式碼區塊和強調都能正確轉換。
是的。預覽在沙盒框架中渲染,無法執行腳本,因此即使是包含嵌入腳本的 HTML 也能安全顯示。
不會。轉換完全在瀏覽器中執行,您的文字永遠不會離開裝置。
嵌入此工具
將此工具加入你自己的網站。複製下方的程式碼片段,它會自動保持最新。
<iframe src="https://monu.tools/embed/zh-Hant/markdown-to-html" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相關工具