Markdown to HTML converter

Convert Markdown to HTML with a live preview.

Runs in your browser. Nothing you type is sent anywhere.

How to convert Markdown to HTML

  1. Paste your Markdown.
  2. Check the live preview below.
  3. Copy or download the HTML.

GitHub flavored features supported

FeatureExample
Tables| a | b |
Task lists- [ ] todo
Strikethrough~~text~~
Fenced code blocks```js ... ```

How the preview stays safe

  • script, style and iframe tags are stripped before the preview renders.
  • Inline event handlers, like onclick, are removed.
  • javascript: links are replaced with a harmless # so they cannot run code.

Where converted HTML is used

  • Publishing a README or docs page as part of a static site.
  • Pasting formatted content into an email or CMS that accepts raw HTML.
  • Previewing how Markdown will render before committing it to a repository.
  • Trying out a snippet before pasting it into a comment box that renders GitHub flavored Markdown, such as a pull request description.

Markdown syntax quick reference

MarkdownRenders as
# HeadingA level 1 heading
**bold**Bold text
*italic*Italic text
[text](url)A link
- itemA bullet list item
`code`Inline code

Markdown to HTML FAQ

Is the preview safe to view?

Yes. Script tags, inline event handlers and javascript links are stripped before the preview renders.

Can I paste Markdown with embedded HTML?

Yes. Inline HTML in the Markdown is kept and rendered along with the rest of the content.

Does it support syntax highlighted code blocks?

Code blocks keep their language name in a class attribute, but this page does not add color syntax highlighting.

Which Markdown library does this use?

marked, with GitHub flavored Markdown (gfm) turned on, so tables, task lists and strikethrough all parse the way they do on GitHub.

Does it support footnotes or definition lists?

No. Those are extensions beyond GitHub flavored Markdown and are not supported here.

Can I preview Markdown with embedded images?

Yes, an image reference like ![alt](url) renders in the preview as long as the URL is reachable from your browser. A local file path on your own computer will not load in a web page.

Does line spacing matter in Markdown?

Yes. A blank line separates two paragraphs. A single line break inside a paragraph is usually ignored unless the line ends with two trailing spaces or a backslash, both of which force a line break.

Can I nest a list inside a list, or a code block inside a list item?

Yes. Indent the nested content by 2 or 4 spaces under the list item's marker, and marked reads the indentation the same way GitHub's Markdown renderer does.

Related tools