Free · Runs in your browser · No login

Local Business Schema Generator

Create LocalBusiness JSON-LD for your website. Fill in the form, check the result against the properties Google requires, and copy the code into your page.

LocalBusiness Schema Generator

Pick the most specific type that fits. Use LocalBusiness if none does.

Business
Address (required)
Map position
Images and profiles
Opening hours
to

Days you leave out are treated as closed. If you close after midnight, enter the closing time on the same row, for example 18:00 to 03:00.

Your JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday"
      ],
      "opens": "09:00",
      "closes": "18:00"
    }
  ]
}
</script>

Name is required by Google.

Address is required by Google. Fill in at least the street address and city.

Paste the code into the HTML of the page about this location, then check it with Google’s test. Everything runs in your browser; nothing you type is sent anywhere.

Open Google’s Rich Results Test

What LocalBusiness schema does

LocalBusiness is a type in the schema.org vocabulary for a business with a physical location or service area. Written as JSON-LD, a short block of code in your page, it states your name, address, phone, hours and links in a form search engines can read without guessing from the page layout.

Google can use this markup to understand your business details, and its LocalBusiness structured data documentation explains what it supports. Markup describes facts already on the page. It is not a ranking switch, and Google does not promise a rich result for any page.

The properties this generator covers

name
Required. The business name, written the same way as on your Google Business Profile and signage.
address
Required. A PostalAddress with as many parts as apply: street, city, region, postal code and country. Google’s examples use a two-letter country code.
geo
Recommended. Latitude and longitude, which Google asks to have at least 5 decimal places.
openingHoursSpecification
Recommended. Days and times you are open. Google’s convention for 24-hour opening is 00:00 to 23:59, and hours past midnight go in a single entry, such as 18:00 to 03:00.
telephone
Recommended. Your main number, with country and area code.
url
Recommended. The full, working URL of the page for this specific location.
priceRange
Recommended. Such as ₹₹ or $10-20. Google ignores values of 100 characters or more.
image and sameAs
Optional here. Photo URLs of the business, and links to your official profiles elsewhere.

For @type, Google asks you to use the most specific LocalBusiness subtype possible, such as Dentist, Plumber or Restaurant, rather than the general LocalBusiness. The list in the generator holds common subtypes from schema.org.

Why there are no review or rating fields

It is common to see aggregateRating or review added to a business’s own markup. Google’s documentation recommends those properties on LocalBusiness only for sites that collect reviews about other local businesses, such as a directory.

Google’s review snippet guidelines go further. When the business being reviewed controls the reviews about itself, its pages with LocalBusiness or Organization markup are not eligible for the star review feature. Google’s example is reviews of a business placed on that business’s own website, including through an embedded third-party review widget. Adding that markup to your own site will not earn stars.

Your reviews still count where they live. Google shows your rating and reviews on your Business Profile, so the effort is better spent collecting genuine reviews there.

How to add and test the code

  1. Fill in the form. Fix anything marked in red; amber notes are recommendations.
  2. Copy the code and paste it into the HTML of the page for this location, or your site’s custom code field.
  3. Make sure the same name, address, phone and hours appear on the page itself and match your Google Business Profile.
  4. Publish, then test the URL in Google’s Rich Results Test.
  5. Update the markup whenever your hours, phone or address change, including holiday closures.

Running more than one location? Give each location its own page with its own block of markup, and use that page’s URL in the url field.

Your Google Business Profile matters more

Schema helps Google read your website, but customers judge you on your profile: reviews, replies, photos and posts. Check it with the GBP profile strength checker, find your listing’s ID with the Google Place ID finder, and start collecting reviews with the Google review QR code generator. GMBQrcode brings review collection, AI replies and scheduled posts together in one account.

LocalBusiness schema FAQ

What is LocalBusiness schema?

It is structured data, written in the schema.org vocabulary, that describes a physical business: its name, address, phone, hours and more. Search engines read it from your page’s code to understand the business behind the website.

Which LocalBusiness properties does Google require?

Google’s LocalBusiness documentation lists name and address as required. Geo coordinates, opening hours, telephone, URL and price range are among the recommended properties.

Where do I put the JSON-LD code?

Paste the whole script tag into the HTML of the page about the business, usually the home page for a single location or each location’s own page. It can go in the head or the body. Most website builders and WordPress SEO plugins have a field for custom code.

Why can’t I add star ratings or reviews?

Google’s review snippet guidelines say pages are not eligible for star review results when the business being reviewed controls the reviews about itself, which covers a business marking up its own reviews, even through an embedded widget. The generator leaves those fields out so your markup stays within the guidelines.

Will this schema get my business into the map pack?

No markup guarantees a ranking or a rich result. Local results in Google Maps are based mainly on your Google Business Profile. Structured data helps Google read the facts on your website and keep them consistent with your profile.

Is my data sent anywhere?

No. The generator runs entirely in your browser. Nothing you type is sent to our server.

How do I test the markup?

Publish the page, then enter its URL in Google’s Rich Results Test, or paste the code there directly. Fix any errors it reports, and after that watch the enhancements reports in Google Search Console.