Markdown to HTML Converter

Markdown to HTML conversion turns plain-text formatting into tags: # Title becomes <h1>, **bold** becomes <strong>, a line starting with - becomes a list item. Type or paste Markdown on the left to get clean HTML and a live preview on the right, with tables, task lists, footnotes and heading ids included.

Common Markdown and the HTML it becomes
MarkdownHTML
## Heading<h2 id="heading">Heading</h2>
**bold** and *italic*<strong>bold</strong> and <em>italic</em>
[link](https://we.inc)<a href="https://we.inc">link</a>
- [x] done<li class="task-list-item"><input type="checkbox" disabled checked> done</li>
~~old~~<del>old</del>

Updated

A split editor with a live preview, the GitHub-style extras people actually use, a safe mode for content from other people, and three ways out: bare HTML, a full HTML file, or HTML with inline styles that survives being pasted into an email editor.

Why add heading ids

An id on each heading lets you link straight to a section, as in /docs#install, and lets a table of contents jump around the page. The ids here follow the same pattern GitHub uses, so links you already have from a README keep working when the content moves to a website.

When two headings have the same text, the second one gets -1 added to its id, the third -2, and so on, so every id stays unique.

From Markdown to a real page

The download option wraps the HTML in a complete document with a readable stylesheet, which is enough for a changelog, a policy page or a quick handout. For a full website, the converted HTML can go into any page template or site builder that accepts custom HTML.

Going the other way, the HTML to Markdown converter turns existing pages back into Markdown, which is handy when moving content into a docs repository.

How it works

  1. Type or paste Markdown, or open a .md file. The HTML and the preview update as you type.
  2. Leave Safe mode on to escape raw HTML in the source and block javascript: links. Turn it off only for Markdown you wrote yourself.
  3. Toggle heading ids for linkable sections, and line breaks if single new lines should become <br>.
  4. Copy the HTML, copy it with inline styles for email, or download a complete HTML file with a simple stylesheet.

Tips

Frequently asked questions

Which Markdown flavour does this support?

The everyday CommonMark syntax (headings, emphasis, links, images, lists, quotes, code blocks, rules) plus the GitHub Flavored Markdown extras: tables, task lists, strikethrough and bare URL links. Footnotes work the way GitHub renders them. It is a compact converter rather than a full spec implementation, so very unusual nesting may differ from GitHub.

Is the HTML safe to put on my website?

With Safe mode on, raw HTML in the Markdown is shown as text and link targets that could run script are replaced. That covers the usual risks for content you did not write. If you convert on your own server for user content, still run the result through an HTML sanitiser such as DOMPurify.

How do I paste Markdown into an email?

Use Copy for email. Email editors strip style blocks, so that option writes the styles onto each tag (inline). Paste the result into the HTML or source view of your email tool.

Are my documents uploaded?

No. Conversion runs in your browser, and files you open are read locally.

Related: Markdown cheat sheet, HTML to Markdown converter, Markdown table generator, HTML viewer, HTML entities.

Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.

More in Free Tools

We.Inc is an AI-powered website builder you can resell under your own brand. Launch a branded client dashboard, bill on Stripe Connect, and deliver AI-generated websites in minutes. White-label plans start at $99 a month for 25 client sites, with a 7-day free trial and no per-site fees.

Product

Who It's For

Features

Resources

Company

View Sitemap