Free Tool

Local business schema generator

Fill in your business details and get ready-to-paste LocalBusiness JSON-LD schema markup, the structured data Google and AI assistants use to understand who you are, where you are and when you're open. Test it in one click.

1 · Business

Pick the most specific match. If yours isn't listed, use the general option for your category.

2 · Location

Especially useful for service-area businesses that travel to customers.

3 · Opening hours
4 · Profiles
5 · FAQs (optional)

Only add FAQs that also appear, word for word, on the page.

JSON-LD


      

"Copy & test" copies your code and opens Google's Rich Results Test. Choose the Code tab and paste (Ctrl/Cmd + V).

    How to add LocalBusiness schema to your website

    1. Fill in your details. Use exactly the same name, address and phone number as your Google Business Profile.
    2. Copy the code and paste it into the <head> of your homepage (or the page for that location).
    3. Click Copy & test, paste into the Code tab of Google's Rich Results Test, and fix any errors.

    LocalBusiness schema example

    Here's what finished markup looks like for a plumber in Toronto. Yours will follow the same pattern with your own details and business type:

    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Plumber",
        "@id": "https://example.com/#business",
        "name": "Example Plumbing Co.",
        "url": "https://example.com/",
        "telephone": "+1-416-555-0123",
        "priceRange": "$$",
        "image": "https://example.com/team.jpg",
        "address": {
            "@type": "PostalAddress",
            "streetAddress": "123 Main St",
            "addressLocality": "Toronto",
            "addressRegion": "ON",
            "postalCode": "M5V 2T6",
            "addressCountry": "CA"
        },
        "geo": {
            "@type": "GeoCoordinates",
            "latitude": 43.6532,
            "longitude": -79.3832
        },
        "areaServed": [
            {
                "@type": "City",
                "name": "Toronto"
            },
            {
                "@type": "City",
                "name": "Mississauga"
            }
        ],
        "openingHoursSpecification": [
            {
                "@type": "OpeningHoursSpecification",
                "dayOfWeek": [
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday",
                    "Friday"
                ],
                "opens": "08:00",
                "closes": "18:00"
            }
        ],
        "sameAs": [
            "https://www.facebook.com/exampleplumbing"
        ]
    }
    </script>

    WordPress

    Most SEO plugins (Yoast, Rank Math, SEOPress) already output some schema. Use their local SEO settings where you can, or add this block with a header-scripts plugin such as WPCode (Code Snippets → Header & Footer → Header). Then check in the Rich Results Test that you don't have two conflicting LocalBusiness blocks.

    Shopify

    Go to Online Store → Themes → … → Edit code, open theme.liquid and paste the code just before </head>. Save, then test your homepage.

    Wix

    Go to Settings → Custom Code → Add Custom Code, paste the code, set it to load on your homepage (or all pages) in the Head, and apply. Wix also has a Structured Data Markup option under a page's SEO settings.

    Squarespace

    Go to Settings → Advanced → Code Injection and paste the code into the Header box. Code Injection needs a Business plan or higher.

    Webflow

    Open Project Settings → Custom Code and paste into the Head code area for site-wide schema, or use the page's settings for a single location page. Publish, then test.

    Service-area businesses

    If you travel to customers and don't want your home address public, tick the option to leave out your street address and list the towns and cities you serve instead.

    Keep it accurate

    Schema must describe what's actually on the page and in the real world. Wrong hours or an old phone number does more harm than no schema at all, so update it whenever your details change.

    FAQ

    Schema markup questions

    Can't find what you need? Ask us directly.

    What is local business schema?
    Schema markup is structured data, a small block of code, that tells search engines and AI assistants exactly what your business is: its name, type, address, phone number, hours and the areas you serve. It removes the guesswork, which helps with local search, map results and AI answers.
    Where do I put the schema code?
    Paste the whole <script type="application/ld+json"> block into the <head> of your homepage, or the page about that location. In WordPress you can use a header-scripts plugin or your SEO plugin's custom schema option. It doesn't change how the page looks.
    Does schema improve my rankings?
    Schema isn't a direct ranking factor, but it helps Google understand and trust your business details, can make you eligible for richer search results, and gives AI assistants accurate facts to quote. It works best when it matches your Google Business Profile exactly.
    Will FAQ schema show FAQs in Google results?
    Probably not. Since 2023 Google only shows FAQ rich results for a small number of authoritative government and health sites. FAQ markup is still valid, and still helps AI assistants and other search engines understand your answers, so it's worth including if the FAQs are visible on the page.
    How do I test my schema?
    Click "Copy & test" next to the output: it copies your code and opens Google's Rich Results Test, where you choose the Code tab and paste. You can also test the live page by URL, or use the Schema.org validator. Fix any errors, and check that the details match what's visible on your page.
    What is the difference between LocalBusiness and Organization schema?
    Organization describes any company or brand. LocalBusiness is a more specific type of Organization for businesses with a physical location or a service area, and it adds properties like opening hours, geo coordinates and price range. If customers visit you or you serve a local area, use LocalBusiness or one of its subtypes (Plumber, Dentist, Restaurant and so on).

    Want your local SEO done properly?

    We handle schema, technical SEO, Google Business Profile alignment and AI-search readiness as part of every site we build.

    Talk to us