# Markdown to HTML

Convert Markdown to HTML, as a fragment or a complete styled page, with a live preview. Free, and nothing you paste is uploaded.

Canonical page: https://filetity.com/markdown-to-html

## Capabilities

- Free: Yes, with no watermark and no page limit.
- Account required: No. There is no account system.
- Processed on device: Yes. The file is read by your browser and never uploaded. There is no server to send it to.
- Formats: Markdown in, GitHub flavoured. HTML out, either a fragment to paste into a page or a complete document with a doctype and styling.
- Limits: No size limit beyond what a text box holds. The whole page option carries its own stylesheet inline rather than linking to one, so the file works with no network.
- Mobile: Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
- Offline: Yes, once the page has loaded. The tool keeps working with no network connection.

## Questions

### Does it support tables and fenced code blocks?

Yes, along with task lists, strikethrough and autolinked URLs. Those are GitHub's extensions rather than original Markdown, and they are what people actually write, so they are on by default rather than behind a setting.

### Why is the preview inside a frame?

Because Markdown is defined to let raw HTML through, so removing a script tag from the output would make the conversion wrong. Rendering that output directly in the page would then run it. A sandboxed frame lets the preview be faithful and inert at the same time.

### What is the difference between the two output options?

A fragment is just the converted content, for pasting into a page or a template you already have. A whole page adds a doctype, a character set, a viewport tag and a small stylesheet, so the file opens in a browser and looks like a document rather than unstyled text.

### Does a single line break become a new line?

Only if you turn it on. Original Markdown joins consecutive lines into one paragraph, which surprises people who write one sentence per line. GitHub's comment boxes break on every newline. Both behaviours are correct in their own context, so it is a toggle.

### Does the styled page need an internet connection?

No. The stylesheet is written into the file rather than linked from a CDN, so the page opens correctly on a machine with no network and does not stop working if somebody else's server goes away.

## Related tools

- [HTML to Markdown](https://filetity.com/html-to-markdown): Convert HTML into clean Markdown, without the scripts and styles.
- [HTML formatter](https://filetity.com/html-formatter): Beautify minified or messy HTML into something readable.
