How do I convert Markdown to HTML?
Type or paste Markdown into FixDoks's converter, or open a .md file, and watch the live preview update on the right. It supports GitHub Flavored Markdown, including tables, task lists and code blocks. Tick Full HTML page for a complete styled document, then copy the HTML or download it, all in your browser.
Markdown to HTML at a glance
| Input | Markdown text or a .md file |
|---|---|
| Output | HTML fragment or a full styled HTML page |
| Processing | In your browser; your files are not uploaded |
| Price | Free |
| Works on | Chrome, Edge, Safari and Firefox on Windows, Mac, Android and iPhone |
How to use Markdown to HTML Converter
- Type Markdown in the left box, paste it, or click Open .md file. A sample is loaded to start.
- Watch the preview update on the right. Switch to HTML code to see the generated markup.
- Tick Full HTML page to download a complete styled page, or untick it for just the HTML fragment.
- Click Download HTML or Copy HTML.
Markdown in a nutshell
Markdown is a simple way to format text with plain characters. You write **bold** and it becomes bold, start a line with # for a heading, or - for a bullet. It is used for README files on GitHub, documentation, notes apps like Obsidian and Notion exports, Reddit, and many blogging tools. Browsers and email need HTML, so this tool converts one to the other and shows the result as you type.
Syntax supported
| You type | You get |
|---|---|
# Heading to ###### Heading | Headings h1 to h6 |
**bold**, *italic*, ~~strike~~ | Bold, italic, strikethrough |
[text](https://link) | Link |
 | Image |
- item or 1. item | Bullet or numbered list |
- [ ] task, - [x] done | Task list with checkboxes |
> quote | Block quote |
`code` and fenced blocks with three backticks | Inline code and code blocks |
Pipes and dashes: | a | b | | Tables, with alignment using colons |
--- | Horizontal rule |
The converter follows GitHub Flavored Markdown (GFM), the most widely used dialect, using the open source marked library. Plain web addresses become links automatically.
Line breaks
In standard Markdown, a single line break inside a paragraph is ignored and you need a blank line to start a new paragraph. That surprises many people. Tick Single line break = <br> to make every line break show up, which is how GitHub comments and many chat apps behave.
Fragment or full page
The HTML code view and Copy HTML give you the fragment, ready to paste into a CMS, an email template or an existing page. Download with Full HTML page ticked to get a complete document with a title taken from your first heading and a small built-in stylesheet for readable typography, tables and code blocks. It opens in any browser and can be printed to PDF from there.
Safe preview
Markdown can contain raw HTML, and that HTML passes through to the output as it is, which is standard behaviour. The preview is shown in a sandboxed frame with scripts disabled, so pasting Markdown from an unknown source cannot run code on this page. If you publish HTML generated from other people's Markdown on your own site, run it through an HTML sanitiser on your server first.
Everything, including files you open, stays in your browser.
Printing to PDF
To make a PDF from Markdown, download the full HTML page, open it in your browser, and choose Print, then Save as PDF. The built-in stylesheet keeps headings, tables and code blocks tidy on paper.