LocalRanks Pro
Free tool

Free local business schema generator

How do I add local business schema to my website?

Fill in your business details below and copy the generated JSON-LD into the <head> of your homepage or contact page. It tells Google and AI assistants your exact name, address, phone and opening hours, matching your Google Business Profile.

Opening hours
Mondayto
Tuesdayto
Wednesdayto
Thursdayto
Fridayto
Saturdayto
Sunday

Your schema code

Add your business name, street address and city, phone number, website URL for complete local business markup.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Your business name",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ],
      "opens": "09:00",
      "closes": "17:00"
    }
  ]
}
</script>

Paste into the <head> of your homepage or contact page, then check it with Google's Rich Results Test.

Connected to Google? LocalRanks Pro generates this code from your verified profile and keeps it in step with your hours.

See Website Widget & SchemaFree profile audit

Frequently asked questions

Where do I put the schema code?

Paste it inside the <head> of your homepage or contact page. In WordPress use a header-code plugin, in Wix use Custom Code, in Squarespace use Code Injection.

Why is there no star rating in the code?

Google doesn't show review stars for reviews a business publishes about itself, and marking them up can be treated as spammy structured data. The generator leaves ratings out on purpose.

How do I check it works?

Paste your page address into Google's Rich Results Test (search.google.com/test/rich-results) after adding the code.

Should the details match my Google Business Profile?

Yes, exactly: same business name, address and phone number. Consistent details everywhere help Google trust your listing.

More free tools

Google Review Link & QR Generator
Find your business and get a direct Google review link plus a printable QR code in seconds. Free, no sign-up needed.
Business Description Checker
Check your Google Business Profile description against Google's rules and local SEO best practice. Get a score, fixes and an AI rewrite.
ChatGPT Visibility Checker
Ask ChatGPT 3 real local questions about your service and city, and see whether it recommends your business or your competitors. Free.
Review Reply Generator
Paste a Google review and get 3 ready-to-post replies (professional, friendly and brief) written by AI. Works for good and bad reviews. Free.
NAP Consistency Checker
Check that the business name, address and phone number on your website match your Google Business Profile, plus your LocalBusiness schema. Free.
GBP Category Finder
See which categories the top-ranking businesses for your service and city use on Google, and get suggested primary and secondary categories. Free.
Review Velocity Calculator
Compare your Google reviews with up to 3 competitors and see how many new reviews a week you need to pass them. Free.