Toolstia / Markdown to HTML converter
Convert Markdown to HTML
Write or paste Markdown on the left and the tool turns it into HTML as you type. A preview pane shows how the result will look, and a second view shows the raw HTML so you can copy it into a CMS, an email template or a static page. A download button wraps the result in a minimal HTML document.
It is aimed at writers and developers who draft in Markdown, such as README text, documentation, blog posts and release notes, and need clean markup without installing anything. The converter supports a practical core of Markdown rather than every extension, so it is worth knowing exactly what it handles and where it differs from other converters.
The preview appears here.
Any HTML typed into the Markdown is shown as plain text, not run, so it is safe to paste text from other people.
How it works
- Paste your Markdown.
- Check the preview.
- Switch to HTML code and copy it, or download the .html file.
What it supports
Headings, bold, italic, inline code and code blocks, links, ordered and unordered lists, block quotes, horizontal rules and tables.
Safe by default
Any raw HTML in your Markdown is shown as text and not run, and links are limited to http and https. That makes it safe to convert text from people you do not know.
Download as a page
The download button wraps your HTML in a simple page with a title and viewport tag, so you can open it in a browser or upload it as it is.
Coming from an AI chat?
If you want to paste the result into Word or Google Docs instead, use the AI text to Word tool, which copies formatted text.
What a short document turns into
The line # Title becomes <h1>Title</h1>. The line Some **bold**, *it* and `code` becomes a paragraph with <strong>bold</strong>, <em>it</em> and <code>code</code>. A dash list with an indented dash underneath becomes a <ul> containing a nested <ul>, and numbered lines become an <ol>.
A table written with pipes and a divider row of dashes becomes a real table with thead and tbody. The tool adds border, cellspacing and cellpadding attributes to each table so that it is visible without any stylesheet. If you do not want that, remove those attributes or override them in your CSS.
Line breaks work differently here
In this converter, two consecutive lines with no blank line between them become one paragraph with a <br> between the lines. Many Markdown processors would join them into a single flowing line instead. If you want separate paragraphs, leave a blank line.
This is helpful for addresses and short poems, but be aware of it when you paste text hard-wrapped at 80 columns, because each wrapped line will become a forced break.
What is deliberately left out
Images written as  are not converted and appear as plain text. Underlined headings made with a row of equals signs under the text are not turned into headings, so use the # style. A link whose address does not start with http or https, for example one starting with javascript:, is left as literal text instead of becoming a link.
Raw HTML you type is escaped and shown as text. So <b>raw</b> will display those characters, not bold text. That keeps the output safe, but it also means you cannot mix hand-written HTML tags into the Markdown here.
Code blocks and special characters
A fenced block between three backticks becomes <pre><code>, and characters inside it are escaped, so let x = 1 < 2; is written with < in the output. The language name after the opening fence is accepted but is not added as a class, so syntax highlighting would need your own script.
Bold and italic can be combined with three asterisks, strikethrough with two tildes, and both asterisk and dash bullets work, as do numbered lists written with a period or a closing parenthesis.
Getting the HTML onto a page
Copying the HTML code is right when you are pasting into a template that already has its own head and styles. The downloaded file is a complete page with a generic title of Document, so change the title element if you publish it. The file is named document.html.
There are no heading anchors, table of contents or footnotes, and the output is not minified, which makes it easy to read and edit afterward.
Questions
Is my text uploaded?
No. The conversion happens in your browser.
Does it add any styling?
No. The HTML is plain, so your own stylesheet controls how it looks.
Can I convert HTML back to Markdown?
Not with this tool.
Which Markdown flavour is it?
A common subset of CommonMark with GitHub-style tables.
Why do my images not appear?
Image syntax is not part of what this converter handles. Add an img tag yourself in the HTML output, or use another tool for image-heavy documents.
Why is my HTML tag shown as text?
Raw HTML in the input is escaped on purpose. Write the Markdown equivalent, or add the tag to the HTML output afterward.
How do I make a table?
Write a header row with pipes, a second row of dashes between pipes, and then one row per line. Rows with missing cells are padded with empty cells.
Does it support nested lists?
Yes. Indent the sub-item under its parent, using two or more spaces, and it becomes a list inside the list item.
Can I convert the HTML back to Markdown?
Not here. This is a one-way tool from Markdown to HTML.