Skip to content

Local Business Schema Generator - JSON-LD for Google Maps

Import existing JSON-LD

Paste JSON-LD or a full <script> tag. Matching fields fill the form; properties the form doesn't cover are kept in the output as they are.

Basic Information

e.g. $, $$, $$$, or $10-$50

Location

Hours & Rating

Google Search Preview
Business Name
All Google requirements met

JSON-LD Output

What is LocalBusiness schema?

LocalBusiness schema is structured data that tells search engines the name, address, phone number, opening hours, and location of a business that customers can visit or that serves a local area. It uses the schema.org LocalBusiness type, or a more specific subtype such as Dentist, Restaurant, or Plumber. Google uses it to confirm and fill in business details for local searches.

Use the most specific subtype that fits. A bakery should use Bakery rather than plain LocalBusiness, because the subtype tells Google what kind of business it is before it reads anything else. If you have several branches, put markup for each branch on that branch's own page rather than listing them all on the home page.

LocalBusiness schema example (JSON-LD)

A complete example you can adapt. Paste it into the page's HTML, or build your own with the generator above.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Bakery",
  "name": "Northside Bread Co.",
  "image": "https://example.com/images/northside-shopfront.jpg",
  "url": "https://example.com/",
  "telephone": "+1-503-555-0142",
  "priceRange": "$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "2418 NE Alberta St",
    "addressLocality": "Portland",
    "addressRegion": "OR",
    "postalCode": "97211",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 45.559,
    "longitude": -122.6421
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday"
      ],
      "opens": "07:00",
      "closes": "15:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Saturday",
        "Sunday"
      ],
      "opens": "08:00",
      "closes": "14:00"
    }
  ]
}
</script>

Which Google rich result does it enable?

LocalBusiness markup can feed the business details panel Google shows for brand and local searches: address, phone, hours, and a link to the site. Google combines it with your Google Business Profile and other sources, so markup alone will not put you in the map pack. It helps most when your details are consistent everywhere.

Review stars are a separate matter. Google does not show stars for a business's reviews of itself. If the reviews on your site are about your own business, including reviews pulled in through a widget, the page is not eligible for star ratings. aggregateRating and review are only for sites that collect reviews of other businesses, such as a directory.

Required and recommended properties

Property Status Notes
name Required The business name exactly as it appears on signage and your Business Profile.
address Required A PostalAddress with street, city, region, postal code, and country.
geo Recommended Latitude and longitude with at least five decimal places.
openingHoursSpecification Recommended Days, opens, and closes. Use validFrom and validThrough for holiday hours.
telephone Recommended Include the country code.
url Recommended The page for this specific location.
priceRange Recommended Fewer than 100 characters, such as $$ or $10-25.
servesCuisine, menu Recommended For food businesses only.
department Recommended For a store with separate departments, such as a pharmacy inside a supermarket.
aggregateRating, review Recommended Only for sites that review other businesses. Not for your own reviews.

Common LocalBusiness schema mistakes

  • Using a different name, address, or phone format from your Google Business Profile. Small mismatches like "Street" versus "St" are fine, but a different phone number or suite number causes doubt.
  • Adding aggregateRating from your own testimonials. Self-serving reviews are not eligible for stars and can earn a manual action.
  • Leaving holiday or seasonal hours out of date. Add a separate openingHoursSpecification with validFrom and validThrough for the exception.
  • Marking up every branch on the home page. Give each location its own page and its own markup.
  • Using LocalBusiness for an online-only business with no address customers can visit or serve. Use Organization instead.

Opening hours edge cases

Add one row per set of days that share hours. For a business open 24 hours, set opens to 00:00 and closes to 23:59. For a day it is closed all day, either leave the day out or set both times to 00:00. If you close after midnight, for example 18:00 to 02:00, give the closing time as 02:00 on the day you open.

Hours are the part of LocalBusiness markup most likely to go out of date. If your CMS stores opening hours, generate the markup from the same data instead of pasting a fixed block, so the page and the markup change together.

Related Tools

Frequently Asked Questions

Which fields does Google require for LocalBusiness?
Only name and address. telephone, url, geo, openingHoursSpecification and priceRange are recommended.
How do I use a subtype like Restaurant or Dentist?
The generator outputs @type LocalBusiness. After copying, change it to the most specific schema.org subtype that fits, such as Bakery, Dentist or AutoRepair. The other properties stay the same.
Does LocalBusiness markup get me into the map pack?
Not by itself. The local pack is driven by your Google Business Profile, distance and prominence. The markup helps Google confirm your name, address, phone and hours, so keep them identical to your Business Profile.
Can I add review stars for my own business?
No. Google does not show stars for reviews a business publishes about itself, including reviews pulled in with a widget. aggregateRating on LocalBusiness is for sites that review other businesses.
Does this tool send my data to a server?
No. The form, the JSON-LD and the preview are all built in your browser.