Markdown to HTML ConverterChatGPT Tables to WordPress

Paste Markdown to get HTML, or paste HTML to get Markdown. Tables, lists, and code blocks from ChatGPT convert cleanly, and the result is ready for WordPress, Word, or Google Docs.

Your input is never sent anywhere.

Details
Options
Output (Code)

Convert Markdown to HTML and HTML to Markdown in Your Browser

This converter turns Markdown into HTML and HTML back into Markdown. It is built for the moment you copy a ChatGPT answer and need its tables, bullet lists, and code blocks as clean HTML for a WordPress post or another blog editor. Markdown pasted straight into a post can leave symbols such as ##, **, and | on the page. Converting first gives you real headings, tables, and lists.

The reverse direction takes HTML copied from a web page or an existing article and turns it into Markdown for Notion, Obsidian, or a GitHub README. Both directions have a preview, and Markdown to HTML adds a Copy rich text button for pasting formatted content into Word, Google Docs, and email. Conversion happens in your browser, and your text is not sent anywhere.

Common Uses: ChatGPT Answers, WordPress Posts, Docs, and READMEs

Publish a ChatGPT answer on your blog

Copy the answer, convert it, and paste the HTML into a WordPress Custom HTML block. Tables, bullet lists, and code blocks arrive as HTML tags instead of ##, **, and | symbols.

Move Notion or Obsidian drafts into a CMS

Convert a Markdown draft into HTML for a content management system. If your theme already uses the post title as the H1, shift headings down one level so the body does not add a second H1.

Paste formatted text into Word, Google Docs, or Gmail

Copy rich text keeps headings, bold text, lists, and tables as formatting instead of code. Use it for a report, meeting notes, or an email draft that started as Markdown.

Save a web page as Markdown notes

Copy part of a web page, choose HTML to Markdown, and click Paste from web page. Headings, links, lists, and tables are kept, ready for a Markdown notes app or knowledge base.

Clean up a README or docs file

Turn an HTML table or a nested list into Markdown for a README.md, then download the result as a .md file.

Draft newsletter copy

Write in Markdown and generate HTML to drop into your email platform's HTML editor. The output is plain semantic HTML with no email-specific styling, so check it with a test send.

Paste, Convert, Copy: Steps for Getting Clean HTML

  1. Choose Markdown → HTML or HTML → Markdown at the top, then paste your text into the input box. You can also use Load sample, or Open file for .md, .markdown, .txt, .html, and .htm files up to 3 MB. For web page content, choose HTML → Markdown and click Paste from web page.
  2. Adjust Options if you need to: line breaks as <br>, shifted headings, links that open in a new tab, table borders, or a full HTML document. In HTML → Markdown mode, the option limits the result to the article or main content.
  3. Click Preview to check that tables and headings look right. Click Code to return to the text.
  4. Click Copy for the code, or Copy rich text (Markdown → HTML only) for formatted content. Click Download to save a file.

Note: With Auto-convert checked, the output updates as you type. Uncheck it to convert only when you click Convert. Swap moves the output into the input and flips the direction, and Clear empties the input.

Limits and Behavior to Know Before You Convert

  • HTML inside Markdown: Tags such as <div> or <script> written inside Markdown are escaped and shown as text, not output as tags. Add them to the converted HTML if you need them.
  • Line breaks: By default, a single line break inside a paragraph stays in the HTML source, but browsers display it as a space. End a line with two spaces or a backslash, or leave a blank line, to break it. You can also check Convert line breaks to <br> to turn every line break into a break tag.
  • Supported syntax: Headings, bold, italic, strikethrough, nested and task lists, links, images, fenced code blocks, blockquotes, horizontal rules, and tables. Footnotes, math, reference-style links, and indented code blocks aren't supported.
  • Table rows: The header row sets the number of columns. Extra cells in a row are dropped, and missing cells are left empty.
  • HTML to Markdown: Scripts, styles, iframes, and similar elements are dropped, and attributes such as class, style, and id are not carried over. Link addresses, image sources, alt text, titles, list start numbers, checkboxes, and column alignment are kept. A rowspan is ignored, a colspan becomes empty cells, and the first table row becomes the header.
  • Files: Open file accepts up to 3 MB. A .html or .htm file switches to HTML → Markdown, and a .md or .markdown file switches to Markdown → HTML. A .txt file keeps the current direction.

Markdown Syntax Cheat Sheet With the HTML It Produces

How the main Markdown syntax converts to HTML. HTML → Markdown does the reverse.

