Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Import / Export Your WordPress Gutenberg Blocks (2 Steps)

Ever notice how you end up recreating the same Gutenberg block layouts over and over?

You know the ones – that perfect call-to-action section, your go-to testimonial layout, or that product showcase that actually converts visitors.

When you’re managing multiple WordPress sites, this becomes even more time-consuming. But there’s actually a much smarter way to handle this.

WordPress has a built-in feature that lets you import/export any block or group of blocks and reuse them instantly across different websites. It’s like having your own personal design library that travels with you everywhere.

After managing dozens of WordPress sites, we’ve learned that this simple 2-step process can completely transform how you work.

In this guide, we’ll show you how to easily import/export your Gutenberg blocks and keep your designs consistent across all your sites.

How to export your Gutenberg blocks

Here’s a quick overview of what we’ll cover in this guide:

Why Import and Export WordPress Patterns?

The WordPress block editor is great for creating unique layouts. For example, you might design a custom call to action with a special button and color scheme.

If you plan to use a design again, you can save it as a pattern. It’s important to know there are two types: synced and unsynced.

Create a pattern in WordPress

Unsynced pattern: Once an unsynced pattern is inserted into a page or post, it functions as a regular set of blocks. Any edits made to that specific instance will not affect other instances of the same pattern elsewhere on your site.

Synced pattern (formerly known as a reusable block): When you edit a synced pattern, the changes are automatically applied to every instance of that pattern across your entire website.

The best part is that you can export any of these patterns for use on other WordPress sites. This can save you a huge amount of time if you manage multiple websites or build sites for clients.

With that being said, let’s see how you can import / export Gutenberg WordPress blocks.

How to Import / Export Your WordPress Gutenberg Blocks

First, you’ll need to save the content you want to move as a pattern.

Once you have saved your pattern, the steps for importing and exporting will depend on whether you are using a classic theme or a modern block theme.

We’ll cover both methods below, starting with the process for classic themes.

Method 1: Import/Export Blocks With a Classic Theme

When using a classic theme, you can manage your patterns from a special screen, but you access it through the post editor.

Exporting Blocks with a Classic Theme

First, open any post or page.

In the top-right corner, click the three-dot menu icon and select ‘Manage patterns’ from the dropdown.

Click the Manage Patterns button in the block editor

This will take you to the pattern management screen, where you’ll see a list of all your created patterns.

Hover over the pattern you want to export and click the ‘Export as JSON’ link that appears.

Exporting a WordPress block as a JSON file

WordPress will immediately download the pattern to your computer as a JSON file.

Importing Blocks with a Classic Theme

To import a pattern on your new site, follow the same steps to get to the ‘Manage patterns’ screen. At the top of the page, click the ‘Import from JSON’ button.

In the popup window, click ‘Choose File’ and select the JSON file you downloaded earlier. Click ‘Import’ to finish, and your pattern will be ready to use.

Choose file to import block in Gutenberg

Method 2: Import/Export Blocks With a Block Theme

If you are using a block theme, the process is a bit different because you’ll be using the Full Site Editor.

Exporting Blocks with a Block Theme

To start, go to Appearance » Editor from the WordPress admin sidebar.

Inside the editor, select ‘Patterns’ from the left-hand menu. This will take you to the pattern management area for your site.

Choose Patterns tab

Next to the ‘Patterns’ heading, click the three-dot menu icon and then choose ‘Export as JSON’.

This will download a single JSON file containing all of your custom patterns.

Importing Blocks with a Block Theme

Now, to import these blocks into another website using the full site editor, open the FSE and head to the ‘Patterns’ tab.

Then, click the ‘Add New Pattern’ button. This will open a dropdown menu from where you can select that ‘Import Pattern From JSON’ button.

Go ahead and choose your downloaded file to import the blocks.

Click Import Pattern as JSON

With that done, you can use the imported pattern on your WordPress website easily.

Frequently Asked Questions About Importing/Exporting Gutenberg Blocks

You might still have some questions about the process. To help you out, we’ve created a list of some of the most commonly asked questions about importing and exporting blocks in WordPress.

What is a JSON file?

JSON stands for JavaScript Object Notation. It’s a simple, text-based format for storing and transporting data.

In this case, the JSON file acts like a blueprint that tells WordPress how to reconstruct your block, including its content, formatting, and settings.

Does this method also import images and media files?

No, the export process only saves the block’s structure and text content. It does not export the actual image or media files used within the block.

You will need to manually upload those media files to the new site’s media library for the imported blocks to display correctly.

Can I import blocks that require a specific plugin?

Yes, you can. However, the imported block will only work if the new website has the same plugin installed and activated.

For example, if you export a form block from WPForms, the new site must also have WPForms installed to render that form.

How can I move my entire website, not just blocks?

Importing and exporting blocks is great for individual pieces of content. But if you need to move an entire website, a migration plugin is a much better solution

We recommend using a plugin like Duplicator. It allows you to easily clone and move your entire WordPress site, including all your content, plugins, and themes, to a new location.

Additional Resources on WordPress Blocks

Here are some more useful guides on using and managing WordPress blocks:

We hope this article helped you learn how to import/export your WordPress Gutenberg blocks to use on other websites. You may also want to see our guide on how to remove a block in WordPress and padding vs margin comparison.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

10 CommentsLeave a Reply

  1. Thank you for this clear, straightforward article.
    I had always ignored the “Export as JSON” option, because I thought it was made for developers.
    After reading your post, I now understand how this feature lets me easily reuse blocks across different WordPress sites.

  2. Hello,

    Great information. Thanks for sharing.

    I have a question…
    Is it possible to export an entire page made up of many blocks? I can do this in Elementor and use this feature all the time.

    Thanks in advance

    • You could export a page using Tools>Export and import it on to a new site if that’s what you mean.

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.