The defaults are a US business: a state and ZIP code, a +1 phone number, dollar-sign price ranges and addressCountry set to US. Swap in your own details and the code updates as you type.
You can copy the script tag or download the JSON. Everything runs in your browser.
How to use the local business schema generator
Quick answer
Choose the most specific business type, then enter your name, address, phone, website and hours. Add coordinates and profile links if you have them. Copy the finished script and paste it on the page that shows the same contact details, usually your home or contact page.
Start with the name. Use the same business name as your Google Business Profile, with no added keywords, so every source agrees.
Then set the type. Google asks for the most specific LocalBusiness subtype available, such as Plumber, Dentist or Restaurant. Use the generic LocalBusiness only if nothing fits.
- Name, address and phone must match your profile and website exactly
- Phone with country code, for example +1-512-555-0142
- Hours in 24-hour format, one block per open day
- Profile links: Google Business Profile, Facebook, LinkedIn
Which fields Google requires and recommends
Quick answer
Google requires an address and a name for LocalBusiness markup. It recommends geo coordinates, opening hours, price range, telephone and url. Coordinates need at least five decimal places, and phone numbers should include the country code and area code.
The generator always outputs a name and a complete PostalAddress. Everything else is included only when you fill it in, so you never ship empty fields.
Price range is free text such as $$ or $10-15, and it must stay under 100 characters or Google will not show it.
Pick the right business type
Quick answer
Use the most specific subtype from the dropdown that describes your main business. A plumber chooses Plumber, a law office chooses LegalService or Attorney, a dental practice chooses Dentist. Specific types give Google a clearer signal than the generic LocalBusiness.
If your exact trade is not in the list, choose the closest broader type, like HomeAndConstructionBusiness, and let your page text and Google Business Profile category carry the detail.
Keep the markup in step with the real business. If you change services or categories on your profile, update the markup too.
Where to place and how to test the code
Quick answer
Paste the script on your home page or contact page, and on location pages for each real location. Then check the live page at validator.schema.org. Confirm your name, address and phone appear exactly and no errors show.
Add the code once per page. Duplicates from a plugin and from a manual paste can conflict, so check your source for an existing block first.
Service-area businesses that hide their address on Google should think about what they show on the website. Keep the markup consistent with what you publish.
Keep schema and listings consistent
Quick answer
Schema does not rank a page by itself. It works best when the same name, address and phone number appear on the page, the Google Business Profile and your directory listings. Fix mismatches first, then add the markup to confirm what is already true.
Run our local SEO audit tool on the page after you add the code, then check your profile with the Google Business Profile audit tool.
Update the code when you move, change phone numbers or change hours. Stale markup is worse than none.
Common local business schema mistakes
Quick answer
The most common errors are details that do not match the visible page, a business type that is too generic, missing required fields and markup copied from another location.
The name, address and phone number in the code must be identical to what visitors see on the page and to what your Google Business Profile shows.
When you copy markup for a second location, update every field. Leaving the first address in the second page's code is a frequent mistake.
- Match name, address and phone to the page
- Use the most specific business type available
- Validate the code before publishing
Opening hours and special days
Quick answer
Opening hours go in a structured format with the day, the opening time and the closing time. Special days and holidays can be added separately so they do not overwrite your regular schedule.
Use 24-hour times, such as 09:00 and 17:30. If you are closed on a day, leave that day out.
Keep the hours in the code in sync with your profile. If you change one, change the other.
Link your other profiles with sameAs
Quick answer
The sameAs property lists other official pages for your business: your Google Business Profile, Facebook, LinkedIn and trusted directories. It helps search engines connect the dots between your web presence.
Only add profiles you control and that are accurate. Dead links and unofficial pages weaken the signal.
If you have a Wikipedia or Wikidata entry, include it too. Most small businesses do not, and that is fine.
Schema for businesses with several locations
Quick answer
Each location needs its own page and its own markup with its own address, phone number and hours. Do not put every address in one block on a single page.
A company with offices in Chicago and Nashville should have two location pages, each with a distinct local business entry that points to the parent organization.
Keep each location page unique, with its own team, photos and reviews where possible.
Keep reading
- FAQ Schema Generator: Create FAQPage JSON-LD in Minutes (Free tools)
- Local SEO Audit Tool: Check Your Website in 30 Seconds (Free tools)
- Service Page SEO That Turns Local Searches Into Calls (Services)
- NAP Consistency: How to Find and Fix Mismatched Business Listings (Blog)
- A Citation Building Service That Makes Your Listings Match Everywhere (Services)
Sources: Google Search Central: LocalBusiness structured data, Schema Markup Validator