Markdown Preview & Markdown to HTML
READY
0 WORDS0 CHARS1 LINES 0 MIN READ
About the Markdown Preview and Markdown to HTML Converter
The Markdown Preview shows how your Markdown renders as you type and converts it to HTML you can copy or download. It reads GitHub Flavored Markdown (GFM), so tables, task lists, strikethrough, autolinks, and fenced code blocks all work. Everything runs in your browser: the text is not sent to our servers or to analytics, and it is not saved in the page address. Your text goes into a link only when you click Share, and only the Preview or HTML tab and your output settings stay in the address as you work. Raw HTML inside the Markdown is shown as plain text, never rendered, so a pasted document cannot run scripts in the preview.
Updated: November 13, 2026
Related Tools
How to use the previewer
- Type or paste Markdown into the left panel, or drag a `.md`, `.markdown`, or `.txt` file onto it. Click Sample to load an example with a table, a task list, and a code block.
- The Preview tab shows the rendered result. The HTML tab shows the generated HTML source. Choose Fragment for just the converted content, or Full document for a standalone page with a doctype, a title taken from your first heading, and a small inline stylesheet.
- Copy HTML copies the generated HTML. Save downloads either the HTML (as `document.html`) or your Markdown (as `document.md`), depending on the format you pick next to the button.
- The status bar shows words, characters, lines, and an estimated reading time. Words are whitespace-separated tokens in the Markdown source, so markup such as `#` or `-` counts as a word, and reading time assumes 200 words per minute, rounded up.
What is supported
- The tool uses the same CommonMark plus GFM parser as the articles on this site (react-markdown with remark-gfm). That covers headings, emphasis, lists, nested lists, block quotes, links, images, inline code, fenced code blocks, tables with column alignment, task lists (`- [x]` and `- [ ]`), strikethrough (`~~text~~`), and bare URL autolinks.
- Fenced code blocks keep their language tag in the HTML output (for example `class="language-js"`), so a syntax highlighter on your own site can pick it up. The preview does not color the code itself.
- Not included: footnotes, math, diagrams, front matter, and raw HTML. A line such as `<b>bold</b>` appears as literal text rather than bold.
Privacy and security
- Rendering and HTML generation both happen in your browser tab, and your text is not sent anywhere. Remote images (``) load in the preview only from this site and a few Google hosts that the site's security policy allows; images from any other host are blocked and show as broken. Loading an allowed image sends a request to its host, but not your text. Because the document is not stored in the address bar, it does not stay in browser history or reach our CDN on reload. Share puts it into a link, compressed with lz-string, which is not encryption, so anyone with the link can read it. Remove secrets and internal details first.
- Raw HTML is not rendered. `<script>` tags, event handler attributes, and `<iframe>` elements in your Markdown appear as visible text, and in the HTML output they are escaped. Links whose address starts with `javascript:` are not turned into live links, in the preview or in the generated HTML.
- Check the output before publishing it on another site. This tool escapes raw HTML, but a link to a site you do not control is still a link to that site, and your own page may have different rules for images and embeds.
Common use cases
- Checking a README, changelog, or pull request description before you commit it. The preview follows GFM, the flavor GitHub uses, though GitHub adds a few site-specific features.
- Turning notes into an HTML snippet for a CMS, an email template, or a static page.
- Producing a single standalone HTML file from a Markdown document, ready to open in a browser or attach to a message.
- Going the other direction? The HTML to Markdown tool converts HTML back into Markdown.
Frequently Asked Questions
- Which Markdown flavor does the preview use?
- CommonMark with the GitHub Flavored Markdown extensions: tables, task lists, strikethrough, and autolinks. It is the same parser the site's articles use. Features that only exist on GitHub itself, such as @mentions, issue references, and emoji shortcodes, are not converted.
- Is my Markdown uploaded anywhere?
- No. The preview and the HTML are generated in your browser. The text is not sent to our servers or analytics and is not written to the page address. It goes into a link only when you click Share.
- Is it safe to paste Markdown that contains HTML or scripts?
- Yes. Raw HTML is never rendered. It is shown as text in the preview and escaped in the HTML output, and `javascript:` links are not made clickable. Still, review any HTML before publishing it somewhere else.
- What is the difference between Fragment and Full document?
- Fragment is only the converted content, such as `<h1>`, `<p>`, and `<table>` elements, for pasting into an existing page. Full document wraps it in `<!DOCTYPE html>`, `<html>`, `<head>` with a title taken from your first heading (or "Document" if there is none), and a short inline stylesheet, so the file opens on its own.
- Does the HTML include syntax highlighting?
- No. Code blocks are output as `<pre><code class="language-xxx">` with the language from the fence, and no colors are added. Add a highlighter such as highlight.js or Prism on the page that uses the HTML.
- Which files can I drop into the editor?
- Files ending in `.md`, `.markdown`, or `.txt`. The file is read in your browser, and other file types are ignored.