Skip to content

LocalBusiness schema. Local SEO ready.

Dedicated LocalBusiness schema generator. Pick the most-specific subtype, fill name, address, geo, opening hours per weekday. The right panel renders rich-result-eligible JSON-LD with proper OpeningHoursSpecification array. No fetch, no log.

address
geo coordinates · 5+ decimals
contact + scope
opening hours per weekday · 24h format
JSON-LD output · live

              
    Sources used by this generator

    Privacy: form runs in-browser only. Address never leaves the device.

    § · written guide

    How to use the LocalBusiness Schema Generator

    This generator builds LocalBusiness structured data in JSON-LD from a simple form. It puts the business type, name, address, map coordinates, phone, price range and weekly opening hours into one schema.org object, and checks it against the fields Google asks for. Use it on the page of a business that customers can actually visit.

    Step by step

    1. Choose the schema type

      Pick the closest match in Schema type, such as Restaurant, Dentist or Store. Keep LocalBusiness if nothing fits. The form starts filled with a sample New York business, so replace every field with your own details.

    2. Fill the name, links and address

      Enter Business name, URL and Image URL, then Street address, City, State / region and Postal code. Type a two letter code in Country (ISO-3166), such as US or GB; lowercase is turned into capitals for you.

    3. Add coordinates

      Enter Latitude and Longitude in decimal degrees, with at least five decimal places. Both must be filled, or the geo block is left out of the code.

    4. Add contact details

      Enter Telephone in international format with the country code, such as +1. Pick a tier from $ to $$$$ in Price range, or none to leave it out.

    5. Set the opening hours

      For each weekday, set the opening and closing time, or tick closed. The defaults are 09:00 to 18:00 Monday to Friday, 10:00 to 15:00 on Saturday, and Sunday closed. A day missing either time is skipped.

    6. Copy the code

      Press the first copy button to copy the JSON wrapped in a script tag of type application/ld+json, ready to paste into your page. Press Copy JSON only for the bare object.

    Reading the result

    • The JSON-LD output panel updates on every change. The status line above it counts fails, warnings and passes, and the list below the buttons shows each check.
    • Fails are missing required fields: name, image (which must be a link starting with http or https), street address, city, postal code and country. Coordinates outside the valid latitude and longitude range also fail.
    • Warnings are recommended fields: region, geo coordinates and their precision, opening hours, price range and telephone, plus a country that is not a two letter code.
    • With the sample values every check passes and the status line reads All 12 checks pass. Opening hours show as one entry per open day.

    Tips and common mistakes

    • Use LocalBusiness only for a place customers can visit or a staffed office. For an online only or remote business, Organization is the better type.
    • Take coordinates from a map pin on your entrance and keep at least five decimals. The precision check counts the decimals you typed.
    • Your device may show the time pickers in 12 hour format, but the code always uses 24 hour HH:MM, which is the format schema.org expects.
    • The URL field is copied as typed and is not checked, so make sure it is the address of the page where this code will live.
    • After you add the code to your page, test the live URL in Google's Rich Results Test.

    Privacy and limits

    The form and the JSON are built in your browser. Nothing you enter is sent anywhere or saved, so reloading the page brings back the sample values. The copy buttons write only to your clipboard.

    Back to the tool

    § 02 · five required, three recommended

    What goes into LocalBusiness.

    Required: name, image, and complete PostalAddress (streetAddress, addressLocality, postalCode, addressCountry). Without these the local rich result is ineligible. addressRegion is technically optional in the schema but Google strongly prefers it for US/AU/IN addresses where state is meaningfully part of the address.

    Recommended: geo (latitude + longitude), openingHoursSpecification per weekday, telephone (E.164 format), priceRange ($/$$/$$$/$$$$). Geo with 5+ decimals (~1m precision) is a confirmed local-pack ranking signal, Search Atlas's August 2025 ML study attributes 55.2% of local-pack ranking weight to proximity, which means geo precision directly affects whether you show up in the nearest map results.

    Subtype choice: schema.org defines 30+ subtypes under LocalBusiness. Restaurant, CafeOrCoffeeShop, Bakery, BarOrPub for food; Store, ClothingStore, JewelryStore for retail; MedicalClinic, Dentist, Optician for health; AutomotiveBusiness, FinancialService, LegalService, HomeAndConstructionBusiness for services. Pick the most-specific that fits, Google uses the subtype to render category-aware features (Restaurants get menu/reservation links; Stores get inventory carousels; Hotels get booking widgets).

    openingHoursSpecification can be either an array of OpeningHoursSpecification objects (one per day or grouped) or a string in the shorthand form ("Mo-Fr 09:00-18:00"). The structured form is preferred, it handles holidays, half-days, split shifts, and per-day variations cleanly. The generator outputs structured form by default, one entry per non-closed day.

    Eligibility caveat, virtual businesses: LocalBusiness implies a physical place where customers can visit. Google's Local Business guidelines explicitly state virtual offices and lead-gen agencies without a real address are ineligible. Use Organization or ProfessionalService schema instead for those cases. Submitting LocalBusiness on a city page where you don't have a staffed office risks site-reputation flagging.

    § 03 · questions

    Six questions users ask.

    Should I use LocalBusiness or a more specific subtype?

    Use the most specific subtype that fits. schema.org defines LocalBusiness as a parent with 30+ subtypes, Restaurant, Store, MedicalClinic, AutomotiveBusiness, ProfessionalService, FinancialService, etc. The more specific type signals the category to Google, which uses it for category-aware rich results (Restaurants get menu links and reservations; Stores get inventory carousels). If your business doesn't fit a subtype cleanly, use LocalBusiness, it's the safe default. Avoid stacking: pick ONE @type.

    Why specify opening hours per weekday?

    Google uses opening hours to render the 'Open now', 'Closes at 6 PM', or 'Opens at 9 AM Monday' badges in the local pack and Knowledge Panel. Using OpeningHoursSpecification per weekday (Monday 9-18, Tuesday 9-18, Saturday 10-15, Sunday closed) gives Google explicit per-day data. The shorthand 'Mo-Fr 09:00-18:00' string still works but is less precise, explicit per-day handles holidays, half-days, and split shifts more cleanly. The generator outputs the structured form by default.

    Is geo (lat/lng) required?

    Not required, but strongly recommended. Without geo, Google falls back to geocoding the address, usually accurate but introduces a small precision drift, especially for businesses inside large complexes (mall units, office parks, mixed-use buildings). Provide latitude and longitude with at least 5 decimal places (~1m precision) for the local-pack proximity ranking signal to work cleanly. Coordinates are a confirmed local-SEO ranking factor (Search Atlas Aug 2025 ML study attributes 55.2% of local-pack ranking weight to proximity).

    What does priceRange do?

    priceRange is the dollar-sign tier ($, $$, $$$, $$$$) shown in Google Maps and the local pack, similar to Yelp. For Restaurants and retail it's directly user-facing; for service businesses it's an internal signal. Use $ for budget, $$ for mid-market, $$$ for premium, $$$$ for luxury. Don't fabricate, the tier should reflect actual price band.

    Can virtual / remote-only businesses use LocalBusiness?

    Generally no, and this is the most-common spec violation we see. LocalBusiness implies a physical place where customers can visit. Google's Local Business guidelines explicitly state virtual offices and lead-gen agencies without a real address are ineligible. Use Organization or ProfessionalService schema instead. Digital Heroes itself only ships LocalBusiness on the actual NY-HQ and Delhi-HQ pages, never on city pages for cities where we don't have a staffed office.

    Does this tool log my address?

    No. The form runs entirely in JavaScript on your device. Nothing is sent to Digital Heroes servers. No signup, no email, no analytics beacon includes the address content.

    Published · Last updated .

    Priya sent you a message Online now

    Talk to a Developer Now

    Share your name and email to reply.

    Reply