How to convert Markdown to HTML
Turn Markdown into HTML for a static page, local preview or migration to an editor that uses HTML. The result includes a rendered preview and a file you can inspect before publishing.
- Paste the Markdown or open a Markdown file.
- Convert, check the rendered headings and tables, and download the HTML.
- If you only need the body markup in a CMS editor, inspect the document and pick the relevant section.
- Select Convert and review the result.
Example input
# Field Notes A **pocket notebook** for daily ideas. - Map - Timetable
Example use
Convert a README-derived help document into a standalone HTML page. Compare code blocks, list indenting and emphasis to the intended site output. Check relative links and image paths in the destination before moving it.
Output and compatibility
The renderer supports common Markdown structures and sanitizes HTML. Theme styles, server-side extensions and script execution from the original application are outside this output. An asset referenced by a relative URL still has to be present where the generated HTML can find it.
Check relative assets after moving the file
A relative image or link uses the exported document’s location. Put any connected files in the expected directory and test the HTML after moving it. Verify how your CMS styles the markup if it wraps the body in an existing page.
Troubleshooting
If headings are incorrect, check spacing after the heading markers. If a table fails, ensure the header separator row is present. If a code block swallows following text, close the opening fence with a matching fence.
Use HTML Formatter to review the source or Markdown to PDF for fixed pages.
Frequently asked questions
Will the output include every line of embedded HTML?
The browser rendering path sanitizes markup. Check allowed attributes and embedded content in the final document.
Can I create a portable file for a colleague?
Download the HTML. Ensure any images and links point to assets the recipient can access.
Does it include my publishing site’s theme?
The document uses its own HTML structure. Apply your site’s CSS in its normal workflow if needed.
Can I preview the Markdown without choosing a new format?
Use Markdown Preview to focus on reviewing its presentation.
Can I convert that HTML back?
HTML to Markdown can recover common Markdown structures. Some formatting will differ.