Get the MarketPup appDownload on the App StoreGet it on Google Play
MarketPup Free Mini Sniff

Free tool

LocalBusiness schema generator

Type your details and get LocalBusiness structured data as JSON-LD to paste into your site, following schema.org and Google's LocalBusiness guide.

Free, no sign-up. Runs in your browser. Nothing you type is sent anywhere.

Google asks for the most specific type that fits. If none fits, keep LocalBusiness.
With country and area code.
A two-letter code like US works.
Like $$, or a range.
Opening hours (optional)
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Leave a day empty if you're closed. Days with the same hours are grouped.
One per line: your Google Business Profile, Facebook, Instagram, Yelp and so on. Only https:// links are kept.

Your JSON-LD

    Paste the code into the head or body of the page about this location, publish it, then test that page's address in Google's Rich Results Test.

    What this tool does and doesn't do

    It does:

    • Builds LocalBusiness structured data as JSON-LD in your browser, from the details you type.
    • Follows Google's LocalBusiness guide: name and address are its required properties, and it lists hours, phone, website, map position and price range as recommended.
    • Flags what Google's guide asks for: a phone number with its country and area code, latitude and longitude to at least 5 decimal places, and a price range shorter than 100 characters.
    • Links to Google's Rich Results Test so you can check the page once the code is on it.

    It doesn't:

    • Add the code to your site. You paste it in, or ask whoever runs your site.
    • Check that your details are true, or that they match your Google Business Profile. Keep them the same everywhere.
    • Make review or rating markup. Google's guide says those are only for sites that collect reviews of other local businesses.
    • Decide whether Google shows anything special for your business. Only Google decides that.
    • Send what you type anywhere. It all stays in your browser.

    How to use it

    1. Pick the most specific type that fits. Schema.org lists more specific types under LocalBusiness, such as Store and its PetStore, HealthAndBeautyBusiness and its HairSalon, and FoodEstablishment and its Restaurant.
    2. Type your details exactly as they appear on your Google Business Profile and your site.
    3. Copy the code into the page about this location. One location, one block of code.
    4. Publish, then run the page through Google's Rich Results Test. Google's guide says to fix any critical errors it finds.

    Sources

    Each figure and rule above comes from the official page listed here, with the day we read it. These pages change, so check them for the latest.

    1. Google's guide to LocalBusiness structured data (Google Search Central), read on . It says: The precision must be at least 5 decimal places. This field must be shorter than 100 characters. Validate your code using the Rich Results Test and fix any critical errors.
    2. LocalBusiness (Schema.org), read on . It says: A particular physical business or branch of an organization.
    3. Store (Schema.org), read on . It says: A retail good store.
    4. HealthAndBeautyBusiness (Schema.org), read on . It says: Health and beauty.
    5. FoodEstablishment (Schema.org), read on . It says: A food-related business.

    Questions

    Will this get me a rich result in Google?

    Nobody can promise that. Google decides what it shows. The code helps Google read your details, and the Rich Results Test shows whether it can.

    Where do I put the code?

    On the page about this location, often your home or contact page. Paste the whole block, including the script lines, then publish.

    More free tools

    • Marketing calculators: Regular-customer value, reviews value, pet business return, ROAS and studio margin. Every number comes from you, and every formula is shown.
    • Cost vs hiring calculator: Put a month of one of our plans next to a marketing hire, using BLS pay data or your own salary, and a freelancer at the rate you type.
    • Easy-to-find self-score: Ten yes or no questions about your listings, site and reviews. A score out of 100 from your own answers, with a next step for each gap.
    • See all free tools