Markdown to HTML

Download a complete, styled HTML page or copy the bare HTML fragment for a blog, CMS or email template.

Markdown

Paste, type, or drop a .md file here.

0 requests sent since you started — your text stays here.

Preview
Page setup
Layout
Your formatted document appears here.

All the tools

How it works

  1. Paste or upload

    Drop a .md file or paste Markdown from GitHub, Obsidian, Notion, a README, or an AI chat.

  2. Check the preview

    Headings, tables, lists, links and code blocks render live so you can fix typos before exporting.

  3. Export

    Download Word, HTML or text, save a PDF from the print dialog, or copy formatted text straight into Google Docs.

In short

The HTML export is a standalone page: a full document with a title taken from your first heading, a viewport meta tag and a small embedded stylesheet, so it looks finished when opened directly or attached to an email. If you only need the markup for a CMS, switch the preview to HTML and copy the part inside the body.

At a glance
DownloadComplete HTML document with embedded CSS, no external dependencies
CopyBare HTML fragment for a CMS, newsletter or documentation system
Parsermarked in GitHub Flavored Markdown mode
Code blocksEmitted with language-* classes ready for highlight.js or Prism
SafetyRaw HTML in the preview is sanitised with DOMPurify
Typical sizeA few kilobytes for a normal document

Two kinds of HTML, depending on what you need

Download .html gives you a self-contained page: a <!DOCTYPE html> document with a title taken from your first heading, a viewport meta tag, and a small embedded stylesheet so it looks finished when opened directly in a browser or attached to an email. It has no external dependencies and weighs a few kilobytes.

HTML source in the preview shows exactly what will be downloaded. If you only need the inner markup — to paste into WordPress, Ghost, a newsletter tool or a documentation system that already has its own CSS — switch the preview to "HTML source" and copy the part inside <body>, or use the "Copy for Google Docs" button, which also carries the formatted HTML on the clipboard.

How Markdown maps to HTML

MarkdownHTML produced
# Title … ###### Sub<h1> … <h6>
**bold**, *italic*, ~~strike~~<strong>, <em>, <del>
`code` and fenced blocks<code>, <pre><code class="language-js">
- item / 1. item<ul> / <ol> with nested lists
| a | b | tables<table> with <thead> and <tbody>
[text](url), ![alt](src)<a href>, <img alt>
> quote, ---<blockquote>, <hr>

Safety

Markdown allows raw HTML, which can include scripts. The live preview is sanitized so nothing pasted into the editor can run in your browser. Code-block language hints are preserved as language-* classes so you can add a highlighter such as highlight.js or Prism on your own site.

Markdown to HTML for developers

This page uses the marked parser in GFM mode. If you need the same conversion in a build pipeline, npx marked -i README.md -o readme.html produces identical fragment output, and Pandoc offers more extensions.

What makes this converter different

Nothing is uploaded

Conversion runs entirely in your browser. Confidential notes, contracts and internal docs never touch a server, so there is nothing to delete later.

Real formats, not wrappers

The Word export is a genuine .docx with Heading 1–4 styles, numbered and bulleted lists, real tables and hyperlinks — so it behaves like a document someone typed in Word, and Google Docs opens it cleanly.

No limits, no account

Convert as many files as you want, at any size your browser can hold, without signing up or hitting a watermark.

Questions people ask

Does the HTML include CSS?

The downloaded file embeds a small stylesheet so it looks good standalone. The 'HTML source' preview shows that full document; the markup inside is what you would paste into a CMS.

Is the HTML valid and semantic?

Yes — headings, lists, tables, blockquotes and code elements are emitted as their proper HTML elements with no inline styles on the fragment.

Can I convert HTML back to Markdown here?

No, this converter goes one way, from Markdown to HTML.

Are code blocks highlighted?

Code blocks are emitted with a language class (for example language-python) but no colouring is applied, so you can plug in your preferred highlighter.