Local Business Schema Generator
Fill in your business details and get LocalBusiness JSON-LD code to paste into your website, checked live against Google's required and recommended properties. It takes about five minutes.
- Free, no sign-up
- Runs in your browser
- Remembers your entries on this device
- Updated November 19, 2026
Welcome back. Your last entries are restored, so you can pick up where you left off.
- 2properties Google requires: name and address
- 5decimal places minimum for latitude and longitude
- 100characters: keep priceRange under this or Google drops it
- 30more specific types under LocalBusiness on schema.org
Build Your Schema
Fill in what you have. The code and the checks update as you type, and your entries stay on this device.
Start with your business name and address. The code appears here as you type.
Red chips are required by Google. Amber chips are recommended or need a fix. Green chips pass.

What Schema Does And Does Not Do
The code this tool writes is a set of labels. Like tags on drawers, it tells search engines which text is your name, which is your phone number and which are your hours.
It does not promise rankings or special search features. Google's guidelines say, "Using structured data enables a feature to be present, it does not guarantee that it will be present."
- It does: label your details in a format Google documents and reads.
- It does not: replace a complete Google Business Profile.
- It does not: fix wrong details. Wrong data in, wrong data out.
Required And Recommended Properties
The chips above follow this table, taken from Google's LocalBusiness structured data documentation.
| Property | Google's status | What to enter |
|---|---|---|
| name | Required | The name of the business. |
| address | Required | As many address parts as possible: street, city, region, postal code, country. |
| telephone | Recommended | The primary customer number, with country code and area code. |
| url | Recommended | The fully qualified URL of this location's page. It has to work. |
| geo | Recommended | Latitude and longitude with at least 5 decimal places. |
| openingHoursSpecification | Recommended | Days with opening and closing times. |
| priceRange | Recommended | A range such as "$10-15" or signs such as "$$$", under 100 characters. |
| menu, servesCuisine | Recommended | Food businesses only. Add them by hand if they apply. |
Tip: Schema.org deprecated the general ProfessionalService type for local businesses. Pick a specific type, such as Attorney or AccountingService, instead.
Where To Paste It And How To Test
Once the chips turn green, five steps take the code from this page to your live site.
- Copy or download the codeUse Copy Code, or download schema.html and open it in a text editor.
- Paste it on the location's pageUsually the homepage or contact page. Google reads JSON-LD in a script tag in the page's head or body. In WordPress and similar builders, use a header-code setting or a custom HTML block.
- Test it before publishingPaste the code into Google's Rich Results Test and the Schema Markup Validator. Fix any errors they report.
- Publish and re-test the live URLRun the live page through the Rich Results Test, then the URL Inspection tool in Search Console.
- Set a reminderAdd the quarterly reminder below, and update the code whenever your hours or phone number change.

Keep It Matching Your Google Listing
Your schema is one block in a set. It fits only when it matches the other blocks: your visible page, your Google Business Profile and your other listings.
Google's structured data guidelines say your markup "must be a true representation of the page content." So show the same name, address, phone and hours on the page itself.
- Same name as your storefront and Business Profile.
- Same phone number, the one under your direct control.
- Same hours, updated on the same day as your profile.
The free NAP Consistency Checker compares your details across listings.
Three Common Mistakes
The chips catch format problems. These three need a human eye.
Stale Hours
Holiday or seasonal hours change on your profile but not in the code. Update both on the same day.
Hidden Content
Marking up an address or reviews that visitors cannot see on the page. Google asks you not to mark up hidden content.
One Block For Many Locations
Google asks you to define each location as its own LocalBusiness. Give each location its own page and its own block.
Make It A Habit
Hours, phone numbers and service areas change. A quarterly review keeps your markup telling the same story as your Google Business Profile and your contact page.
Bookmark this page with Ctrl + D (⌘ + D on a Mac), or save it to My Tools. Your entries wait for you on this device.
Questions People Ask
What is LocalBusiness schema?
Does schema markup improve my rankings?
Where do I paste the code?
Which business type do I pick?
I am a service area business. Do I include my street address?
How do I test the code?
More Free Tools
Preview
Google Search Snippet Preview
Type a title and description and see how they fit in Google on desktop and phone.
Planner
Service Area Page Planner
List your services and towns, get a page plan that avoids thin copy-and-paste pages.
Hiring Checklist
SEO Company Checklist
What an SEO provider delivers, from non-negotiable to nice-to-have. Score and compare vendors.
Related Services And Guides
How This Tool Works
The generator writes one JSON-LD object with @context https://schema.org and the type you pick. Blank fields are left out. The address is a PostalAddress; the country is upper-cased. Latitude and longitude become a GeoCoordinates object only when both are numbers. Days with the same hours share one OpeningHoursSpecification. A closed day is written as opens 00:00 and closes 00:00, and a 24-hour day as opens 00:00 and closes 23:59, as Google's LocalBusiness documentation describes. Hours that close after midnight stay in one specification. Each line in the profile box becomes a sameAs URL, and each line in the areas box becomes a Place in areaServed. With the service area option on, the street line is left out.
The checks follow Google's LocalBusiness structured data documentation. Red chips are the required properties (name, address). Amber chips are recommended properties that are missing or malformed: telephone without a + country code, url, image, logo or sameAs without https://, geo with fewer than 5 decimal places, missing openingHoursSpecification, and priceRange of 100 characters or more. Passing these checks means the code is well formed, not that Google shows any feature.
Sources
- Google Search Central: Local business (LocalBusiness) structured data
- Google Search Central: General structured data guidelines
- Google Search Central: Introduction to structured data markup
- Schema.org: LocalBusiness and its more specific types
- Schema.org: ProfessionalService (deprecation note)
- Google Business Profile Help: Guidelines for representing your business on Google
- ITU-T Recommendation E.164: The international public telecommunication numbering plan
- Google Rich Results Test
- Schema Markup Validator
Everything you type stays in your browser. Nothing is sent to Sherman Hu SEO or anyone else. Saved entries live only on this device until you clear them.
General information, checked against the sources above on November 19, 2026. Google and other platforms change their rules; their current help pages win.
Want Sherman Hu to do this for your business?
Schedule My Free SEO Call