Free tool

LocalBusiness schema generator

Fill in your business details and get the code that tells Google your name, address, phone and hours. It checks what you type against Google's own list of required and recommended fields, right in your browser. The generator is free and nothing you type is sent anywhere.

1Your business

Google asks for the country code and area code. Type it any way you like and the code gets the full form, like +16305550142.

2Where you are

In Google Maps on a computer, right-click your building. The latitude and longitude show at the top of the menu, and a click copies them (Google's steps). Paste them here.

3Opening hours

Leave a day empty to leave it out. Tick the box for days you are closed. A closing time earlier than the opening time means you close after midnight.

4Logo, photo and profiles

Optional. Use full links that open on their own, starting with https://

What to do with the code

  1. Copy it and add it to the page that shows the same details, usually your home page or your contact page.
  2. Open Google's Rich Results Test, choose Code, paste it and run the test. Fix anything it marks as an error.
  3. Publish the page. Google says it may take several days after publishing for Google to find and crawl it.
  4. When your hours or phone number change, change them here too, on the same day as your Google Business Profile.

What it can and can't do

The code states your name, address, phone and hours in a format Google reads directly. Google's LocalBusiness documentation lists two required fields, the name and the address. Among the recommended ones are the phone number, the page address, your hours and your map coordinates.

It doesn't guarantee anything. Google's structured data guidelines say it may not show up in search results even when it is correct, and that you shouldn't mark up content that readers of the page can't see. So every fact here has to match what's written on the page.

It doesn't replace your Google Business Profile either. The profile is what you manage for Google Maps, and it needs its own care.

More on this, with examples by kind of business, in our guide: LocalBusiness schema markup: what it can and can't do.

Questions owners ask

Where do I put this code?

On the page that shows the same details, usually your home page or your contact page. Many site builders have a box for custom code in the page header, and WordPress has plugins for structured data. If someone else runs your site, send them the code and ask them to add it.

Will this move my business up on Google?

Google doesn't describe it as a ranking boost. It helps Google read your details and can make the page eligible for some search features, but Google's general rules for structured data say it does not guarantee your structured data will show up in search results.

Why can't I add my star rating?

Google's rules for review stars say that when a business controls the reviews about itself, its LocalBusiness markup isn't eligible for review stars. Quote your Google reviews on the page as text and link to your profile instead.

I work from home and keep my address private. What do I put?

Pick service-area business. The tool leaves the street out and keeps the city, state and ZIP you show on your site, plus the towns you serve. Google's guidelines say markup has to describe what's visible on the page, so don't put an address in the code that you left off the site.

Which business type should I pick?

The most specific one that fits, which is what Google asks for. If there is no exact type for your trade, such as pet grooming or boarding, LocalBusiness is the right choice.

Want this done for you?

We build the first version of your website free, in 2 days. You click around it, then decide. If it is not for you, you owe nothing.