Markdown Previewer
Write Markdown on the left and preview rendered HTML or copy clean HTML markup on the right locally in your browser with XSS protection.
About this tool
A fast block-and-inline tokenizer parses fenced code blocks, headings, unordered lists, blockquotes, bold/italic emphasis, inline code, and safe https/http links directly into DOM nodes without passing untrusted HTML to innerHTML. Draft README.md files, release notes, and PR descriptions.
How to use the Markdown previewer
- Type or paste Markdown into the input box on the left.
- Read the rendered page on the right. It updates as you type.
- Switch between the rendered preview and the raw HTML view to check the markup.
- Copy the HTML, or download it as a .html file to open in any browser.
What Markdown is
Markdown is a lightweight way to write formatted text using plain characters. A line that starts with a hash becomes a heading, two asterisks around a word make it bold, a dash starts a bullet, and three backticks mark a block of code. It is readable as plain text, which is why it is used for README files, notes, documentation and many content systems.
The preview shows what the reader will see, including headings, lists, tables, quotes, links and code blocks. The raw HTML view shows the markup that a website or email template would use.
A worked example
The sample covers the common elements: a main heading, a bullet list, a numbered list, inline code, a fenced code block, bold and italic text, a link, a quote and a small table. Each one appears in the preview exactly as a reader would see it, and the HTML view shows the tags generated for each element.
- Draft a README in Markdown and check how the headings and code blocks will look on a code host.
- Export a formatted note as HTML to paste into a blog post.
Who uses a Markdown previewer
- Developers writing README files, documentation and pull request descriptions.
- Writers drafting articles and newsletters in plain text.
- Support teams writing help articles that other systems will publish.
- Students writing reports with headings and tables.
- Anyone who wants to check how formatting will look before publishing.
Tips and common mistakes
- Leave a blank line before a list or a code block, or some renderers will not start it.
- Use a fenced code block with a language name for syntax-friendly output.
- Check links before you publish. A missing bracket or bracket order turns the link into plain text.
- The HTML output is generated in your browser. Review it before you paste it into a site that does not sanitise content.
- Your text stays in your browser. The preview is not uploaded anywhere.
Frequently asked questions
Related browser tools
Base64 Encoder / Decoder
Encode and decode Base64 strings with full UTF-8 and URL-safe (Base64URL) support locally in your browser with zero uploads.
CSV to JSON Converter
Convert CSV, TSV, and semicolon-delimited tables into clean JSON arrays locally in your browser with quoted-comma support and zero uploads.
Hash Generator
Compute SHA-1, SHA-256, SHA-384, and SHA-512 cryptographic digests simultaneously locally in your browser using Web Crypto with zero uploads.