Markdown to HTML Converter

Convert Markdown to HTML: paste an answer from ChatGPT or Claude, or open a .md file. Copy clean HTML code, or copy it as rich text for Google Docs, Word or an email.

Result

The formatted text shows here. Paste some Markdown to see it.

Frequently asked questions

How do I convert Markdown to HTML?

Paste the Markdown in the field or open the .md file. The HTML is made as you type: switch to HTML code to see it, and click Copy HTML to copy it, or Download .html to save it as a web page. The preview shows how it will look.

How do I paste a ChatGPT answer into Google Docs, Word or Gmail with the formatting?

Click the copy button under the answer, paste it here, and click Copy as rich text. Then paste into the document or email as usual. Headings, bold text, lists, tables and links come through formatted instead of as stars and hash signs. Recent versions of Google Docs can paste Markdown on their own once Markdown is turned on under Tools, Preferences; Word, Gmail and Outlook cannot.

What is the difference between Copy HTML and Copy as rich text?

Copy HTML copies the code, with the tags written out, for a website, a CMS's HTML view or a template. Copy as rich text copies the formatted text itself, the way it looks in the preview, for places that take formatting but not code: Google Docs, Word, Gmail, Outlook and the visual editor in WordPress.

Is the HTML clean enough for WordPress or another CMS?

Yes. It uses plain tags only (h1 to h6, p, ul, ol, table, pre, code, a, img) with no class names, ids or inline styles, so it takes on the look of your theme. The only attributes are the ones the content needs: link addresses, image sources and alt text, column alignment in tables, and the start number of a numbered list.

What happens to HTML that is already in my Markdown?

It is shown as text rather than run, except for line breaks written as <br>. A pasted file can contain anything, and a tag such as <script> in the preview would run in your browser. Links that would run script (javascript:) are removed for the same reason.

Does it handle tables, task lists and footnotes?

Yes, GitHub-flavored Markdown is read in full. Tables keep the column alignment from the Markdown, task lists become checkboxes, footnotes are numbered and collected at the end, and ~~strikethrough~~, ==highlight==, fenced and indented code, quotes and GitHub's > [!NOTE] callouts all convert. LaTeX formulas are kept as written, as code.

Are my line breaks kept?

Yes, the way the chat showed them. A line break inside a paragraph becomes a <br>, so an address or a list of fields keeps its lines. The exception is a file wrapped at a fixed width, where long lines carry on mid-sentence on the next line: those are joined into one paragraph. A blank line always starts a new paragraph.

How does this website handle my text or .md file?

It never leaves your device. The Markdown is turned into HTML by your own browser, and the file is opened there too, so nothing is sent to our server. The only thing that is fetched is an image your Markdown links to, for the preview, and only from the address you gave it.