Local Business Schema Generator

Business type—
Properties included—
Code length (characters)—

How Local Business Schema Generator is calculated: Local business = type + name + address + phone + hours, written as JSON-LD

What is a local business schema generator?

A local business schema generator writes the block for a shop, cafe, clinic, gym, or hotel: a small piece of JSON-LD that tells a search engine the business's name, what kind of place it is, where it sits, how to reach it, when it opens, what it costs, and how customers rated it. The block uses a business type from schema.org — Restaurant, CafeOrCoffeeShop, Store, MedicalClinic, ExerciseGym, or Hotel — and it is the schema that powers local search results.

Local search is where this block earns its keep. A person searching for a cafe near them sees a list of places with names, ratings, hours, and distances, and the places that state those facts clearly win the visit. A business with no schema can still appear, but it appears with less detail, and less detail loses to more detail when a hungry person is choosing where to eat.

This generator builds the block from ten fields. Type the business name, pick its type, write a short description, add the street address, phone, website, price range, and opening hours, then add the average rating and the review count. Press the button and the code appears below, ready to copy. Paste it into the head of the business's home page, and the search engine will read it on its next visit.

How local business schema works

The block is a JSON-LD object whose type is the business type you picked — Restaurant, Hotel, Store, and so on. After the two lines every schema carries — @context and @type — come the business's own properties: name, description, url, priceRange, and openingHours. The address is written as a PostalAddress object holding the street address, and the phone as a telephone number. The rating sits in aggregateRating, an AggregateRating object with a ratingValue and a reviewCount.

The rating is only written when the review count is above zero. A business with no reviews has no aggregate rating, and that is correct: a rating of nothing is false data, while a missing rating is just a business nobody has reviewed yet. The block never writes a rating it cannot back up, and it never invents a review count.

Every field you leave blank is left out of the output. A business with no website has no url property, and one with no opening hours has no openingHours property. The block is valid with the name and address alone and valid with all ten fields filled in, because it only ever writes what you typed. A JSON validator can check the finished block if you want a second opinion before you paste it in.

Address, phone, hours, and price, explained

The address is the fact local search runs on. Write the full street address — street, area, city, and PIN code — exactly as a customer would type it into a map. 12 MG Road, New Delhi 110001 is the default here, and it is a good model: street first, then area, then city, then PIN. A vague address, or one missing the PIN code, leaves the search engine guessing where the business sits, and a business it cannot place does not appear in near-me results.

The phone should be the number customers actually call, with the country code: +91 98765 43210. The opening hours use the short form search engines expect — Mo-Sa 09:00-21:00 means Monday to Saturday, nine in the morning to nine at night. Two letters for the days, a hyphen for the range, and 24-hour times. A hotel that never closes writes Mo-Su 00:00-23:59.

The price range is one, two, or three rupee signs: one for budget, two for mid-range, three for premium. It is a rough guide, not a menu, and it helps a searcher decide before they visit. A budget cafe marked premium loses customers who could afford it, and a premium restaurant marked budget gains customers who leave angry. Set it to match the real prices. A meta tag generator writes the title and description that sit above the business in the results.

A worked example: schema for a cafe

Take the defaults on this page. The business is Example Cafe, a Restaurant. The description is one sentence about breakfast, coffee, and lunch. The address is 12 MG Road, New Delhi 110001, the phone is +91 98765 43210, the website is https://example.com/cafe, the price range is two rupee signs, the hours are Mo-Sa 09:00-21:00, and the rating is 4.5 from 120 reviews. Press Generate Business Schema and the type reads Restaurant, the block has 10 properties in total, and the code is 560 characters long. The address appears as a PostalAddress, and the rating as an AggregateRating with ratingValue 4.5 and reviewCount 120.

Now change the name to Example Hotel, the type to Hotel, the price range to three rupee signs, the hours to Mo-Su 00:00-23:59, the rating to 4.0, and the review count to 0. The type reads Hotel, the block has 9 properties, and the code is 450 characters long. The aggregateRating disappears from the block entirely, because a review count of zero means there is no rating to state.

That disappearing rating is the behaviour to trust. A generator that wrote a rating of 4.0 with zero reviews would hand the search engine a fact no page backs up. This one writes the rating only when reviews exist. Paste the block into the head of the business's home page, save, and check the address, phone, and hours against the page: all three must match what a customer sees. A WHOIS checker can confirm the website address belongs to the business while you are there.

Why local business schema matters

