Dad’s Words tools

Markdown → HTML

Convert Markdown to formatted HTML — syntax-highlighted input and output.

Markdown
HTML Output

HTML output will appear here.

Paste, upload, or drop a file in the input panel to get started.

Supported Markdown syntax

This converter handles the most common Markdown elements using a custom line-by-line tokenizer — no external library. It does not support tables, footnotes, definition lists, or extended Markdown syntax.

MarkdownHTML output
# H1 through ###### H6<h1> through <h6>
**bold** or __bold__<strong>
*italic* or _italic_<em>
`inline code`<code>
[text](url)<a href="url">text</a>
![alt](src)<img alt="alt" src="src" />
- item or * item<ul><li>
1. item<ol><li>
> blockquote<blockquote>
---<hr />

Inline vs. block processing

Block elements (headings, lists, blockquotes, HR) are detected first at the line level. Inline formatting (bold, italic, code, links, images) is applied within each block's text content. Mixed content on one line — a heading that also has bold text — works correctly. Nested lists are not supported; a list item indented with spaces is treated as a new top-level list item.

Warning: The converter does not sanitize HTML. If your Markdown contains raw HTML tags or user-supplied link targets, the output HTML should be treated as untrusted before rendering in a browser. Do not inject this output directly into a live page without sanitization.

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Words tools

Search the Words tools