Markdown to HTML Converter NZ
This tool converts Markdown into HTML, turning the simple, readable markup that writers love into the tags that browsers render. Markdown is a lightweight way of formatting text using plain characters: a hash for a heading, asterisks for bold and italic, square brackets for links, and dashes for lists. It was designed to be easy to write and easy to read in its raw form, which is why it has become the standard for README files, documentation, forum posts, notes and static websites. But to display formatted text on a web page you need HTML, with its angle-bracket tags, and converting between the two is a routine task for developers, writers and content creators. This converter does it instantly. You paste or type your Markdown, and the calculator produces the equivalent HTML source, handling the common elements: headings at every level, bold and italic emphasis, inline code, links, and unordered lists. The result updates as you type, so you can write Markdown and copy the HTML straight out. Everything runs in your browser with nothing uploaded. Use it to turn notes or documentation into HTML for a website, to learn how Markdown maps to HTML, to prepare content for a system that expects HTML, or simply to convert a snippet quickly. The output is the HTML source code, ready to paste into a page, a template or a content management system. This converter covers the everyday Markdown elements that account for most writing; very advanced features like tables, footnotes and nested structures vary between Markdown flavours and may need a full library. For typical formatted text, it gives you clean HTML in a moment.
Handles headings, bold, italic, inline code, links and unordered lists. Advanced features (tables, footnotes) vary by flavour. Runs in your browser.
How it works
The text is first escaped so any existing angle brackets display safely. Then each Markdown pattern is matched and replaced with its HTML equivalent: hashes become heading tags, double asterisks become strong tags, single asterisks become emphasis, backticks become code, bracket-and-parenthesis become links, and dash-led lines become list items wrapped in a list.
Worked example
The Markdown # Hello becomes an h1 heading. A line with double asterisks around a word becomes that word wrapped in strong tags, and single asterisks become emphasis tags. A link written in Markdown brackets becomes an anchor tag, and dash-led lines become list items inside an unordered list.
Related calculators
- HTML Entity Encoder: encode HTML.
- Text Case Converter: change case.
- Word Counter: count words.
- JSON Formatter: format JSON.