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
- Fill in the form. Fix anything marked in red; amber notes are recommendations.
- Copy the code and paste it into the HTML of the page for this location, or your site’s custom code field.
- Make sure the same name, address, phone and hours appear on the page itself and match your Google Business Profile.
- Publish, then test the URL in Google’s Rich Results Test.
- 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.