Guide and free generator
Local business schema: what to add, and a generator that writes it
LocalBusiness schema tells Google your name, address, phone and hours in a format it can’t misread. Here’s what Google asks for, what it won’t do for you, and a generator that writes the code in your browser.
Local business schema is a JSON-LD block on your website that states your business details for search engines. Google requires only name and address, and recommends telephone, url, opening hours, geo coordinates and price range. Use the most specific type that fits (such as Plumber or Dentist), keep every detail identical to your Business Profile, and don’t mark up your own reviews: Google hasn’t shown stars for them since 2019. It won’t move you up the map pack on its own, but it removes doubt about who you are.
What LocalBusiness schema is, and what it isn’t
LocalBusiness schema is a short block of code, usually JSON-LD, that states your business details in a format search engines read without guessing: name, address, phone, website, opening hours and the kind of business you are. It sits in your page’s code; visitors don’t see it.
- Tells Google exactly which business the page is about
- Gives your hours and contact details in a fixed format
- Connects your website to your profiles elsewhere
- It doesn’t put you in the map pack: that’s your Business Profile
- It doesn’t get you review stars for your own reviews (see below)
- Google doesn’t promise any special result for it
Think of it as housekeeping that removes doubt. It takes ten minutes, so it’s worth doing, but it won’t rescue a weak profile or a thin website.
What Google asks for
Google’s local business structured data guide (last updated September 2026) lists two required properties and ten recommended ones:
Two more you’ll see in the generator come from schema.org rather than Google’s list: sameAs (links to your profiles elsewhere) and areaServed (the area you serve). They’re valid schema.org properties; Google doesn’t list them for this feature.
Build your LocalBusiness schema
Fill in your details and copy the code. Nothing is sent anywhere: it’s built in your browser. The example uses an invented business.
Opening hours Google reads correctly
Hours are where most hand-written schema goes wrong. Google’s guide gives a pattern for each case, and the generator follows it:
- Normal hours: one entry with the days that share the same times, for example Monday to Friday, opens “08:00”, closes “18:00”.
- Open 24 hours: opens “00:00” and closes “23:59”.
- Closed all day: opens “00:00” and closes “00:00”.
- Past midnight: one entry for the day you open, for example Saturday, opens “18:00”, closes “03:00”.
- Holidays and seasonal hours: a separate entry with
validFromandvalidThroughdates (YYYY-MM-DD). Without those dates, hours apply all year.
Keep the hours in your schema, on your website and on your Business Profile identical. When they change, change all three. Our guide to NAP consistency explains why matching details matter.
Use the most specific type you can
Google’s guide says to use the most specific LocalBusiness subtype that fits, giving Restaurant, DaySpa and HealthClub as examples. schema.org/LocalBusiness lists the main groups, such as HomeAndConstructionBusiness, AutomotiveBusiness, HealthAndBeautyBusiness, MedicalBusiness, LegalService, FinancialService, Dentist and RealEstateAgent, and many of those have more specific types beneath them, such as Plumber and HousePainter.
- Search schema.org for your trade before settling on plain LocalBusiness. If an exact match exists, use it.
- Doing two things? You can give more than one type in an array, for example
["Store", "AutomotiveBusiness"], if both are true. - Don’t invent types. Check that yours exists on schema.org, then test the code in the Schema Markup Validator.
Why you won’t get stars for your own reviews
Google also said having those reviews on your page doesn’t by itself lead to a manual action, and you don’t have to delete them. Just don’t mark them up expecting stars. Put the effort into more Google reviews instead: those are the stars people see on the map.
Several locations, or no address on show
- One block per location, on that location’s own page
- Each with its own address, phone, hours and the URL of that page
- Don’t put every branch’s schema on the homepage
- Use the same details as each branch’s Business Profile
- If you hide your address on Google, don’t publish it in your schema either
- Give your town, county or state, postcode and country: Google asks for as many address parts as you can
- Add
areaServedwith the towns you cover, as on your profile - Our service-area guide covers the profile side
Our multi-location guide covers profiles, names and verification for chains. If you have location pages, each real branch page is the right home for that branch’s schema. Town pages for areas you serve without an office shouldn’t have their own LocalBusiness block with a made-up address.
Adding it to your site and testing it
- Put it on the page it describes: your homepage or contact page for a single location, or each branch page.
- Paste it into the page’s HTML, in the head or body. On WordPress, many SEO plugins have a local business settings screen that writes it for you; if yours does, use that instead of pasting a second copy.
- Test it with Google’s Rich Results Test or the Schema Markup Validator. Fix errors; read the warnings.
- Check for duplicates: themes and plugins sometimes add their own Organization or LocalBusiness block. Two blocks with different details are worse than one.
Our $99 local SEO audit checks whether your homepage has LocalBusiness schema, and our on-page SEO service ($399) adds it for you along with titles, headings and content on up to 10 pages.
Common schema mistakes
- A different name, phone or address from the one on your Business Profile
- Hours left as the theme’s demo hours, or not updated after a change
- Your own star rating marked up as aggregateRating
- A street address in the schema when you hide it on Google
- A LocalBusiness block with a made-up address on town pages for areas you only serve
- Two blocks from two plugins that disagree
- Plain “LocalBusiness” when a more specific type exists
Questions
What is local business schema?
A block of structured data, usually JSON-LD, that tells search engines your business name, address, phone, website, opening hours and type of business in a fixed format. It sits in your page’s code and visitors don’t see it.
What properties does Google require for LocalBusiness?
Only two: name and address. Google recommends telephone, url, openingHoursSpecification, geo (at least 5 decimal places), priceRange, department, and menu and servesCuisine for food businesses. aggregateRating and review are only for sites that collect reviews of other businesses.
Does LocalBusiness schema help me rank in the map pack?
Google doesn’t say it does. The map pack is driven by your Business Profile, reviews and how relevant and close you are. Schema makes your website’s details unambiguous, which is worth ten minutes, but it’s not a shortcut.
Can I get review stars with LocalBusiness schema?
Not for your own reviews. Since September 2019 Google treats reviews of a business on its own site as self-serving and doesn’t show stars for them with LocalBusiness or Organization markup, even through an embedded widget.
How do I mark up 24-hour opening or closed days?
Google’s guide says: for open 24 hours, set opens to “00:00” and closes to “23:59”; for closed all day, set both to “00:00”. For holiday hours, add a separate entry with validFrom and validThrough dates.
Should a service-area business use LocalBusiness schema?
Yes, but match your Business Profile: if you hide your street address there, leave it out of the schema too and give your town, region, postcode and country, plus areaServed for the places you cover.
Where should I put the schema code?
On the page it describes: the homepage or contact page for one location, or each branch page for several. Check your theme or SEO plugin isn’t already adding a block, and test with Google’s Rich Results Test.