LocalBusiness Schema Generator
Build a complete LocalBusiness JSON-LD block — the specific subtype (Restaurant, Dentist, Plumber…), postal address, geo coordinates, opening hours including split shifts and 24/7, and social profile links. Empty fields are omitted from the output, coordinates are range-checked, and the JSON is serialized with JSON.stringify so it always validates.
Enter a business name to generate the JSON-LD markup.
How to use the localbusiness schema generator
- Pick the most specific @type that matches your business — start typing in the type field to search the subtype list.
- Fill in name, address, phone, and website exactly as they appear on your Google Business Profile (NAP consistency matters).
- Add geo coordinates: right-click your pin in Google Maps and click the coordinates to copy latitude and longitude.
- Build opening hours with the day buttons — add a second row for split shifts, or use the 24/7 shortcut. Closed days are simply left unselected.
- Copy the markup with the script wrapper and paste it into the head or body of your homepage or contact/location page.
A worked example
A dental practice in Austin open Monday–Friday 08:00–12:00 and 13:00–17:00 (closed for lunch — a split shift, so two hours rows) would produce markup like this:
{
"@context": "https://schema.org",
"@type": "Dentist",
"name": "Lakeview Dental Care",
"telephone": "+1 512 555 0147",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "200 Congress Ave",
"addressLocality": "Austin",
"addressRegion": "TX",
"postalCode": "78701",
"addressCountry": "US"
},
"geo": { "@type": "GeoCoordinates", "latitude": 30.2672, "longitude": -97.7431 },
"openingHoursSpecification": [
{ "@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],
"opens": "08:00", "closes": "12:00" },
{ "@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],
"opens": "13:00", "closes": "17:00" }
]
}Note the phone number in international format with country code, the two-letter codes for state and country, and the weekend simply absent from dayOfWeek. Validate the published page in Google's Rich Results Test, and re-check whenever your hours or phone number change — stale schema that contradicts your Google Business Profile is worse than no schema at all.
Frequently asked questions
Does LocalBusiness schema replace my Google Business Profile?
No — they complement each other and you need both. Google Business Profile feeds the Map Pack and the knowledge panel; LocalBusiness schema on your website helps Google reconcile your site with that profile and reinforces your entity data (hours, phone, location) at crawl time. The highest-impact setup is a fully completed Business Profile plus matching schema on your site, with identical NAP data in both.
Which @type should I choose?
The most specific one that truthfully fits. A dental practice should use Dentist, not LocalBusiness; a pizza place should use Restaurant (or FastFoodRestaurant). Specific subtypes inherit every LocalBusiness property and give Google a stronger category signal. Only fall back to plain LocalBusiness or ProfessionalService when no subtype matches. This tool falls back to LocalBusiness automatically if you type a subtype it does not recognize.
What is NAP consistency and why does this tool keep mentioning it?
NAP = Name, Address, Phone. Local search engines cross-reference your business data across your website, Google Business Profile, directories, and citations. Mismatches — “200 Congress Ave” here, “200 Congress Avenue, Ste 1” there, an old phone number on a directory — dilute confidence in your entity and are a classic local-ranking drag. Your schema should copy the exact strings from your Business Profile, character for character.
Can I include aggregateRating with my Google review score?
Be careful. Google’s structured-data guidelines prohibit “self-serving” reviews: ratings in your schema should come from reviews collected and displayed on your own site, not copied from Google Maps or third-party platforms. Since the 2019 review rich-result crackdown, LocalBusiness pages showing review stars from their own schema are heavily filtered anyway. This tool includes the field because it is valid schema.org markup, but only use it if you genuinely display first-party reviews on the page.
How do I mark a business that is open overnight or 24/7?
For 24/7, use one OpeningHoursSpecification covering all seven days with opens 00:00 and closes 23:59 — the shortcut button does exactly this. For overnight hours like a bar open 18:00 to 02:00, keep opens 18:00 and closes 02:00 on the same row: Google interprets a closing time earlier than the opening time as spanning midnight. Days the business is closed are simply omitted from the markup — never invent 00:00–00:00 rows.
Where on my site should the markup go?
On the page that represents the physical location: usually the homepage for a single-location business, or each location’s landing page for multi-location businesses (one LocalBusiness block per location, each with its own address and geo). Paste the script tag in the head or body — both work. Avoid stamping identical LocalBusiness markup on every page of the site; it adds noise without benefit.
Related tools
- FAQ Schema GeneratorGenerate FAQPage JSON-LD schema: add questions and answers, get valid markup with inline validation, and copy or download the script tag.
- Open Graph Meta Tag GeneratorGenerate Open Graph and Twitter Card meta tags with live social previews for Facebook, X, LinkedIn, and Discord — copy the HTML in one click.
- WhatsApp Click-to-Chat Link GeneratorCreate WhatsApp click-to-chat links with a pre-filled message and a downloadable QR code — wa.me links for bios, ads, and business profiles.
- Google Review Link GeneratorGenerate a direct Google review link from your Place ID, plus a ready-to-send email or text snippet. Get more reviews with one tap-to-review URL.
- Product Schema GeneratorGenerate Product JSON-LD schema with price, brand, GTIN, availability, and ratings. Copy valid markup for Google product rich results in one click.
- Review Schema GeneratorGenerate Review and AggregateRating JSON-LD for products, books, movies, and local businesses. Build valid star-rating markup Google accepts and copy it.