How to Add LocalBusiness Schema to Your Site
To add LocalBusiness schema, generate a JSON-LD script block with your name, address, phone, geo coordinates and opening hours using the ByteTools Local Business Schema Generator, then paste it into the head or body of your location page. Search engines read that structured data to display accurate details in local results and maps.
This guide walks through filling in each field, building the opening-hours rows correctly, and pasting the finished markup — all generated privately in your browser with no data uploaded.
Step-by-step
- Enter your core details. Add the business name, website URL and phone number. Use the exact name and number that appear on your Google Business Profile so signals stay consistent.
- Fill in the address. Provide street address, city, region, postcode and country. These populate a PostalAddress object inside the markup.
- Add geo coordinates. Enter latitude and longitude if you have them. They become a GeoCoordinates object that helps place your business precisely on the map.
- Set the price range. Add a price range like $$ if it applies to your business.
- Add opening-hours rows. Create one row per set of days that share the same hours, entering open and close times. Each row becomes an OpeningHoursSpecification entry.
- Copy the JSON-LD. The valid script block is generated live. Copy it and paste it into your location page.
Where to paste the markup
| Placement | How | Notes |
|---|---|---|
| HTML head | Paste the full script block before </head> | Cleanest, works on any page |
| HTML body | Paste anywhere in the body | Also valid; Google reads either |
| CMS / tag manager | Insert as a custom HTML/JS block | Handy for WordPress, Wix, GTM |
The generator omits any field you leave blank, so the output stays clean and only contains properties you actually supplied. Add the markup to your contact or location page — the page that describes the physical premises — rather than every page of the site.
Verify it works
After publishing, run the page URL through Google's Rich Results Test or the Schema Markup Validator. A valid LocalBusiness block reports no errors and shows your name, address, hours and geo parsed correctly. If something is missing, check that you filled the corresponding field in the generator and regenerate. Because everything runs client-side, you can iterate as many times as you like without anything being stored or sent anywhere.
Try the Local Business Schema Generator — free and 100% in your browser.
FAQ
Which page should hold the LocalBusiness schema?
Place it on the page that represents the physical location, usually your contact or location page. For a single-location business the homepage can also work. Avoid duplicating the same block across many unrelated pages, which adds no benefit.
Do I need to include geo coordinates?
They are optional but recommended, especially if your address is new or ambiguous. Accurate latitude and longitude help search engines pinpoint you on the map and support proximity-based results. Leave the fields blank and the generator simply omits the GeoCoordinates object.
How do I format opening hours correctly?
Use 24-hour times and group days that share the same schedule into a single row. The generator turns each row into an OpeningHoursSpecification entry with the right dayOfWeek, opens and closes values, so you do not have to write the syntax by hand.
Is my business data uploaded when I generate the markup?
No. The tool builds the JSON-LD entirely in your browser and never uploads or stores your details, so your address, phone and hours stay private until you publish them yourself.
Related free tools
- Organization Schema Generator — build Organization markup for your brand.
- JSON-LD Generator — create structured data for other schema types.
- Event Schema Generator — mark up events for rich results.
- Review Schema Generator — add review and rating markup.
Built by ByteVancer
ByteTools is a free product of ByteVancer, a software and web development studio building web apps, SaaS and custom software. If you want structured data and technical SEO built into a site properly, explore what ByteVancer offers.
Recommended reading
LocalBusiness Schema Use Cases: Real Examples
See how restaurants, clinics, agencies and multi-location brands use LocalBusiness JSON-LD to strengthen local SEO — with concrete worked examples.
LocalBusiness Schema Best Practices and Mistakes
Get LocalBusiness JSON-LD right the first time — NAP consistency, correct types, valid hours — with best practices and the mistakes that break rich results.
Yes or No Generator: Real Use Cases and Examples
From beating decision paralysis to games and classrooms, see real use cases and examples for a random yes or no generator.
Yes or No Generator Tips and Common Mistakes
Get better decisions from a random yes or no generator. Pro tips, when to add Maybe, and the common mistakes to avoid when picking answers.