What is schema markup?
Schema markup is structured data code that describes the information on a page, such as your business name, address, opening hours, FAQs or article details, using a shared vocabulary from Schema.org. Search engines and AI tools read it reliably, so they understand exactly who you are and what you offer.
This free schema markup generator turns a simple form into ready-to-paste code. You do not need to know how to code: pick a type, fill in your details and copy the result.
What is JSON-LD?
JSON-LD is the format Google recommends for structured data. It sits in a single script block, separate from the visible content of the page, which makes it easy to add, update and remove without touching your design. Every result from this tool is valid JSON-LD.
How to use the schema markup generator
- Choose a schema type from the tiles: local business, organisation, FAQ page or article.
- Fill in the fields. The code updates as you type, and empty fields are left out automatically.
- For a local business, pick the most specific type, such as Dentist, Restaurant or Plumber, rather than the general LocalBusiness.
- Copy the code with one click.
- Paste it into your page, either in the head section or in the schema or custom code field of your SEO plugin.
- Test the page with Google’s Rich Results Test and fix any warnings.
Which schema type should you use?
| Schema type | Use it for | What it helps with |
|---|---|---|
| LocalBusiness (and subtypes) | Clinics, restaurants, shops and trades with a physical location or service area | Clear business details for Google, Maps and AI assistants |
| Organization | Brands, agencies and online businesses | Name, logo, contact details and social profiles |
| FAQPage | Pages with a genuine question and answer section | Clear, structured answers that search and AI tools can reuse |
| Article | Blog posts, guides and news | Headline, author, date and image understanding |
Google now shows FAQ rich results mainly for well-known government and health websites. FAQ schema is still useful because it structures your answers for search engines and AI assistants, but do not expect the expandable FAQ boxes on every site.
Schema and AI search
AI assistants such as ChatGPT, Gemini and Perplexity, and Google’s AI Overviews, work best with clear facts about an entity. Consistent schema, matching the name, address and phone on your Google Business Profile, plus sameAs links to your official social profiles, helps them connect the dots and describe your business accurately.
Learn more about our AI-ready schema markup service.
Schema best practices
- Only mark up information that visitors can also see on the page.
- Keep your name, address and phone exactly the same as on your Google Business Profile and directory listings.
- Use one LocalBusiness block per location, ideally on that location’s page.
- Add sameAs links to your official profiles, such as Facebook, Instagram, LinkedIn and YouTube.
- Do not add review or rating markup about your own business to get stars. Google does not show self-serving review stars for local businesses.
- Test again after every change to your theme, plugins or business details.
How to add schema to a WordPress site
Most SEO plugins, such as Rank Math and Yoast, already add basic schema. Check what your plugin outputs first so you do not create duplicates. To add custom JSON-LD, use the custom schema option in your SEO plugin, or a header and footer code plugin, and paste the code on the specific page it describes.
Fixing common schema errors
- Missing field: add the required value, such as the address or headline, or remove the empty property.
- Invalid date: use the YYYY-MM-DD format.
- Wrong or relative URL: use full URLs that start with https://.
- Duplicate items: two plugins outputting the same type. Turn one of them off.
Prefer an expert to handle it? See our schema and structured data service.
