Create LocalBusiness structured data for your shop, practice or service business. Enter your address, phone number, opening hours and service areas, choose the most specific business type, and copy JSON-LD that is ready to paste into your website.
Loading tool…
What LocalBusiness schema does
LocalBusiness schema is structured data that describes a business with a physical location or a defined service area. It tells search engines, in a precise machine-readable format, your exact business name, address, phone number, opening hours, map coordinates, price range and the profiles that belong to you, such as your Google Business Profile, Yelp or Facebook page.
That precision matters for local search. Google cross-checks the details on your website against your Business Profile, directories and other mentions online. When your name, address and phone number (often called NAP) match everywhere, Google can be more confident it is showing the right business to someone nearby. Clean structured data on your own site is one of the clearest ways to state those facts.
How to use the generator
- Choose your business type. Pick the most specific option, such as Plumber, Dentist, Attorney or Restaurant. Use LocalBusiness or ProfessionalService only if nothing more specific fits.
- Enter your business name exactly as it appears on your Google Business Profile and shopfront.
- Add contact details: website, phone number with country code (for example +1 for the US and Canada, +44 for the UK, +61 for Australia) and email.
- Add images: a photo of your premises or team, and your logo.
- Enter your full address and the two-letter country code. Add latitude and longitude if you know them (you can copy them from Google Maps).
- Set opening hours for each day. Leave both times empty for days you are closed. Days with the same hours are grouped automatically.
- List your service areas if you travel to customers, and paste the links to your official profiles.
- Click Copy code, paste it into your homepage or contact page, and test it with Google’s Rich Results Test.
Worked example
A family dental practice in Leeds is open 8:30–17:30 Monday to Friday and 9:00–13:00 on Saturday. In the generator it chooses the Dentist type, enters its name and full address with country code GB, adds its +44 phone number, logo and a photo of the practice, sets the opening hours, and pastes links to its Google Business Profile and Facebook page. The output groups Monday to Friday into one opening-hours rule and Saturday into another, and includes the address, geo-coordinates and profile links. The practice adds the code to its Contact page, then checks the same name, address and phone appear in its site footer.
Best practices
- Use your real, public address. Never use a virtual office or a mailbox address you are not allowed to list. Service-area businesses that do not serve customers at their premises should follow Google’s Business Profile rules for hiding the address.
- Match your Google Business Profile exactly, including suite numbers and abbreviations.
- Add it once, normally on the homepage or the contact page. Each genuine branch can have its own page with its own LocalBusiness block.
- Keep hours current, including changes you make on your Business Profile.
- Use the most specific type so search engines understand what you do.
- Show the same details on the page that are in the markup, especially the address and phone number.
Common mistakes
- Adding a different phone number (such as a call-tracking number) only to the schema, so it no longer matches the page or your profile.
- Listing service areas you do not really serve.
- Using a generic type when a specific one exists.
- Adding fake or self-written reviews to the markup. This breaks Google’s guidelines.
- Leaving old opening hours in place after they change.
- Duplicating the block through a theme, a plugin and manual code at the same time.
LocalBusiness schema in the US, UK, Canada and Australia
The schema format is the same everywhere, but the details differ by country. Use the local address format and the correct region: a two-letter state in the US (TX, CA), a province in Canada (ON, BC), a state or territory in Australia (NSW, VIC) and, in the UK, the town and postcode. Write phone numbers in international format so they are unambiguous. Your areas served can be cities, counties, boroughs or postcodes, whatever your customers would recognise.
Frequently asked questions
Does LocalBusiness schema help me rank in Google Maps?
Map rankings depend mainly on your Google Business Profile, relevance, distance and prominence. Schema supports this by confirming your details on your own site, but it does not replace a complete, verified Business Profile and genuine reviews.
Where should I put the code?
On the page that best represents the location, usually the homepage for a single-location business or the contact page. Multi-location businesses should put each location’s markup on that location’s page.
What if I have no shopfront and visit customers?
You can still use LocalBusiness markup. Add your service areas, and follow Google’s Business Profile rules about whether to show your address publicly.
How do I find my latitude and longitude?
Open Google Maps, right-click your exact location and click the coordinates at the top of the menu to copy them.
Can I include reviews in this schema?
Only genuine customer reviews that are visible on the same page. Google does not show review stars for businesses that mark up reviews of themselves on their own site, so for most businesses it is not worth adding.
Related free tools
- Google Review Link Generator: make it easy for customers to review you.
- Schema Markup Generator: Organization, Service, Event and more.
- SERP Snippet Preview: write local titles that fit.
Want your local presence set up properly, from schema to Business Profile? See SEMRS SEO Services →