BYTETOOLS

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

  1. 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.
  2. Fill in the address. Provide street address, city, region, postcode and country. These populate a PostalAddress object inside the markup.
  3. 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.
  4. Set the price range. Add a price range like $$ if it applies to your business.
  5. 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.
  6. 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

PlacementHowNotes
HTML headPaste the full script block before </head>Cleanest, works on any page
HTML bodyPaste anywhere in the bodyAlso valid; Google reads either
CMS / tag managerInsert as a custom HTML/JS blockHandy 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

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.