ElementMarkdownHTML output
Headings (H1–H6)# Heading / ## Heading<h1> / <h2> / <h3> ... <h6>
Bold**text**<strong>text</strong>
Italic*text*<em>text</em>
Strikethrough~~text~~<del>text</del>
Bulleted list- item<ul><li>item</li></ul>
Numbered list1. item<ol><li>item</li></ol>
Task list- [x] Done / - [ ] To do<li><input type="checkbox" disabled checked /> Done</li>
Link[title](URL)<a href="URL">title</a>
Image![alt text](URL)<img src="URL" alt="alt text" />
Inline code`code`<code>code</code>
Code block```js ... ```<pre><code class="language-js">...</code></pre>
Blockquote> quote<blockquote>quote</blockquote>
Horizontal rule---<hr />
Table| A | B | / | --- | --- | / | 1 | 2 |<table><thead><tr><th>A</th>...</tr></thead><tbody>...</tbody></table>
Column alignment| :--- | :---: | ---: |<th style="text-align:left / center / right">

Where the output works

The converter supports the tables, task lists, and strikethrough from GitHub Flavored Markdown, and the output uses standard HTML5 tags. You can paste it into the Custom HTML block in WordPress, the HTML or source view of other editors, or a static page. Markdown from Notion exports or Obsidian notes converts the same way, as long as it uses the syntax listed above.

Heading structure and accessibility

Headings that follow a logical order (one H1, then H2, then H3) help screen reader users and search engines understand a page. If your CMS already uses the post title as the H1, turn on Shift headings down one level so the body doesn't add another.

What the HTML Output Looks Like, and When to Use a Parser Library Instead

A closer look at the tags this converter produces, plus guidance for sites that render Markdown at runtime.

Tags and attributes in the output

Tables become <table> with <thead> and <tbody>, and column alignment is written as style="text-align:...". Task list items become <input type="checkbox" disabled checked />, and a fenced code block with a language name gets a class such as class="language-js". Numbered lists keep their starting number in a start attribute, and nested lists keep their levels.
HTML typed inside Markdown is escaped as text rather than output as tags. Links that begin with javascript:, vbscript:, or file: are replaced with #, so the result is less likely to carry an unwanted script into your CMS.

Using a parser library for Markdown your site renders

If your site or app turns Markdown into HTML at runtime, such as user comments or CMS content, use a Markdown parser in your build or server code, and run the resulting HTML through a sanitizer such as DOMPurify before displaying it. This converter is meant for one-off conversions that you check by eye, not as a security layer for untrusted content.

Fixing Broken Tables, Stray ## and ** Symbols, and Garbled Characters

I pasted a ChatGPT answer into WordPress and the table is broken, with ## and ** showing

Raw Markdown often isn't rendered when you paste it into a post. Symbols like ## and ** stay on the page as text, and a table can collapse into a few lines of plain text.

💡 See the solution▼
Convert the answer with Markdown → HTML, click Copy, and paste the HTML into a Custom HTML block (or the Text tab in the Classic editor). Check the result in Preview before you paste.

I pasted into Google Docs or Word and got HTML code instead of formatted text

Copy puts the HTML source on the clipboard. Word and Google Docs treat that as plain text, so you see tags like <h2> and <table>.

💡 See the solution▼
Click Copy rich text instead. It copies the rendered content (headings, bold text, lists, and tables) as formatted text. Results vary a little by app.

The table has no borders after I paste it into my site

The converter outputs a plain table element. Whether it shows lines depends on your theme's CSS, and some themes show no borders at all.

💡 See the solution▼
Check Add table borders (inline CSS) before converting. The table, header cells, and data cells each get an inline border and padding. The same styles carry over when you use Copy rich text.

The page ends up with two H1 headings

A # heading in Markdown becomes an h1. If your theme already shows the post title as the H1, the body adds a second one.

💡 See the solution▼
Check Shift headings down one level (H1 → H2) and convert again. For future drafts, use # only for the title and ## for sections.

Line breaks disappear in the converted HTML

A single line break inside a paragraph stays in the HTML source, but browsers display it as a space, so lines run together.

💡 See the solution▼
Check Convert line breaks to <br>, or end each line with two spaces or a backslash. A blank line starts a new paragraph.

My own HTML tags show up as text

HTML written inside Markdown is escaped, so a tag such as <div> or <span> is displayed instead of applied.

💡 See the solution▼
Write the content with Markdown syntax where you can, and add custom tags to the converted HTML afterward.

