Markdown Previewer
Write Markdown with a live side-by-side preview, syntax highlighting and one-click HTML export.
Loading preview…
What is the Markdown Previewer?
The Markdown Previewer is a split-screen editor: type or paste Markdown on the left and the formatted result appears on the right as you write. It follows GitHub Flavored Markdown (GFM), so tables with column alignment, task lists, strikethrough and bare URL autolinks render the way they do in a GitHub README. Fenced code blocks are syntax-highlighted for around 35 popular languages (JavaScript, TypeScript, Python, Java, C/C++, C#, Go, Rust, PHP, Ruby, SQL, Bash, JSON, YAML, CSS, HTML and more).
A formatting toolbar and keyboard shortcuts (Ctrl/⌘+B, I and K) insert bold, italic, links, headings, lists, quotes, code blocks and tables without remembering the syntax, and sync scrolling keeps the editor and preview aligned in long documents. You can open an existing .md file, then export your work as Markdown, as a standalone styled HTML page, or copy the HTML into a CMS or e-mail template.
The rendered HTML is sanitized with DOMPurify before it is displayed or exported, so scripts, event-handler attributes such as onerror, javascript: links, <style> blocks and inline styles are stripped. That makes it safe to preview Markdown you did not write yourself. Everything happens locally in your browser — your documents are never uploaded.
Frequently asked questions
- What is Markdown?
- Markdown is a lightweight markup language that uses plain-text symbols for formatting: # for headings, ** for bold, - for list items, backticks for code. It is the standard format for README files, documentation, static site generators, wikis and many note-taking apps, and converts cleanly to HTML.
- Does it support GitHub Flavored Markdown?
- Yes. GFM tables (including :--- alignment), task lists (- [ ] and - [x]), ~~strikethrough~~, fenced code blocks and automatic links are supported. Turn on “Treat single line breaks as <br>” to mimic GitHub issues and comments, where a single Enter starts a new line; READMEs leave it off.
- Which languages are syntax-highlighted?
- Add the language name after the opening fence, for example ```python or ```ts. Around 35 common languages and their aliases (js, ts, py, sh…) are included. Code blocks with no or an unknown language are shown as safely escaped plain text.
- Is it safe to paste HTML inside Markdown?
- Markdown allows raw HTML, which can be abused for cross-site scripting. This previewer passes the output through the DOMPurify sanitizer, removing <script>, event handlers like onerror or onclick, javascript: URLs, forms, <style> tags and style attributes. Links open in a new tab with rel="noopener".
- How do I export my document?
- Use .md to download the raw Markdown, .html for a complete standalone web page with readable built-in styles and highlighted code, or Copy HTML to paste just the rendered fragment into a CMS. Copy Markdown copies the source text.
- Are my documents saved or uploaded?
- No. Rendering happens in your browser and nothing is sent to a server. The document is not stored either, so download the .md file before closing the tab if you want to keep it.
Related tools
- Password GeneratorCreate strong, random passwords and passphrases with the Web Crypto API, check strength and entropy, and copy in one click.
- QR Code GeneratorCreate QR codes for URLs, text, Wi-Fi, vCard contacts, email, SMS and locations with custom colors and a logo, and download them as PNG or SVG.
- Percentage CalculatorCalculate percentages, percentage change, increase and decrease, and what percent one number is of another — instant results.
- Date CalculatorCount days, weeks and business days between two dates, calculate age, and add or subtract days, weeks, months or years.
- UUID / ULID GeneratorGenerate cryptographically random UUID v4, time-ordered UUID v7, ULID and Nano ID identifiers in bulk, and inspect or convert existing IDs — locally in your browser.
- Hash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes or HMACs from text and files and verify checksums — computed locally with Web Crypto.