100% freeNo signupChecks Google's required fields

Local Business Schema Generator (LocalBusiness JSON-LD)

Give Google your address, opening hours and phone in the form it reads best. Pick your kind of business, let us fill the fields from your page, and copy JSON-LD that passes Google's required fields for local businesses.

Optional. We read the page once to fill the fields and store nothing. You can also fill everything by hand.

Schema type

Local Business: Your address, hours and phone in local results and on Maps.

Opening hours: one line per rule, for example “Mo-Fr 09:00-18:00” or “Sa 10:00-14:00”. We turn them into the format Google reads.

Recommended
Required

Google requires the business name.

Required

Google requires the address for a local business.

Required
Recommended
Recommended
Required
Recommended

Shown in the local result, and people call from it.

Recommended

The page for this location, or your homepage.

Recommended

Google recommends a photo of the business.

Recommended

Lets Google show whether you are open now.

Recommended

A rough price level, like $$ or $10-30.

Recommended

Google asks for at least 5 decimal places.

Recommended

Copy it from Google Maps together with the latitude.

For example WebSite next to Organization on the homepage. The blocks are linked, so your company appears once.

Your JSON-LD

Fill the fields or read your page, and the code builds as you type.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness"
}
</script>

The test buttons copy the code first. In the tab that opens, choose “Code” and paste it.

How to make local business schema here

  1. Pick the most specific kind. Dentist, Plumber, Restaurant, Law firm and more. Google asks for the most specific type that fits, and the general Local business only when nothing does.
  2. Fill from your page. We read the business name, phone, address, map coordinates, photo and profile links your page already shows. Write the opening hours one rule per line, like Mo-Fr 09:00-18:00.
  3. Copy, test, paste. Copy the code, test it in the Rich Results Test, and put it on the page for that location.

What local business schema does in Google

Google requires two things for a local business: its name and its address. With the phone, hours, a photo and the map pin added, the markup states the facts Google shows about you in search and on Maps, in a form it does not have to guess from the page. Source: Google's local business guide.

Be clear about what it does not do. The local pack and the map listing come from your Google Business Profile, not from markup. The markup on your site backs up the same facts, so keep the name, address and phone exactly the same in both places.

LocalBusiness fields: required and recommended

The same fields the generator above marks as you type. The optional ones open under “Show optional fields” in the form.

FieldGoogleWhy it matters
Kind of businessRecommendedThe most specific type that fits helps Google match you to the right searches.
Business nameRequiredGoogle requires the business name.
Street addressRequiredGoogle requires the address for a local business.
CityRequiredPart of the full address.
State or regionRecommendedPart of the full address.
Postal codeRecommendedPart of the full address.
Country (2-letter code)RequiredPart of the full address.
PhoneRecommendedShown in the local result, and people call from it.
Website URLRecommendedThe page for this location, or your homepage.
Photo URLRecommendedGoogle recommends a photo of the business.
Opening hours (one rule per line)RecommendedLets Google show whether you are open now.
Price rangeRecommendedA rough price level, like $$ or $10-30.
LatitudeRecommendedGoogle asks for at least 5 decimal places.
LongitudeRecommendedCopy it from Google Maps together with the latitude.

Local business schema example (JSON-LD)

Written by the generator above from sample values for a made-up business. Paste it inside a script tag of type application/ld+json, with your own details in place of the sample ones.

{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Acme Plumbing",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main St",
    "addressLocality": "Austin",
    "addressRegion": "TX",
    "postalCode": "78701",
    "addressCountry": "US"
  },
  "telephone": "+1-512-555-0100",
  "url": "https://example.com/",
  "image": "https://example.com/storefront.jpg",
  "priceRange": "$$",
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 30.26715,
    "longitude": -97.74306
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday"
      ],
      "opens": "08:00",
      "closes": "18:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Saturday"
      ],
      "opens": "09:00",
      "closes": "13:00"
    }
  ]
}

The fields that matter beyond the required ones

  • Business kind. The most specific schema.org type: Dentist rather than a general medical business, Plumber rather than a general home services one.
  • Phone with the country code, the number people actually call.
  • Opening hours for every day you open. Leave closed days out. For a business open around the clock, write Mo-Su 00:00-23:59.
  • Map coordinates with at least five decimal places. Right-click your pin in Google Maps and the first line of the menu is the pair to copy.
  • Photo of the storefront or the team at work, at a full https:// address.
  • Price range in a short form like $$ or $10-30.

One business, several locations

Give each location its own page with its own address, phone and hours, and its own LocalBusiness block on that page. One block listing five addresses on the homepage tells Google less than five clean pages do. The company as a whole goes into one Organization block on the homepage, built with the organization schema generator.

LocalBusiness or Organization?

Use LocalBusiness when customers come to you, or you go to them in a set area: a shop, a clinic, a restaurant, a plumber. Use Organization for a company that works online or nationally with no place customers visit. LocalBusiness is a more specific kind of Organization, so a business with one location needs only the LocalBusiness block.

Mistakes that cost the rich result

  • An address in the code that differs from the one on your Google Business Profile, even by a suite number.
  • Opening hours written as free text, such as “weekdays 9 to 5”. Google reads day and time fields.
  • Coordinates cut to two or three decimals, which can point to the wrong street.
  • Star ratings for the business taken from your own testimonials. Google gives no stars for reviews a business controls about itself.
  • The general LocalBusiness type when a specific one, like Dentist or Plumber, exists.

Questions about local business schema

What is local business schema?

LocalBusiness schema is structured data that states a business's name, address, phone, opening hours and location in schema.org terms, so search engines can read them as facts. It is a kind of Organization schema for businesses with a place customers visit or a set service area.

What fields are required for LocalBusiness schema?

Google requires the business name and the address. It recommends the phone, opening hours, map coordinates, a photo, the website URL, the price range and, for restaurants, the menu and cuisine.

Does local business schema help with local SEO?

It helps Google confirm your details, and most local SEO audits check for it. It does not put you in the map pack by itself. That listing depends on your Google Business Profile, its reviews and how close you are to the person searching.

Can I add star ratings to my local business schema?

Not for reviews you collect and show yourself. Since 2019 Google gives no review stars to Local Business and Organization pages for reviews the business controls. The stars from your Google reviews appear on your Business Profile, not through your site's markup.

Where do I put LocalBusiness schema?

On the page for that location: the homepage for a business with one location, each location page for a chain. It can sit in the head or the body of the page.

Other schema generators

One page fixed. How many are still missing markup?

The free SeoVision audit checks the structured data on your homepage, products and articles, and SeoVision can add the missing markup for you.

Get your free audit