WordPress
Paste it into a header-code plugin, or your theme's "header scripts" setting. If an SEO plugin already adds LocalBusiness schema, use one or the other, not both.
Free tool
Structured data tells search engines and AI assistants exactly what your business is, where it is and when it is open. Fill in your details and copy the code onto your website.
Still needed: business name, town or city, country.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"opens": "08:00",
"closes": "17:00"
}
]
}
</script>Then test it in Google's Rich Results Test or the Schema Markup Validator .
Everything is built in your browser. Nothing you type is sent to us.
Paste it into a header-code plugin, or your theme's "header scripts" setting. If an SEO plugin already adds LocalBusiness schema, use one or the other, not both.
Most builders have a custom-code or "code injection" setting for the page head. Add it to the homepage, or the contact page if that is where your address appears.
Paste it into the page's HTML, inside the <head> or just before </body>. It is invisible to visitors and doesn't change how the page looks.
LocalBusiness schema doesn't move you up the map results by itself. It removes doubt: it states your name, address, phone number and hours in a form machines read without guessing, which helps Google match your website to your Business Profile and helps AI assistants describe you accurately.
Google ignores star ratings that a business marks up about itself, so this generator leaves reviews out.
Every detail in the code should match what visitors see on the page and what your Google Business Profile says. If you have several locations, give each location page its own code with that location's address and phone number.
Our free audit checks whether your site has structured business details, along with the rest of your local search basics. See the Search Visibility checks.
Seven growth scores and a prioritized fix-list, in about a minute. Your first audit needs no account.
Get your free audit