Images break after I move the HTML to another site

The converter keeps image and link addresses exactly as written. A relative path such as /images/photo.png only works on the site that hosts the file.

💡 See the solution▼
Use full https:// addresses in the Markdown, and fill in the alt text inside the square brackets so each image has a description.

A saved HTML file shows garbled characters

An HTML fragment saved by hand has no character set declaration, so some browsers can misread accented letters, symbols, or emoji.

💡 See the solution▼
Use Download, which writes a complete document that declares UTF-8. To copy a full document instead, check Output a full HTML document before you click Copy.

FAQ: ChatGPT Output, WordPress, Tables, and Rich Text

Q.How do I convert a ChatGPT answer to HTML for my blog?

Q.

A. Copy the answer, choose Markdown → HTML, and paste it into the input box. The HTML appears on the right, with tables, bullet lists, and code blocks converted to tags. Click Preview to check how it looks, then click Copy and paste the code into a Custom HTML block in WordPress or the HTML view of your editor.

Q.Can I convert a Markdown table to an HTML table?

Q.

A. Yes. A table written with a header row and a divider row such as | --- | --- | becomes a table element with thead and tbody sections. Colons in the divider row (:---, :---:, ---:) set left, center, or right alignment as a text-align style on each cell. Check Add table borders (inline CSS) if your theme shows tables without lines. In HTML → Markdown mode, an HTML table is converted back to a Markdown table, and its first row becomes the header row.

Q.What happens if I paste Markdown straight into WordPress?

Q.

A. It depends on the editor, but raw Markdown often shows up as plain text: symbols like ##, **, and | stay in the post and tables don't render. Convert it first, then paste the HTML into a Custom HTML block in the block editor, or the Text tab in the Classic editor. Headings, tables, and lists then display as HTML.

Q.How do I avoid two H1 tags in a WordPress post?

Q.

A. Under Options, check Shift headings down one level (H1 → H2). Every heading moves down one level, so # becomes h2 and ## becomes h3, up to h6 (an h6 stays h6). Many themes already use the post title as the page's H1, and this keeps the body from adding a second one.

Q.How do I paste headings and tables into Word, Google Docs, or Gmail?

Q.

A. After converting with Markdown → HTML, click Copy rich text instead of Copy. It puts formatted content on the clipboard (headings, bold text, lists, and tables) rather than HTML code, so you can paste it into Word, Google Docs, an email, or Notion. How closely the formatting carries over depends on the app you paste into.

Q.Can I convert a web page to Markdown?

Q.

A. Yes. Choose HTML → Markdown, copy the part of the page you want, and click Paste from web page. The tool reads the formatted version from your clipboard, and your browser may ask for permission first. If your browser can't provide formatted content, plain text is pasted instead. You can also paste a page's HTML source into the input box. With Convert only the article or main content checked, the tool uses the page's article element (or main, if there is no article) and skips navigation, sidebars, footers, and forms inside it.

Q.Is my text uploaded anywhere?

Q.

A. No. The conversion runs in your browser, and this tool doesn't send your input to a server or save it.

Q.Can I download the result as a file? Will special characters display correctly?

Q.

A. Yes. Download saves a .html file in Markdown → HTML mode or a .md file in HTML → Markdown mode. HTML downloads are written as a complete document that declares UTF-8, which helps accented letters, symbols, and emoji display correctly when you open the file in a browser.

Q.Does it convert automatically as I type?

Q.

A. Yes, while Auto-convert is checked. Uncheck it to convert only when you click Convert, which appears in the corner of the input box.

Q.Can I preview the result before copying it?

Q.

A. Yes. Click Preview above the output to see the rendered HTML. In HTML → Markdown mode, the preview shows how the resulting Markdown renders. Click Code to return to the text. The preview removes scripts and event attributes before displaying anything.

Q.Which Markdown syntax is supported?

Q.

A. Headings, bold, italic, strikethrough, bulleted and numbered lists (including nested lists and task lists), links, images, inline code, fenced code blocks, blockquotes, horizontal rules, and tables are supported. Bare URLs become links. Footnotes, math, reference-style links such as [text][id], and indented code blocks aren't supported.

Q.Why do HTML tags I wrote in Markdown show up as text?

Q.

A. The converter escapes HTML written inside Markdown, so a tag like <div> appears as visible text instead of being output as a tag. Add any custom tags to the converted HTML afterward.

User Feedback & Request

Your feedback
makes this tool better.

Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.

Send feedback