Markdown Preview

A Markdown previewer shows how Markdown text will look once it is converted to HTML. This free editor renders GitHub Flavored Markdown as you type, including tables, task lists and fenced code, in a light or dark theme. You can open and save .md files, copy the generated HTML or download it as a page, and unsafe scripts are removed.

Free, no signup. Runs entirely in your browser; files and text are not uploaded.

How to use the Markdown Preview

  1. Type or paste Markdown into the Markdown box, or click Open .md file.
  2. Watch the Preview update as you type and switch between the Light and Dark theme.
  3. Click HTML code to see the generated HTML.
  4. Click Copy HTML or Download .html to export the result.
  5. Click Download .md to save your Markdown source.

Features

  • Live preview of GitHub Flavored Markdown: tables, task lists, strikethrough and fenced code
  • Sanitised output: scripts, event handlers and javascript: links are removed
  • Copy HTML or download a standalone .html page
  • Open .md files and download your Markdown
  • Light and dark preview themes
  • Word and character count
  • Built-in Markdown cheat sheet

Frequently asked questions

Which Markdown syntax is supported?

CommonMark plus the GitHub Flavored Markdown extensions: tables, task lists, strikethrough, autolinks and fenced code blocks. Raw HTML is allowed but is sanitised.

Is the exported HTML safe to publish?

The HTML is sanitised against an allow-list: script and iframe elements, event handler attributes such as onclick, and javascript: URLs are removed. Still review content from untrusted sources before publishing.

Why does # become an h2 in the preview?

This page already has its own main heading, so the preview renders # headings as h2 elements (styled like h1) to keep the page accessible. The copied and downloaded HTML keeps your original heading levels.

Are my documents saved or uploaded?

No. Everything runs in your browser and nothing is stored or uploaded. Use Download .md to keep a copy of your work.

Related tools

  • HTML Formatter – Indent or minify HTML, keep pre/script content safe and flag unclosed tags
  • Word Counter – Count words, characters, sentences and paragraphs with reading time, readability and keyword density
  • Text Case Converter – Convert text to sentence, upper, lower, title, camelCase, snake_case, kebab-case and more
  • CSS Formatter – Beautify or minify CSS with safe handling of selectors, strings and url() values

Built and reviewed by Naqash Thaheem, Technical Project Manager. Last reviewed 2026-09-24.