LocalBusiness Schema Generator
100% private — runs on your device, never uploaded. Works offline once loaded.
Enter your business name, address, hours and location and get valid LocalBusiness JSON-LD for local SEO and knowledge-panel signals. Generated in your browser.
Why LocalBusiness schema matters
LocalBusiness structured data describes a physical, place-based business — its name, address, phone, geo coordinates, opening hours and price range — in schema.org's vocabulary. It gives search engines an unambiguous, machine-readable version of your NAP (name, address, phone) details, reinforcing the signals that drive local pack rankings, map placement and knowledge-panel information.
This generator builds a LocalBusiness object (or a more specific subtype) with a nested PostalAddress and, when you supply coordinates, a GeoCoordinates node. It only includes the fields you fill in, so you never ship empty properties, and it escapes your text so addresses with commas or quotes stay valid.
Getting the address and geo right
The PostalAddress is the heart of the markup. Map each part of your address to the correct schema.org property, and use a two-letter ISO country code so crawlers interpret it unambiguously.
- streetAddress — the street and number, e.g. 123 Main St.
- addressLocality — the city or town.
- addressRegion — the state, province or region, often a code like OR or CA.
- postalCode — the ZIP or postal code.
- addressCountry — the ISO 3166-1 alpha-2 code, e.g. US or GB.
- geo — latitude and longitude as decimal degrees for precise map pinning.
Opening hours and price range
openingHours uses a compact syntax: two-letter day abbreviations (Mo, Tu, We, Th, Fr, Sa, Su), optional ranges like Mo-Fr, and 24-hour times such as 09:00-17:00. Split hours are expressed as separate entries — for example a lunch-closing cafe would list 'Mo-Fr 08:00-12:00' and 'Mo-Fr 13:00-18:00' on their own lines.
priceRange is a short qualitative hint, usually a run of dollar signs ($ to $$$$) or a textual range. It is free-form, so keep it consistent with how you present pricing elsewhere so the signal stays coherent.
Choosing a type and validating
schema.org offers dozens of LocalBusiness subtypes — Restaurant, Store, CafeOrCoffeeShop, ProfessionalService, MedicalBusiness, LodgingBusiness and more. Picking the most specific one that fits lets search engines apply type-appropriate expectations and can unlock category-specific features such as menus for restaurants. When in doubt, the base LocalBusiness type is always safe.
After adding the markup, verify the live page with Google's Rich Results Test and the Schema Markup Validator, and make sure the details exactly match your Google Business Profile and other citations. Consistency across every mention of your business is what makes the structured data trustworthy to search engines.
Frequently asked questions
Do I need geo coordinates?
They are optional but recommended. Accurate latitude and longitude help search engines pin your business on a map precisely, which matters when a street address is ambiguous or newly built. Use decimal degrees, with west and south as negative values.
Can I list multiple locations?
Each physical location should have its own LocalBusiness markup on its own location page. For a multi-branch business, generate one block per branch rather than cramming several addresses into a single object.
How do I mark 24-hour opening?
Use the special value 'Mo-Su 00:00-23:59', or schema.org's 'Mo-Su' with the time 00:00-00:00 convention some validators accept. Put it on a single line and the tool emits it as your openingHours.
Should the markup match my Google Business Profile?
Yes, exactly. The name, address and phone in your JSON-LD should be identical to your Google Business Profile and directory citations. Inconsistent NAP data dilutes local ranking signals and can confuse search engines.
What if my business has no storefront?
LocalBusiness expects a physical address customers can visit. Service-area businesses without a public storefront should be cautious; schema.org offers areaServed and other properties, and Google has separate guidance for service-area businesses in the Business Profile itself.
Is telephone or phone the correct property?
schema.org uses telephone, which is what this tool outputs. Include the number in international format with a country code, such as +1-503-555-0100, so it is unambiguous across regions.
Advertisement