Markdown Preview
Write Markdown and preview or export clean HTML
Markdown Preview — what it does
Write Markdown on one side and see the rendered HTML on the other, then export the HTML when the text is right. It closes the loop that makes Markdown pleasant to write: you see immediately whether that list, table or code block is going to render the way you intended.
Worked example
A short weekly-status note written in Markdown — a heading, bold text, inline code, a numbered list with a link, a table with column alignment and a blockquote — and the HTML the preview pane shows for it.
Input — Markdown
## Weekly status — 20 Oct 2026 **Done:** migrated the `invoices` table. 1. Review open tickets 2. Send summary to [finance](https://intranet.example.com/finance) | Team | Open | Closed | |:--|:--:|--:| | Billing | 4 | 12 | > Next sync: *Thursday* 10:00.
Output — rendered HTML
<h2>Weekly status — 20 Oct 2026</h2> <p><strong>Done:</strong> migrated the <code>invoices</code> table.</p> <ol><li>Review open tickets</li><li>Send summary to <a href="https://intranet.example.com/finance" target="_blank" rel="noopener">finance</a></li></ol> <table><thead><tr><th>Team</th><th style="text-align:center">Open</th><th style="text-align:right">Closed</th></tr></thead><tbody><tr><td>Billing</td><td style="text-align:center">4</td><td style="text-align:right">12</td></tr></tbody></table> <blockquote><p>Next sync: <em>Thursday</em> 10:00.</p></blockquote>
The :--: and --: markers become text-align:center and text-align:right on every cell of that column; links get target="_blank" and rel="noopener", and only http:// and https:// addresses are turned into links.
When this tool helps
- Drafting a README or documentation page and checking the formatting as you write.
- Converting Markdown notes into HTML for a page, email or CMS.
- Checking whether a syntax you rarely use — nested lists, tables, reference links — renders correctly.
How to use it
- Type or paste Markdown into the input side.
- Watch the preview render as you type.
- Adjust the source until the output is right.
- Export the HTML.
Accuracy, limits, and good practice
- Blank lines matter in Markdown: a list or heading that fails to render is almost always missing the blank line above it.
- Different renderers support different extensions, so a table or task list that works here may need the equivalent feature on your destination platform.
- Indent nested list items consistently — mixing two and four spaces is the usual cause of a list that collapses into one level.
Frequently asked questions
Which Markdown flavour is this?
The common core plus widely supported extensions such as tables. Platform-specific syntax may render differently where you publish.
Can I export a styled page?
No custom styling is offered, but the export is not bare: markdown-export.html carries a small built-in stylesheet (system font, an 800-pixel reading column and shaded inline code). Delete the <style> block if you want to apply your own.
How are nested lists, underscores and images rendered?
A list item indented two or more spaces under another item becomes a nested list inside it, so "1. Budget" followed by " - Q4 travel" and " - Q1 hiring" gives an <ol> whose first <li> holds a <ul>. _Priya_ is emphasis and __Owner:__ is strong, but underscores inside a word are left alone (file_name_v2 stays as typed).  becomes an <img> with alt="Org chart" and loading="lazy"; an image with a relative path such as  is not converted and shows as typed. Raw HTML like <b>html</b> is still escaped and shown as text.
What is the exported file called and what is in it?
Export downloads markdown-export.html: a standalone page with a UTF-8 charset declaration, the title "Markdown Export", a small built-in style (system font, 800 px column, grey background behind code) and the same HTML you see in the preview, produced by the same renderer. It holds the rendered HTML, not your Markdown source, so keep the .md text yourself.
Related tools on this site
- Text Case Converter — Uppercase, lowercase, title case
- Character Frequency — Count letters, digits, symbols, and their frequency
- HTML Formatter — Beautify compressed or difficult-to-read HTML markup
Further reading: Cleaning Up Text You Pasted From Somewhere Else
Everything above runs inside this page. Markdown Preview needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
Markdown 預覽器能做什麼
一邊寫 Markdown、一邊看渲染後的 HTML,文字滿意後再匯出 HTML。它補上了讓 Markdown 好寫的那個回饋迴圈:你立刻看得到那個清單、表格或程式碼區塊會不會照你想的方式呈現。
實際範例
一則以 Markdown 寫成的每週進度短訊,含標題、粗體、行內程式碼、附連結的編號清單、指定欄位對齊的表格與引言區塊,以及預覽窗格替它顯示的 HTML。
來源:Markdown
## Weekly status — 20 Oct 2026 **Done:** migrated the `invoices` table. 1. Review open tickets 2. Send summary to [finance](https://intranet.example.com/finance) | Team | Open | Closed | |:--|:--:|--:| | Billing | 4 | 12 | > Next sync: *Thursday* 10:00.
轉換後:HTML
<h2>Weekly status — 20 Oct 2026</h2> <p><strong>Done:</strong> migrated the <code>invoices</code> table.</p> <ol><li>Review open tickets</li><li>Send summary to <a href="https://intranet.example.com/finance" target="_blank" rel="noopener">finance</a></li></ol> <table><thead><tr><th>Team</th><th style="text-align:center">Open</th><th style="text-align:right">Closed</th></tr></thead><tbody><tr><td>Billing</td><td style="text-align:center">4</td><td style="text-align:right">12</td></tr></tbody></table> <blockquote><p>Next sync: <em>Thursday</em> 10:00.</p></blockquote>
:--: 與 --: 會讓該欄每個儲存格分別加上 text-align:center 與 text-align:right;連結會自動加上 target="_blank" 與 rel="noopener",只有 http:// 與 https:// 開頭的網址會變成連結。
什麼時候用得上
- 撰寫 README 或說明文件時,邊寫邊確認排版。
- 把 Markdown 筆記轉成 HTML,用於網頁、郵件或 CMS。
- 確認少用的語法——巢狀清單、表格、參照式連結——能否正確渲染。
使用步驟
- 在輸入側輸入或貼上 Markdown。
- 邊打字邊看預覽渲染。
- 調整原始碼直到輸出正確。
- 匯出 HTML。
精確度、限制與實務建議
- 空行在 Markdown 中很關鍵:清單或標題沒渲染出來,幾乎都是上方少了一行空行。
- 各渲染器支援的擴充語法不同,這裡可用的表格或待辦清單,在目標平台上可能需要對應功能。
- 巢狀清單的縮排要一致——兩格與四格混用,是清單塌成一層的常見原因。
常見問題
這是哪一種 Markdown?
常見核心語法加上表格等廣泛支援的擴充。平台專屬語法在你發佈的地方可能呈現不同。
可以匯出帶樣式的頁面嗎?
沒有自訂樣式的選項,但匯出檔不是純標記:markdown-export.html 內含一小段內建樣式(系統字型、800 像素寬的閱讀欄、帶底色的行內程式碼)。想套用自己的樣式,刪掉其中的 <style> 區塊即可。
巢狀清單、底線與圖片會怎麼呈現?
縮排兩格以上、位於另一個項目底下的清單項目會變成該項目內的巢狀清單,所以「1. Budget」後面接「 - Q4 travel」與「 - Q1 hiring」,會得到一個 <ol>,第一個 <li> 裡包著 <ul>。_Priya_ 是強調、__Owner:__ 是粗體,但字詞中間的底線不受影響(file_name_v2 維持原樣)。 會變成 alt="Org chart"、loading="lazy" 的 <img>;相對路徑的圖片如  不會轉換,照原文顯示。<b>html</b> 這類原始 HTML 仍會被跳脫、以文字呈現。
匯出的檔案叫什麼、裡面有什麼?
按「匯出」會下載 markdown-export.html:一個獨立網頁,含 UTF-8 字元集宣告、標題「Markdown Export」、一小段內建樣式(系統字型、800 px 寬的欄、程式碼底色),以及與預覽完全相同的 HTML(使用同一套轉換規則)。檔案裡是轉換後的 HTML,不是你的 Markdown 原文,原文請自行保留。
本站相關工具
延伸閱讀: 清理從別處貼上的文字
以上步驟全部在這個頁面內完成,Markdown 預覽器 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。