You spent an afternoon building a page in the block editor: a hero, a services grid, testimonials, a contact section. Now a client wants the same layout on their website, or you want to move it from a staging copy to the live site. Rebuilding it block by block is a waste of time.
The good news is that Gutenberg blocks are just structured text. That makes them easy to move between sites, as long as you know where the data lives and what happens to the images. This guide shows three ways to export and import Gutenberg blocks, from the quickest copy and paste to a proper file you can keep, share or reuse.
What exactly is a “block” when you export it?
Every page made in the block editor is stored in the database as HTML with small comments around each block, for example <!-- wp:heading -->. The comments tell WordPress which block it is and what settings it has: colours, spacing, alignment, font size and so on.
When you export blocks, you export this markup. That has two important consequences:
- Blocks must exist on the target site. Core blocks (paragraph, image, columns, group, buttons) are everywhere. Blocks from a plugin only work if the same plugin is active on the other site.
- Images are only links. The markup contains the address of each image, not the image itself. If the source site goes offline or blocks the target, the pictures disappear.
Keep these two points in mind and you will avoid ninety percent of import problems.
Method 1: Copy all blocks (fastest, for one-off moves)
The block editor can copy the whole content of a page to the clipboard.
- Open the page in the block editor.
- Click the three dots (Options) at the top right and choose Copy all blocks.
- Open an empty page on the other site and paste with Ctrl+V (Cmd+V on a Mac).
This is perfect for a quick move between two sites you have open in the same browser. It has limits, though: nothing is saved, images still point to the original site, and long pages occasionally lose formatting when the clipboard is involved.
Method 2: Reusable blocks / synced patterns
WordPress can also export a synced pattern (formerly called a reusable block) as a JSON file.
- Go to Appearance → Editor → Patterns (or Patterns in the admin menu on classic themes).
- Find your pattern, open its menu and choose Export as JSON.
- On the other site, open the patterns screen and use Import from JSON.
This works well for a single section you use again and again, such as a call to action. It is clumsy for whole pages, because you first have to turn the page into a pattern, and the images still are not included.
Method 3: Export a page as a JSON or ZIP file (recommended)
The free Blocks Starter Templates plugin adds a real export to the block editor. It saves any page as a file and imports it on any other WordPress site, including the images if you want them.
Export the page
- Open the page in the block editor.
- Click Options (the three dots at the top right). In newer WordPress versions the plugin items are in the Panels submenu.
- Click Export as JSON, or Export as ZIP (with images).
The browser downloads a file named after the page, for example about-us.json. Step-by-step screenshots are in the documentation: Export a page as JSON.
JSON or ZIP?
| Format | What is inside | Use it when |
|---|---|---|
| JSON | Page title and all blocks with their settings | Both sites are online and the images can stay where they are |
| ZIP | The same JSON file plus every image of the page | The target is on another server, a local copy, or has no access to the source site |
If you are not sure, choose ZIP. It is a little bigger, but the page is complete and independent.
Import the file on the other site
- Install Blocks Starter Templates on the target site.
- Go to Starter Templates → Templates and click Import from file.
- Choose the
.jsonor.zipfile, pick Page or Post, enter a title and click Create and import.
A new draft opens in the editor. Nothing else on your site is changed. Images from a ZIP file are added to the Media Library, so the new page no longer depends on the old website. You can also import straight into the page you are editing: click Starter Templates in the editor toolbar and then Import from file. Details: Import a JSON or ZIP file.
What is checked during the import
Importing a file into your website should never be risky. The plugin checks the file the same way it checks its own templates:
- blocks that are not available on the target site are reported, not silently broken,
- unsafe values are refused,
- JSON files over 1 MB and ZIP files over 50 MB are rejected with a message.
Files exported by older versions of the plugin, and synced patterns exported by WordPress itself, can be imported the same way.
Common problems and quick fixes
“This block contains unexpected or invalid content”
The block exists on the target site, but in a different version, or a plugin changed its markup. Click the block and choose Attempt block recovery. If the block comes from a plugin, update the plugin on both sites first.
The images are missing
You exported as JSON and the target cannot reach the source site. Export again as ZIP, or replace the images in the editor (select the image and click Replace).
The page looks different
The blocks are the same, but the theme decides fonts, content width and default colours. A block theme gives the closest result. Read how to choose a block theme if the layout feels narrow or the fonts do not match.
The theme header appears twice
Some layouts include their own header and footer. Either import without them or choose a full-width “canvas” page template. See header and footer of templates.
When to use which method
- Moving one page right now between two open sites: Copy all blocks.
- A section you reuse on every page: synced pattern.
- A page you want to keep, send to a client or move to a different server: export as ZIP.
- A library of your own layouts for future projects: export each page as ZIP and keep the files in a folder. Importing a ready page takes less than a minute.
Frequently asked questions
Can I export blocks without a plugin?
Yes, with Copy all blocks or by exporting a synced pattern. Neither method includes images, and whole pages need extra steps.
Does the export include the page template and theme styles?
No. It includes the content of the page. Global styles (fonts, colours) belong to the theme and stay on each site.
Can I import a page exported from a site with a different theme?
Yes. Blocks do not depend on the theme. Only the look changes slightly, because the target theme provides its own fonts and spacing.
Is it safe to import a file I received from someone else?
The plugin rejects unknown blocks and unsafe values, but still only import files from people you trust, as you would with any file.
Blocks Starter Templates is free. Export any page as JSON or ZIP and import it on another site in two clicks.
