How to use it
Pick the type that describes your business most precisely, then fill in the fields: name, address, phone, opening hours, the areas you serve and your main services. Leave a field blank if the information isn't on the page you're adding the code to.
Copy the output and paste it into that page inside a script tag of type application/ld+json. Then test the page in Google's Rich Results Test or the Schema Markup Validator.
Picking the right type
Choosing the type matters more than filling every field. A few pairings we use often:
| Business | Schema type |
|---|---|
| Dental practice | Dentist |
| Law firm | LegalService, with Attorney for individual lawyers |
| Accounting firm | AccountingService |
| Roofing company | RoofingContractor |
| HVAC company | HVACBusiness |
| Plumber | Plumber |
| Real estate agent | RealEstateAgent |
| Software product | SoftwareApplication |
| IT or consulting firm | ProfessionalService |
When no specific type fits, use LocalBusiness for a business with a public address, or Organization for one without.
The visible-content rule
Only mark up what a visitor can see on the page. Google's guidelines say so directly, and it's good practice for every engine. If your hours aren't on the page, don't put them in the schema. If you don't show a rating, don't add one.
Our view is stricter than the rules. Markup that says more than the page does is a small lie, and AI tools that cross-check sources are exactly the readers who notice. Keep the page and the schema telling the same story.
A short example
Here's an illustrative sample of the kind of block the generator writes, for a made-up plumbing company:
{
"@context": "https://schema.org",
"@type": "Plumber",
"name": "Northside Plumbing",
"telephone": "+1-555-010-0199",
"address": {
"@type": "PostalAddress",
"streetAddress": "120 Main St",
"addressLocality": "Columbus",
"addressRegion": "OH",
"postalCode": "43215"
},
"areaServed": ["Columbus", "Worthington", "Dublin"],
"openingHours": "Mo-Fr 07:00-18:00"
}
Every value in it should also appear somewhere on the page, in words a visitor can read. If the page doesn't list Worthington as an area you serve, take it out of the markup or add it to the page.
What the result means
The generator gives you a single JSON-LD block. The @type line tells engines what kind of business you are. address, telephone and openingHours should match your Google Business Profile exactly, character for character where you can. The areaServed field should list real places you serve, not every town within a hundred miles.
How to fix common problems
- Details that don't match other sites. If your schema says "Suite 200" and your Google profile says "Ste 200", pick one and use it everywhere.
- The same markup on every page. Your homepage can carry the full business block; service pages need their own markup describing that service.
- Markup added by several plugins at once. Duplicate or conflicting blocks confuse parsers. Keep one source of truth.
- Errors in the test. Most are a missing comma or a field with the wrong format. Regenerate and paste again rather than editing by hand.
Once the code is live, keep it current. When you change your hours for the holidays or move offices, update the page, the schema and your listings on the same day. Engines that see three different versions of your hours tend to trust none of them.
The AI readiness checker shows whether schema is detected on your homepage, alongside other checks. For the full picture of which types matter by business, read our guide to schema markup for AI search.
Next step
Schema helps engines read you correctly. Whether they recommend you depends on more than that, so run the free check to see where you stand.
Questions people ask
Does schema markup help with ChatGPT?+
It helps any tool that reads your page understand who you are, where you work and what you offer without guessing. Nobody publishes how much weight each engine gives it, so treat it as removing ambiguity rather than a ranking switch.
Which schema type should a local business use?+
The most specific type that fits. Dentist is better than MedicalBusiness, and Plumber is better than LocalBusiness. If nothing specific fits, LocalBusiness is fine.
Can I mark up reviews on my own site?+
Only reviews that are visible on the page and collected in a way your review platform allows. Never mark up ratings that aren't shown, and never write the reviews yourself.
Where do I paste the code?+
In the page's head or body, inside a script tag with type application/ld+json. On WordPress, most SEO plugins have a field for custom schema, or you can use a header-and-footer plugin.
How do I test it?+
Paste the page address into Google's Rich Results Test or the Schema Markup Validator. Both flag syntax errors and missing fields.