Local Business Schema Generator

Fill in your business details and get ready-to-paste LocalBusiness structured data (JSON-LD), the format Google recommends.

Opening hours
to
to
to
to
to
Closed
Closed

Your structured data

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

Paste this into your site's <head> or footer. Then run Google's Rich Results Test on the page.

Why structured data helps local businesses

Search engines read your website like a stranger would: they guess which number is your phone, which text is your address and when you're open. Structured data removes the guessing. It labels each fact so Google, Bing and AI assistants can pick them up correctly and match your site to your Google Business Profile.

How to add it

  • Fill in the form. Use the exact name, address and phone that appear on your Google profile.
  • Copy the code and paste it into your homepage, or the page for that location if you have several.
  • Run the page through Google's Rich Results Test or the Schema Markup Validator to confirm it's valid.
  • Update it whenever your hours, phone or address change. Outdated schema is worse than none.

Common mistakes

  • Marking up information that isn't visible on the page. Google asks that structured data reflect what visitors can see.
  • Adding review stars to your own LocalBusiness markup. Google doesn't show self-serving review snippets for local businesses.
  • Using one block with several addresses. Each location should have its own page and its own markup.

Want to check what search engines see on your page now? Try the meta tag analyzer.

Questions

What is LocalBusiness schema?

It's structured data, a small block of code using the schema.org vocabulary, that tells search engines your business name, address, phone, hours and other facts in a format machines can read reliably.

Will schema make me rank higher?

Not by itself. Google uses structured data to understand your page and may show richer results, but it isn't a direct ranking boost. It helps search engines and AI tools get your details right.

Where do I put the code?

Inside the page's HTML, usually in the <head> or before </body> on your homepage or contact page. On WordPress you can use a header/footer code plugin; Wix and Squarespace have custom code settings.

Which business type should I choose?

Pick the most specific type that fits, such as Dentist or Plumber. If nothing fits, LocalBusiness is fine.

Do the details have to match my Google profile?

Yes. Use exactly the same name, address and phone number as your Google Business Profile and your website. Consistency is what builds trust.

More free tools

See all tools