Local business schema is how a small business competes with a chain. A person searching for a cafe near them sees a list of places, and the list shows the facts the schema provides: the rating, the hours, the price range, the distance. A cafe that states those facts wins the visit over a cafe that shows only a name, because the searcher can decide without opening a single page.

It also matters for the map. The address in the schema is how the search engine places the business on the map and in near-me results. A business with a clear, complete address appears in the right place; a business with a vague address appears in the wrong place or not at all. The address is the most valuable line in the block, and it deserves the most care.

The same block keeps the business honest. Hours in the schema that match the hours on the door build trust; hours that differ send a customer to a closed shop. Keeping the two in step is a habit worth building: change the hours on the door, change the hours in the schema, on the same day. A sitemap generator lists the pages the search engine should visit, starting with the home page that carries this block.

Local business schema generator vs writing the block by hand

Writing a business block by hand means typing the same nested shape for the address and the rating: a PostalAddress with a street address, and an AggregateRating with a value and a count, each with its own braces and commas. One missing brace breaks the whole block, and the error is invisible until you test the page — a search engine simply ignores broken schema and shows the plain result.

A generator removes those errors. It builds the nesting from your fields, so the address is always a PostalAddress and the rating is always an AggregateRating, with the braces in the right places. It writes the hours and the price range exactly as you typed them, and it leaves the rating out when the review count is zero, so a business with no reviews still produces a valid block.

Hand-writing still has a place on a site that builds its business pages from a database, where the block is written once in a template. But for a single business, a small shop, or a quick check of what the block should look like, the generator is faster and safer. The same address can be checked on a map before you publish, to make sure the PIN code puts the pin in the right place.

Common mistakes with local business schema

The most common mistake is an address in the schema that does not match the real address. The block says one street, the shop sits on another, and customers who follow the map arrive at the wrong place. Check the address against the signboard and the map listing, and keep all three the same. The address is the line that sends people to your door.

The second mistake is stale hours. A cafe that changed its closing time last month should not still claim the old hours in its schema. Update the hours when they change, not when you remember. A customer who arrives at a closed shop does not come back, and a search engine that shows wrong hours stops showing the business.

The third mistake is a rating with no reviews on the page. A rating of 4.5 from 120 reviews must have 120 reviews a reader can find. A rating invented for the schema is false data, and search engines treat false ratings harshly. And the fourth mistake is using the wrong type — a cafe marked as a Hotel, or a clinic marked as a Store. Pick the type that matches the business, in plain words.

How to use this local business schema generator

First, type the business name exactly as it appears on the signboard. Pick the business type from the dropdown — Restaurant, cafe, store, clinic, gym, or hotel. Write a short description in one sentence, then add the full street address with area, city, and PIN code.

Add the phone number with the country code, the website address, the price range, and the opening hours in the short form — Mo-Sa 09:00-21:00. Add the average rating from 0 to 5 and the number of reviews behind it. If the business has no reviews yet, set the review count to 0 and the rating will be left out of the block. Press Generate Business Schema.

The block appears in the box below, and the results box shows the business type, how many properties were included, and how long the code is. Check the address, phone, and hours against the real business, then copy the whole block and paste it into the head section of the business's home page, before the closing head tag. Save the page and test it with the search engine's rich results test. If the page also needs its title and description tags, a meta tag generator writes those.

Frequently Asked Questions

Local business schema is a block of JSON-LD code that describes a shop, cafe, clinic, gym, or hotel: its name, type, description, street address, phone, website, price range, opening hours, and average rating. Search engines read the block to show the business in local results and on the map, with its rating and hours visible.

The type that matches the business in plain words: Restaurant for a restaurant, CafeOrCoffeeShop for a cafe, Store for a shop, MedicalClinic for a clinic, ExerciseGym for a gym, and Hotel for a hotel. The type decides which extras the search engine can show, so a cafe marked as a Hotel gets the wrong treatment. Pick the closest match and leave it at that.

Use the short form search engines expect: two-letter day codes, a hyphen for the range, and 24-hour times. Mo-Sa 09:00-21:00 means Monday to Saturday, nine in the morning to nine at night. A business that never closes writes Mo-Su 00:00-23:59. Keep the hours in the schema the same as the hours on the door.

One, two, or three rupee signs: one for budget, two for mid-range, three for premium. It is a rough guide, not a menu, and it helps a searcher decide before they visit. Set it to match the real prices: a budget cafe marked premium loses customers who could afford it, and a premium restaurant marked budget gains customers who leave angry.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.