How do I convert Markdown to HTML?
Markdown is a plain-text way of writing structure: # for a heading, **bold**, - for a list, [text](url) for a link. HTML is what browsers display. Converting Markdown to HTML turns your notes, README or draft article into markup you can paste into a web page, a CMS, an email template or a static site.
Use it when a platform takes HTML but you write in Markdown, when you want to preview how a README will look, when you need a standalone .html page from a notes file, or when you want to check what a Markdown snippet really produces.
Type or paste Markdown, or drop a .md, .markdown or .txt file on the box. The HTML appears as you type, with a live Preview card under it. The parser is marked, with GitHub-flavoured Markdown on, so tables, strikethrough, task lists and fenced code blocks work. The result is then sanitised with DOMPurify. Everything runs in your browser: your text is not uploaded, there is no account and no length limit set by a server.
How to convert Markdown to HTML step by step
- Type or paste your Markdown in the Markdown box, or click Open a file, or drop a file on it. An example is loaded first.
- Read the HTML box. It updates a moment after you stop typing, so long documents stay smooth.
- Tick Complete page (with <head> and a small style) if you want a full document:
<!doctype html>, alangattribute from the interface language, a viewport tag, a<title>taken from your first heading (or the file name) and a small stylesheet. Leave it unticked to get only the fragment, the part you paste into an existing page. - Tick Line breaks become <br> if a single new line in your text should be a visible line break. By default, as in standard Markdown, one new line joins into the same paragraph and a blank line starts a new one.
- Check the Preview card, then click Copy or Download. The file is
documento.html, or takes the name of the file you opened.
Examples
A heading, emphasis and a list
Markdown:
# Release notes
Version **2.1** adds `export`:
- Faster search
- Dark modeHTML:
<h1>Release notes</h1>
<p>Version <strong>2.1</strong> adds <code>export</code>:</p>
<ul>
<li>Faster search</li>
<li>Dark mode</li>
</ul>A table
A pipe table with a --- separator row becomes <table> with <thead> and <tbody>.
A code block for documentation
A fence of three backticks followed by js becomes <pre><code class="language-js">. The class is there for syntax highlighters such as highlight.js or Prism; the tool does not colour the code itself.
Line breaks and a full page
The text line one and line two on consecutive lines gives one paragraph, line one line two. With Line breaks become <br> it gives line one<br>line two. With Complete page, a document whose first heading is # Trip plan gets <title>Trip plan</title>, ready to save and open in a browser.
Common errors and how to fix them
- "Could not convert: ...": the parser raised an error on that input. The message after the colon says why.
- My
<script>andonclickdisappeared: Markdown may contain raw HTML, and the result is sanitised: scripts, event handlers,javascript:links,<style>and<form>are removed. This protects you when you paste text from elsewhere. If you need them, add them in your own page. - My table is not a table: GitHub-style tables need a header row, a separator row with at least three dashes per column (
|---|---|) and a blank line before the table. - A list does not render: the list marker must be followed by a space (
- item), and nested items need indentation. - Remote images do not show in the preview: on purpose, the preview never loads pictures from other sites, so the page makes no request to anyone; it shows the alt text in brackets. The HTML output keeps the
<img>tag and works in your own page. - Headings have no anchor ids: the output is plain
<h2>Title</h2>. Add ids in your page or generator if you need links to sections.
Markdown or HTML: which one should I use?
What is the difference between Markdown and HTML?
HTML describes any page and can express layout, forms and media. Markdown covers the common text structure with far less typing, and can include HTML when it falls short. Write in Markdown, publish as HTML.
Is the HTML safe to paste into my site?
It has been sanitised: scripts, event handlers, javascript: links, styles and forms are removed. That is a strong default, but your own site should still apply its content policy, as with any user content.
Does it support GitHub Markdown?
Yes: tables, strikethrough, task lists, autolinks and fenced code blocks. It does not render emoji shortcodes such as :smile: or diagrams.
Can I get a standalone page?
Yes, with Complete page. The page has a minimal built-in style, so it looks readable in a browser; replace it with your own CSS for a real site.
Is my text uploaded?
No. It is converted in your browser and the box remembers your last text on this device only.
Is it free, and does it work on a phone?
Yes to both, with no install.
How do I go back to Markdown?
Use HTML to Markdown. To compare two versions of a document, use Text diff; to count words before publishing, use Word counter.