Convert Markdown documents to HTML with full support for GitHub Flavored Markdown (GFM): headings, bold, italic, links, images, code blocks, fenced code with language hints, blockquotes, unordered and ordered lists, task lists, and tables. The output is clean HTML ready to embed in a webpage, email template, or CMS. Conversion runs in your browser using the marked library.
Paste your Markdown
Paste any Markdown content — README files, blog posts, documentation, or notes. GitHub Flavored Markdown is fully supported.
Click Convert
The marked library parses your Markdown and generates HTML. Headings become <h1>–<h6>, bold becomes <strong>, links become <a> tags, and code blocks become <pre><code> with language class hints.
Copy or download the HTML
Copy the HTML to clipboard for pasting into a CMS or code editor, or download as an .html file.
Embed in your page
The output HTML is a fragment (not a complete page). Wrap it in your page's <body> or paste into your content editor. Add your own CSS styles for headings, code blocks, and blockquotes.
Yes, the marked library supports GFM including: fenced code blocks with syntax highlighting hints (```javascript), tables (using | pipe characters), task lists (- [ ] and - [x]), strikethrough (~~text~~), and auto-linking URLs. Standard CommonMark features are also supported.
The HTML from this tool is not sanitized — if your Markdown input contains raw HTML (which Markdown allows), it passes through as-is. For user-generated Markdown rendered on a public website, always sanitize the HTML output using a library like DOMPurify to prevent XSS attacks before inserting it into the DOM.
Code blocks (indented with 4 spaces or wrapped in backticks) become <pre><code> HTML. Fenced blocks with a language hint (```python) get a class="language-python" attribute on the <code> element, which syntax highlighting libraries like Prism.js or highlight.js use to apply colors.
Yes. GitHub Markdown (GFM) is the standard this tool supports. Export or copy the raw Markdown from a README.md (use the Raw button on GitHub), paste it here, and get HTML equivalent to how GitHub renders it.
Basic Markdown with inline code blocks handles simple math notation. Full LaTeX/KaTeX math rendering is not included in this tool. For math-heavy Markdown (like Jupyter notebooks or academic papers), use Pandoc on the command line, which has built-in LaTeX and MathJax support.
Something not working? Report a bug