Preview Markdown
Private — your file is never stored
383 characters · 20 lines
How it works
Write or paste
Or drop a .md file in. The preview updates as you type.
See it as it will look
Tables, task lists, strikethrough, footnotes and fenced code with colours — the GitHub flavour, not plain CommonMark.
Take it with you
Copy the HTML, or save a standalone page that opens anywhere and prints properly.
Which Markdown, and why the HTML is sanitised
Markdown is a family rather than one specification, and the dialect here is the widely-agreed GitHub-flavoured set: headings, emphasis, lists, links, images, block quotes, tables, fenced code blocks with syntax highlighting, task lists, strikethrough, footnotes and automatic links. That is what almost everyone writes and what a README will contain. More exotic dialects and the custom plugins a particular site adds — admonition blocks, shortcodes, templating — are not, so a document written for one specific generator may show some of its syntax literally.
Raw HTML is rendered but sanitised first, and this is the part worth understanding. Markdown deliberately permits HTML inside it, which means a Markdown file from anywhere can contain a script tag, an inline event handler, an iframe or a javascript: link. Rendering that as-is would run a stranger's code in your session simply because you pasted their README to look at it. Everything executable is stripped before anything is displayed, so the formatting survives and the code does not.
That is a general lesson rather than a detail of this page. Any system that renders user-supplied Markdown — a comment box, a wiki, a support ticket — is rendering user-supplied HTML unless it sanitises, and "it is only Markdown" is how that gets overlooked. Converting the Markdown is not a security boundary; the sanitising step is.
What you get is a preview of the content, not of any particular site. GitHub, GitLab and a documentation generator each apply their own stylesheet, heading anchors and extensions, so the same file looks different in each — the structure shown here is what they all agree on. Nothing is fetched, so images referenced by a web address load only if that server allows it, and relative paths to files in a repository cannot resolve at all.
When you want something else
For a README you are actually writing, preview it where it will live. GitHub's own editor previews with its exact rendering, extensions and anchors, and the GitHub CLI — gh markdown-preview — does it locally against the same renderer. For documentation, the generator itself (MkDocs, Docusaurus, Hugo) has a live-reloading preview showing the real styling and navigation, which is what the reader will see.
For editing rather than checking, a Markdown editor with a live pane — Obsidian, Typora, VS Code with its built-in preview — beats pasting into a page each time, because the preview updates as you type and the file stays where it is. This page is for reading somebody else's Markdown, or for a quick look at something you have been sent.
Frequently asked questions
Is my document stored anywhere?
No. Nothing is stored, nothing is kept, and it works with the Wi-Fi switched off once the page has loaded. Notes, drafts and internal documentation are exactly the sort of thing people paste into a preview without thinking.
Which flavour of Markdown is this?
GitHub-flavoured, because that is what "Markdown" means in practice now. Tables, task lists, strikethrough, autolinks, footnotes and fenced code blocks with syntax colours all work. Plain CommonMark previews have none of those, which is why a README that looks right on GitHub looks broken in them.
Can I use raw HTML in it?
Yes, and it is sanitised before being shown. Markdown allows raw HTML, and this preview renders it — but anything that could run a script is stripped first, because pasting someone else's README should never execute their code. Formatting, links and images all survive.
Does it highlight code blocks?
Yes, with language detection, for the languages you would expect in a README — the same highlighter GitHub-style renderers use. Put the language after the opening fence and it is coloured accordingly.
Can I turn it into a PDF?
Our [Markdown to PDF](markdown-to-pdf) tool does exactly that, with proper page breaks and typography. This page is for reading and checking; that one is for producing a document.
What about images in my Markdown?
Images referenced by a web address load normally. Images referenced by a relative path — "" — cannot be read, because a web page has no access to the folder your file sits in. Those show as a placeholder naming the file that is missing, rather than a broken icon.
Good to know: Raw HTML in your Markdown is rendered, but sanitised first — scripts, event handlers and anything that could run are stripped, so pasting somebody else's README cannot execute their code. GitHub-flavoured Markdown is supported; more exotic dialects and custom plugins are not.
Put this tool on your website
Free for any blog, class page or help article. Paste one snippet and your visitors can use it right on your page.
Related tools
Markdown to PDF
Markdown to a beautifully typeset PDF
CSV Viewer
Read a CSV without Excel changing it
XML Viewer
Read XML as a tree you can collapse
Word Counter
Words, sentences and reading time
Character Counter
Characters, bytes and what your limit really counts
Text Compare
See exactly what changed between two versions