1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert Markdown to Gutenberg

Paste Markdown into the left editor and the Gutenberg tab on the right shows WordPress block markup. Paste it into the WordPress Code editor and each part becomes its own block.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Editor

DocsWordGmailNotionMarkdown
0 words
Ready · LocalPaste here from Google Docs, Word, Gmail, Notion
02

Live Output

Markdown
SyncedEdit the code here; the editor on the left updates itself
0 characters
Every change is processed right in your browserUTF-8 · by xuanhieu.org

When you need to convert Markdown to Gutenberg

The WordPress block editor stores a post as HTML with opening and closing comments such as wp:paragraph and wp:heading. Writing Markdown and pasting it straight into WordPress usually gives one custom HTML block that is hard to edit. The tool writes each core block properly: paragraph, heading, list, quote, code, table, image and separator, so the post opens in the block editor like one written by hand.

How to do it

  1. Paste Markdown into the Editor editor on the left. Check the rendered result first.
  2. Open the Gutenberg tab on the right (selected on this page) and then ⚙ Options.
  3. Decide List items as separate blocks and Add wp-block-* classes according to your WordPress version.
  4. Press Copy result. In WordPress open the post, switch to the Code editor, paste and save. Go back to the visual editor to check it.

A real example

Each Markdown part becomes a block with opening and closing comments: heading with its level, paragraph, list with a list-item per entry, and code. The paragraph with bold text and a link is written with strong and a right inside the paragraph block.

Input · Markdown

# Tips for writing concise docs

A good document answers the reader's question in the **first three lines**. The rest is detail for reference.

## Three rules

- One idea per paragraph
- Headings that say what follows
- An example right after each explanation

Example command: `git status`. Read more in the [writing guide](https://example.com/writing).

Result · Gutenberg

<!-- wp:heading {"level":1} -->
<h1 class="wp-block-heading">Tips for writing concise docs</h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>A good document answers the reader's question in the <strong>first three lines</strong>. The rest is detail for reference.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Three rules</h2>
<!-- /wp:heading -->

<!-- wp:list -->
<ul class="wp-block-list">
<!-- wp:list-item -->
<li>One idea per paragraph</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>Headings that say what follows</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>An example right after each explanation</li>
<!-- /wp:list-item -->
</ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>Example command: <code>git status</code>. Read more in the <a href="https://example.com/writing">writing guide</a>.</p>
<!-- /wp:paragraph -->

Options worth changing

List items as separate blocks
Keep it on for newer WordPress, which writes each entry as a list-item block. Turn it off if your site is older and does not accept that block.
Add wp-block-* classes
Keep it on so the markup matches what the editor generates and WordPress accepts the block at once. Turn it off for leaner HTML, at the risk of a block recovery prompt.

Common problems

Limits

Frequently asked questions

Can I paste Gutenberg code back to read it?

Yes. The pane reads the block HTML, drops the block comments and rebuilds the structure. Custom blocks are read as ordinary HTML after filtering.

Where do I paste it in WordPress?

Into the post's Code editor, from the three-dot menu at the top right of the editor.

Do I need a plugin?

No. The markup uses WordPress core blocks only.

Is my content sent anywhere?

No. Every step runs in your browser.

Related conversions

1xA2Z · Guide

Document statistics

Most frequent words