Preview
JSON
Block Metadata block.json Generator
The definition file for every modern WordPress block. Configure attributes, enable UI supports (color, spacing), and register scripts without syntax errors.
Block Identity
Supports
Colors
Spacing/Type
Attributes
Search blocks
design
Hero Banner
A full-width hero section with background image.
Paragraph
Why block.json?
This file is the single source of truth for your block. By defining metadata here, WordPress can lazy-load your block's assets only when the block is actually present on the page, significantly improving performance.
How to register
Once you have this file, point PHP to the folder containing it:
register_block_type( __DIR__ . '/build' );