Local Business Schema Generator (JSON-LD)
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free local business schema generator. Create LocalBusiness JSON-LD with your address, phone, hours, map coordinates and social profiles.
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the local business schema generator
Enter your business name and choose the type that fits best, such as Bakery, Restaurant, Hair salon, Dentist or Plumber. Add your website, phone number and address, and if you like, your price range, a logo or photo, and your map coordinates.
For opening hours, tick the days in the first set and enter the opening and closing times; use the second set for days with different hours, such as weekends. Finally, list your social profiles, one address per line.
The tool builds LocalBusiness structured data in JSON-LD format as you type, wrapped in a <script> tag that's ready to paste into your website. It runs in your browser and doesn't upload anything.
What local business schema is
Local business schema is structured data that describes a business with a physical location or service area: its name, type, address, phone number, opening hours, coordinates and links to its profiles. It uses the Schema.org vocabulary that Google, Bing and other search engines understand, in JSON-LD, the format Google recommends.
Here's a shortened example of what the local business schema generator produces:
{
"@context": "https://schema.org",
"@type": "Bakery",
"name": "Crumb & Co.",
"telephone": "+1 512 555 0100",
"address": {
"@type": "PostalAddress",
"streetAddress": "18 Mill Lane",
"addressLocality": "Austin",
"addressRegion": "TX",
"postalCode": "78701",
"addressCountry": "US"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "07:00",
"closes": "15:00"
}]
}
Why local business schema matters
Structured data doesn't directly push you up the rankings, but it helps in several practical ways:
- Clear facts. It tells search engines exactly what your name, address, phone number and hours are, in a format that can't be misread.
- Consistency. Local search relies on consistent business details (often called NAP: name, address, phone) across your website, Google Business Profile and directories. Marking up your website's version makes it unambiguous.
- Eligibility for richer results. Google can use LocalBusiness data for business details in search and knowledge panels, alongside your Google Business Profile.
- Linked profiles. The
sameAslist connects your website with your official social profiles, which helps search engines know they belong to the same business.
The most important local SEO step remains your Google Business Profile: complete, accurate, with photos, regular posts and replies to reviews. Structured data on your website supports it; it doesn't replace it.
Filling in each field correctly
Type
Choose the most specific type that fits. Schema.org has many subtypes of LocalBusiness, such as Bakery, Restaurant, CafeOrCoffeeShop, Store, HairSalon, BeautySalon, Dentist, MedicalClinic, LegalService, Plumber, Electrician, RealEstateAgent, AutoRepair and HealthClub. If none fits, LocalBusiness or ProfessionalService works fine.
Name, address and phone
- Use your real business name, exactly as it appears on your signage and Google Business Profile. Don't add keywords ("Crumb & Co. Best Bakery Austin"); Google's guidelines treat that as spam.
- Write the address exactly as it appears on your Google Business Profile.
- Use a two-letter country code such as US, GB, CA, AU or BD.
- Include the country calling code in the phone number (+1, +44, +880), so it works internationally.
Opening hours
Times use 24-hour format: 07:00 for 7am, 15:00 for 3pm. Tick each day the hours apply to. If some days have different hours, use the second set. If you close at midnight, use 23:59. If you're closed on a day, simply don't tick it. Keep hours up to date, especially around holidays; wrong hours are one of the most common reasons customers leave negative reviews. When your hours change, update the website, the markup and your Google Business Profile on the same day.
Coordinates
Latitude and longitude help pinpoint your location. To find them, right-click your business on Google Maps; the coordinates appear at the top of the menu, and clicking them copies them. Use at least four decimal places. The local business schema generator only includes coordinates when both values are valid (latitude between −90 and 90, longitude between −180 and 180).
Price range
A short indicator such as $$ or a range like $10-30. It's optional, and Google recommends keeping it under about 100 characters.
Social profiles
List the full addresses of your official profiles: Facebook, Instagram, LinkedIn, X, YouTube, TikTok and similar. Only include profiles you control.
Service-area businesses
If you visit customers rather than having them visit you, such as plumbers, cleaners, electricians or mobile hairdressers, you can still use local business schema. Include the address you're registered at if you show it publicly; if you don't show your address on your website or Google Business Profile, leave the street address out of the markup too, and keep the city, region and postcode. Describe the areas you cover on the page itself, for example "We cover Austin, Round Rock and Cedar Park", so visitors and search engines see the same information. Schema.org also has an areaServed property that developers can add by hand for more detail.
Adding the code to your site
- Hand-coded sites: paste the script into your home page and contact page HTML, in the
<head>or the<body>. - WordPress: some SEO plugins add LocalBusiness markup automatically (often in a paid version). Check before adding a second copy. Otherwise, use a Custom HTML block or a header-code plugin.
- Shopify, Squarespace, Wix and Webflow: add it through the site's custom code or code injection settings, or a code block on the contact page.
For a business with several locations, each location should have its own page with its own LocalBusiness markup, address and hours.
Testing your markup
- Publish the page with the code.
- Run the address through Google's Rich Results Test, which checks the structured data and lists any errors or missing recommended fields.
- Check it in the Schema Markup Validator at validator.schema.org.
- Make sure every detail matches the visible page and your Google Business Profile exactly.
Common mistakes
- Details that don't match the page. Structured data must describe what visitors can see. If your hours are in the markup, show them on the page too.
- Keyword-stuffed names. Use your real name only.
- Marking up a business you don't run, or adding reviews and ratings you wrote yourself. Google doesn't show self-serving review stars for LocalBusiness, and fake reviews break its policies.
- Several conflicting copies of the markup from a theme, a plugin and manual code. Keep one.
- Out-of-date hours after a seasonal change.
Local SEO is more than markup
Local business schema is one piece. The others:
- Meta tags with your area in the title, such as "Bakery in Austin".
- An FAQ that answers local questions: delivery areas, parking, opening hours.
- An email signature with your address and phone, so every email reinforces the same details.
- Regular content about your area.
Keep the name, address and phone number in this markup exactly the same as on your Google Business Profile and website footer. Small differences, such as Street versus St., are harmless to people but make the details look less consistent to search engines.
Search ads for the searches that matter now
Good markup helps your pages rank over time. Google Ads puts the same pages in front of buyers today. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.
Frequently asked questions
What is local business schema?
It's structured data using Schema.org's LocalBusiness type, or a more specific subtype, that describes a business's name, address, phone, hours, location and profiles in a format search engines understand.
Does local business schema improve rankings?
Not directly. It helps search engines understand and trust your business details, and supports your Google Business Profile, which matters most for local results.
Where should I put local business schema?
On your home page or contact page, and on each location page if you have several locations. Keep one copy per page.
Do I need coordinates?
They're optional but recommended. Copy them from Google Maps by right-clicking your business.
Can I add reviews to my LocalBusiness markup?
Google doesn't show review stars for reviews a business publishes about itself on its own site, so self-serving review markup isn't useful and can break guidelines.
Is the local business schema generator free?
Yes. It's free with no sign-up, and it runs in your browser so your details aren't uploaded.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.