How to use the Schema Markup Generator (JSON-LD)
- Pick a schema type.
- Fill in the fields that apply (empty fields are left out).
- Copy the script tag into your page and test it with Google's Rich Results Test.
How it works
The generator builds a schema.org object for the chosen type, drops empty values, nests address, offer, author and publisher objects correctly, and escapes “<” so the JSON can't break out of the script tag.
Worked examples
Local plumber
Type Plumber, name, phone, address and “Mo-Fr 08:00-18:00” produces a LocalBusiness-compatible block with a PostalAddress and openingHours.
Limitations and assumptions
- Markup must describe content that's visible on the page; marking up hidden or fake content (for example invented reviews) breaks Google's guidelines.
- Valid markup doesn't guarantee rich results.
Frequently asked questions
Where do I paste it?
Anywhere in the page's HTML — usually the <head>. In WordPress use a header-scripts plugin or your SEO plugin's custom schema field.
Built and reviewed by Guru G
Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.