Markdown to HTML converter

Write or paste Markdown on the left and get HTML on the right, with a live preview of how it will look.

Private: works in your browser, nothing is uploaded.

How to use the Markdown to HTML tool

  1. Paste or type Markdown.
  2. Turn GitHub Flavored Markdown and line breaks on or off.
  3. Check the preview.
  4. Copy the HTML or download it as a file.

Supported syntax

  • Headings, bold, italic, links and images.
  • Ordered and unordered lists, task lists with [ ] and [x].
  • Tables with alignment, fenced code blocks with a language, blockquotes.
  • Strikethrough and automatic links (GitHub Flavored Markdown).

Where to use it

Turn a README or documentation into HTML for a website, prepare a newsletter or blog post written in Markdown, or check how a GitHub comment will render. Conversion uses the marked library.

Privacy

Everything runs in your browser. Your files and text are not uploaded to our server or stored anywhere. The preview is shown in a sandbox, so scripts inside the HTML do not run.

Quick syntax reminder

  • # Heading, ## Subheading
  • **bold**, *italic*, `code`
  • [link text](https://example.com), ![alt text](image.png)
  • Lists start with - or 1.; a blank line starts a new paragraph.

Pasting HTML into a CMS or email

Most content management systems have a “Code” or “HTML” view. Paste the generated HTML there rather than into the visual editor, otherwise the tags appear as text. Email newsletters often need inline styles; if your email tool strips classes, keep the formatting simple: headings, paragraphs, lists and links survive almost everywhere.

Frequently asked questions

Is the HTML safe to put on my website?

Markdown can contain raw HTML, which is passed through. If the Markdown comes from untrusted users, sanitize the HTML before publishing.

Does it add CSS?

No. You get clean HTML without styles, so it inherits the styles of your site.

What does “line breaks as br” do?

A single line break in the text becomes a line break in HTML, like in GitHub comments. By default, it is joined into the same paragraph.

Can I convert back?

Yes, with the HTML to Markdown converter.

Why does my line break disappear?

In standard Markdown, a single line break inside a paragraph is ignored. Leave an empty line to start a new paragraph, or turn on the option that treats line breaks as <br>.

Can I use HTML inside Markdown?

Yes, Markdown allows raw HTML, and it is passed through to the output. Check that it is valid, because broken tags can affect the rest of the page.