Boneyard Tools

LocalBusiness Schema Generator (JSON-LD)

Build valid LocalBusiness JSON-LD for your storefront, restaurant or service. Choose a business type, fill in your address, map coordinates and opening hours, and copy or download the structured data. Everything runs in your browser.

How to generate LocalBusiness schema

  1. Pick the business type that fits your site, such as Restaurant, Store or ProfessionalService.
  2. Fill in the name, address, phone, geo coordinates and opening hours; blank fields are left out.
  3. Copy the JSON-LD script and paste it into the <head> of your location page.

Examples

Coffee shop with hours and coordinates

type: Restaurant, name: Joe's Coffee, address in Springfield, geo 39.78/-89.65, Mon-Fri 07:00-18:00
"@type": "Restaurant",
"address": { "@type": "PostalAddress", "addressLocality": "Springfield" },
"geo": { "@type": "GeoCoordinates", "latitude": 39.7817, "longitude": -89.6501 }

Frequently asked questions

What is LocalBusiness schema and why does it matter for local SEO?

LocalBusiness is a schema.org type that describes a physical place of business to search engines: its name, address, phone, price range, coordinates and opening hours. Adding it as JSON-LD helps Google understand and confirm your business details, which supports your presence in local search, map packs and the knowledge panel. It does not replace a Google Business Profile, but it reinforces the same facts on your own site.

Which business type should I choose?

Pick the most specific schema.org subtype that fits. Use Restaurant for eateries, Store for retail, ProfessionalService for agencies and consultants, MedicalBusiness, LegalService or FinancialService for those fields, and plain LocalBusiness when nothing more specific applies. A more specific type gives crawlers richer context, and every subtype still inherits all the LocalBusiness properties.

How should I format opening hours?

Each row becomes one OpeningHoursSpecification entry: tick the days it applies to and set the opening and closing times in 24-hour HH:MM format, such as 09:00 and 17:00. Group days that share the same hours into one row and add separate rows for different schedules, for example weekdays versus weekends. Rows without a day or a time are skipped.

Do I need latitude and longitude?

No, geo coordinates are optional. If you add them, both latitude and longitude must be present or the geo block is left out. Coordinates can help pin your exact location, which is useful when an address sits between several places or your entrance differs from the street pin. You can read them off Google Maps by right-clicking your location.

How do I test the generated structured data?

Paste the script into Google's Rich Results Test and the Schema.org validator. Both parse the JSON-LD, flag missing or malformed properties, and show what your markup qualifies for. Make sure the details in the markup match what visitors actually see on the page, and re-test after any edit.

Is my business data sent anywhere?

No. The JSON-LD is assembled entirely in your browser with JavaScript. Nothing you type, including your address or phone number, is uploaded, logged or stored.

Related tools