🏪 Local Business Schema (JSON-LD) Generator
By ToolNimba SEO Team · Updated 2026-06-19
Use $ to $$$$ or a range like "$10 to $30".
Paste this block into the head section of the page that describes this location, then test it in Google's Rich Results Test.
This Local Business Schema Generator builds valid LocalBusiness JSON-LD structured data for your shop, office, restaurant or service. Fill in the business name, type, address, phone, website, opening hours, map coordinates and price range, and the tool writes a clean script block you can copy and paste into the page. Structured data helps search engines understand exactly what your business is and where it is, which can earn you richer listings in local search and maps. Everything runs in your browser, so nothing you type is sent anywhere.
What is the Local Business Schema Generator?
LocalBusiness is a Schema.org type that describes a physical, place-based business: its name, address, phone, hours, location and the kind of service it offers. When you embed this data as JSON-LD (a small block of structured JSON inside a script tag), you give Google, Bing and other engines a machine-readable summary of the same facts a customer would read on the page. That clarity helps your listing qualify for enhanced presentation in local results, the map pack and knowledge panels, and it keeps your details consistent across the web.
The data this tool produces follows the JSON-LD format that Google recommends over the older Microdata and RDFa styles. JSON-LD sits in one tidy block, usually in the head, and does not get tangled up with your visible HTML, so it is far easier to maintain. The generator picks a specific type where it can (Restaurant, CafeOrCoffeeShop, HairSalon, Dentist and so on) because a more specific type tells search engines more than the generic LocalBusiness, while still inheriting every LocalBusiness property.
The golden rule of structured data is that it must match what a human sees on the page. The schema is a summary, not a substitute: the name, address, phone number and hours in your markup should be identical to the ones displayed in your visible content and to your Google Business Profile and other citations. Mismatched or invented data can be ignored by search engines or, at worst, treated as a spam signal, so generate the block from your real, current details and update it whenever they change.
When to use it
- Adding LocalBusiness structured data to a small business homepage or a single-location contact page.
- Marking up opening hours so they can appear directly in search results and map listings.
- Giving search engines a consistent name, address and phone number (NAP) that matches your Google Business Profile.
- Helping a new storefront or service area page qualify for the local map pack and rich result features.
- Handing a developer or client a ready-made, valid JSON-LD block instead of hand-writing schema from scratch.
How to use the Local Business Schema Generator
- Enter your business name and choose the closest business type from the list.
- Fill in the phone, website, image and price range if you have them.
- Complete the address: street, city, region, postal code and the two-letter country code.
- Add latitude and longitude from Google Maps if you want a precise geo location.
- Tick each day you are open and set the opening and closing time for it.
- Copy the generated JSON-LD and paste it into the head section of the matching page, then validate it in Google’s Rich Results Test.
Formula & method
Worked examples
A coffee shop open Monday to Friday from 7:00 to 18:00, with an address and phone.
- Pick type CafeOrCoffeeShop and enter the name Bean Street Coffee.
- Fill the address: 123 Main St, Springfield, IL, 62704, country US.
- Add the phone +1-202-555-0143 and website URL.
- Tick Monday to Friday and set 07:00 to 18:00 on each.
Result: A LocalBusiness (CafeOrCoffeeShop) block with a PostalAddress, telephone, url and five OpeningHoursSpecification entries, one per weekday.
A solo dentist office that wants precise map coordinates added.
- Pick type Dentist and enter the practice name and phone.
- Complete the address fields for the office location.
- Right-click the exact spot in Google Maps to copy its latitude and longitude.
- Paste 39.7817 as latitude and -89.6501 as longitude.
Result: A Dentist block that includes a geo object with GeoCoordinates so the location is pinned exactly, not just inferred from the address.
Common Schema.org LocalBusiness subtypes and when to use each
| Subtype | Use it for |
|---|---|
| Restaurant | Sit-down or takeaway food service |
| CafeOrCoffeeShop | Cafes, coffee shops, tea rooms |
| Store | General retail shops |
| HairSalon / BeautySalon | Hair and beauty services |
| HealthClub | Gyms and fitness centers |
| Dentist / MedicalClinic | Dental and medical practices |
| Plumber / Electrician | Trade and home services |
| LocalBusiness | Any local business with no closer match |
Key LocalBusiness properties this tool can output
| Property | Meaning |
|---|---|
| name | The business name as customers know it |
| address | A PostalAddress with street, city, region, postal code, country |
| telephone | Public contact number in international format |
| url | The canonical website URL for the business |
| openingHoursSpecification | One entry per open day with opens and closes times |
| geo | GeoCoordinates (latitude and longitude) for the exact spot |
| priceRange | A short price indicator such as $$ or "$10 to $30" |
Common mistakes to avoid
- Schema that does not match the visible page. The name, address, phone and hours in your JSON-LD must be identical to what appears in the visible content. Adding details that are not on the page, or that differ from it, can cause search engines to ignore the markup or flag it.
- Using the generic type when a specific one fits. If you run a restaurant, use Restaurant rather than the plain LocalBusiness type. A more specific type tells search engines more about you while still inheriting every LocalBusiness property.
- Writing times in the wrong format. Opening and closing times use 24-hour HH:MM, so 6 pm is 18:00. The tool handles this for you, but if you edit the block by hand, keep that format or the hours may not be read.
- Putting the same block on every page. Place LocalBusiness markup on the page that actually represents the location, usually the homepage or a dedicated contact or location page, not on every single page of the site.
- Skipping validation. Always paste the block into Google’s Rich Results Test or the Schema Markup Validator before going live. A single typo in a property name can silently invalidate the whole block.
Glossary
- Schema.org
- A shared vocabulary of types and properties (like LocalBusiness) that search engines use to understand page content.
- JSON-LD
- JavaScript Object Notation for Linked Data, the structured-data format Google recommends, placed in a script tag.
- LocalBusiness
- The Schema.org type for a place-based business, with subtypes such as Restaurant, Store and Dentist.
- PostalAddress
- The structured address object holding street, locality, region, postal code and country.
- OpeningHoursSpecification
- A structured entry stating the days a business is open and its opening and closing times.
- GeoCoordinates
- A latitude and longitude pair that pins the exact location of the business on a map.
- NAP
- Name, Address and Phone number, the core details that should stay consistent everywhere your business is listed.
Frequently asked questions
What is LocalBusiness schema and why does it matter?
LocalBusiness schema is structured data that describes a physical business: its name, address, phone, hours and location. Adding it helps search engines understand your business and can make your listing eligible for richer local search and map features. It supports, but does not replace, a complete Google Business Profile.
Where do I put the generated JSON-LD code?
Paste the whole script block into the head section of the page that describes the location, usually your homepage or a contact or location page. It can also sit in the body. Use it on the one page that represents the business, not on every page of the site.
Which business type should I choose?
Pick the most specific type that fits, such as Restaurant, CafeOrCoffeeShop, HairSalon or Dentist. A specific subtype tells search engines more than the generic LocalBusiness while still inheriting all of its properties. If nothing fits closely, use LocalBusiness.
Do I need the latitude and longitude?
No, geo coordinates are optional. The address alone is usually enough, but adding latitude and longitude pins your exact spot, which is helpful for businesses set back from the road or inside a larger building. Get them by right-clicking your location in Google Maps.
Does adding this schema guarantee a rich result?
No. Valid structured data makes a page eligible for enhanced results, but search engines decide what to show based on many factors. Accurate, consistent data that matches your visible page and your Google Business Profile gives you the best chance.
Is my information sent anywhere?
No. The generator runs entirely in your browser using plain JavaScript. Nothing you type is uploaded or stored. You can confirm this by disconnecting from the internet: the tool keeps working and still produces the markup.