Skip to content

Markdown to HTML live editor

  • Runs on your device
  • Works offline once loaded

Write on the left, see the result on the right. The editor supports tables, task lists and fenced code with syntax highlighting, and the HTML it produces is sanitized, so you can copy it into a page safely. Export the HTML, or print the preview to PDF.

How it works

  1. Type or paste Markdown.
  2. Watch the preview update.
  3. Copy the HTML or save the document.

Why use it

  • GitHub flavored Markdown.
  • Syntax highlighted code blocks.
  • Sanitized HTML output.
  • Copy HTML or print to PDF.

Writing Markdown and turning it into HTML

Markdown in two minutes

Markdown is plain text with a few marks that become formatting. It is how README files, documentation, forum posts and notes apps are written, because it stays readable as plain text and converts cleanly into HTML.

You typeYou get
# Title and ## SectionHeadings of level 1 and 2
**bold** and *italic*Bold and italic text
[text](https://example.com)A link
- item or 1. itemA bulleted or numbered list
- [ ] task and - [x] doneA task list with checkboxes
> quoteA block quote
Three backticks, a language name, code, three backticksA code block with syntax colours
| a | b | rows with a |---|---| lineA table

In tables, colons in the separator line set the alignment of a column: |:---| aligns left, |:---:| centres and |---:| aligns right, which is how columns of numbers are usually set.

The toolbar inserts the same marks for you: bold, italic, heading, link, lists, task list, quote and code. Paste or open a .md file to work on an existing document.

Getting the HTML

  • Copy HTML copies the body only, ready to paste into a website builder, a CMS or an email template.
  • Download HTML saves a complete web page with basic styles, which opens in any browser and can be sent as a file.
  • Print opens the print dialog with the preview, where choosing Save as PDF gives a tidy PDF of the document.

Code blocks get syntax colours for JavaScript, TypeScript, JSON, CSS, HTML, shell scripts and more when you name the language after the opening backticks.

Safe HTML

Markdown allows raw HTML inside it, which means a document pasted from somewhere else could carry a script. The preview and the exported HTML pass through DOMPurify, a widely used sanitiser, which removes scripts, event handlers and other active content while keeping normal formatting. That keeps the page safe to preview and the HTML safe to publish.

Writing comfortably

Switch between Write, Split and Preview layouts; split view keeps the preview scrolled to the part you are writing when Sync scroll is on. The draft is saved in this browser as you type, so closing the tab does not lose it; it stays on this device only. For text statistics such as word count and reading time, paste the text into the word counter.

If something goes wrong

  • A list or table does not render. Markdown needs a blank line before a list or a table that follows a paragraph.
  • Line breaks disappear. In Markdown a single line break joins lines into one paragraph. Leave a blank line between paragraphs.
  • Some HTML was removed. It was active content, such as a script or an inline event handler, removed for safety.

Questions and answers

How do I convert Markdown to HTML?

Paste your Markdown into the editor and copy the HTML output.

Is the HTML safe to publish?

It is sanitized with DOMPurify, which removes scripts and unsafe attributes.

Is my writing stored?

No, it stays in your browser.

Esc