Guide · 5 min read
How to add LocalBusiness schema to your website
By MarketPup ·
When someone reads your website, they can tell your address from your phone number at a glance. Search engines and AI assistants usually can too, but not always. Schema markup takes the guessing out. It is a small block of code that states your business details in a format machines are built to read.
It sounds technical. It isn't, once you see it. And you can make yours for free in a few minutes.
What schema markup is
Schema markup is a shared vocabulary, from schema.org, that search engines agree on. The most common way to add it is a block called JSON-LD. It sits in your page's code and doesn't change how the page looks to visitors.
For a business with a real location, the type you want is LocalBusiness, or a more specific type like Dentist, HairSalon, PetStore or Restaurant. Schema.org lists more specific types under LocalBusiness, such as Store and its PetStore, HealthAndBeautyBusiness and its HairSalon, and FoodEstablishment and its Restaurant. Google asks for the most specific type that fits. If nothing fits, LocalBusiness is fine.
Why it's worth doing
- It states your facts plainly. Name, address, phone, hours and links, all labeled.
- It backs up your Google Business Profile. When the details on your site match your listing, you send one clear, consistent signal. Our Google Business Profile checklist is a good companion if you are tightening that listing too.
- It gives AI assistants something solid to read. Assistants pull from many sources. Clear, labeled facts on your own site are one of the few you control. Our guide on how to get mentioned in Google AI Overviews covers that side of the work.
A quick honest note: schema doesn't guarantee anything. Google decides whether to show special results, and nobody can promise that. Think of it as making your facts easy to read, not as a ranking trick.
What to include
Start with the basics:
- Business name, exactly as it appears on your sign and your Google Business Profile.
- Full street address, city, state, ZIP and a two letter country code like US.
- Phone number with country and area code.
- Website address.
- Opening hours for each day you're open.
- Profile links such as your Google Business Profile, Facebook, Instagram or Yelp.
Optional extras: a logo or photo link, a price range like $$, and your latitude and longitude.
Make yours with our free generator
Our free LocalBusiness schema generator at getmarketpup.com/tools/local-business-schema-generator builds the code for you. It is free, needs no sign-up, and runs in your browser, so nothing you type is sent anywhere.
- Pick your business type from the list. There are groups for general businesses, shops, health and beauty, and food and drink. Pick the most specific type that fits.
- Fill in your name and address.
- Add your phone, website, hours and profile links. Leave a day empty if you're closed; days with the same hours are grouped for you.
- Copy the JSON-LD block it gives you.
Add it to your site
Paste the whole block, including the script lines, into the page about that location, often your homepage or contact page. Then publish. Most website builders have a spot for custom code in the page header or settings. If you're not sure where it goes on yours, your builder's help pages will usually cover "add custom code" or "header code."
If you have more than one location, give each location its own page and its own block.
Check it before you walk away
Run the page through Google's Rich Results Test and fix any critical errors it reports. Our generator flags what Google's guide asks for:
- Latitude and longitude need at least 5 decimal places.
- Price range has to be under 100 characters.
- A phone number should include its country and area code.
Mistakes to avoid
- Details that don't match. Your schema, your website text and your Google Business Profile should all say the same thing. Mismatched hours or old phone numbers confuse everyone.
- Adding review stars yourself. Don't add ratings or review markup about your own business. Google's guide says those are only for sites that collect reviews of other local businesses. Our generator leaves that markup out on purpose.
- Forgetting to update it. New hours, a move or a new phone number means updating the schema too. Holiday hours belong on your Google Business Profile; your regular hours stay in the schema.
Want a hand?
If you'd rather we add the markup for you, a Fetch Fix sprint includes schema on up to 25 pages, along with titles, meta, headings, canonicals, internal links and a sitemap. Monthly plans start at $189 a month, month to month. Not sure where to start? Grab a free Mini Sniff: a one page look at your site or listing with the top 3 fixes, no call or card needed.
Ember likes a tidy filing box. Your website should have one too.