The Locolory toolkit / Local Business Schema Generator

Local Business Schema Generator

Build clean LocalBusiness JSON-LD from your NAP details. Preview every field, validate the format, and copy deployment-ready markup instantly.

Local Business Schema Generator is a free browser-based utility that build clean LocalBusiness JSON-LD from your NAP details; Preview every field, validate the format, and copy deployment-ready markup instantly.

  • Core logic: map entered NAP, hours, geo, and business details into validated Schema.org JSON-LD fields.

No software download, login, or server upload required. Computations execute locally on device.

Business details + JSON-LD preview

Live JSON-LD

Empty optional fields are omitted.

✓ Valid format
{
  "@context": "https://schema.org",
  "@type": "HVACBusiness",
  "name": "Northwind Heating & Air",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "125 Market Street",
    "addressLocality": "Austin",
    "postalCode": "78701"
  },
  "telephone": "+1-512-555-0142",
  "url": "https://example.com",
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 30.2672,
    "longitude": -97.7431
  },
  "openingHours": [
    "Mo-Fr 08:00-18:00",
    "Sa 09:00-14:00"
  ],
  "priceRange": "$$"
}

How to add JSON-LD to a business website

JSON-LD gives search engines a machine-readable description of information already visible on a page. Complete the generator with the same business name, street address, city, postal code, telephone number, and website shown to visitors. This consistency is the foundation of useful NAP schema markup.

Copy the complete script and paste it into the HTML of the most relevant page. The document head is a convenient location, although JSON-LD can also appear in the body. In WordPress or another CMS, use a theme setting or a reputable code-injection field that preserves script tags. In React, TanStack, or another framework, add the script through the route's head metadata so server-rendered HTML includes it.

Keep one authoritative version per business location. If a company has separate locations with distinct addresses or phone numbers, create location pages and give each page matching markup. Never add ratings, services, opening times, or locations that visitors cannot verify on the page.

Validate and maintain local business markup

Choose the closest specific business type. HVACBusiness and Plumber suit common home service contractors; Restaurant, MedicalBusiness, ProfessionalService, and Store cover broader local categories. A specific valid type communicates more than the generic LocalBusiness type while retaining its inherited properties.

This free JSON-LD markup generator for contractors also works as a local SEO rich snippet code maker and NAP schema markup generator for other location-based businesses. The labels change by industry, but the publishing rule stays the same: describe the real organization represented by the page.

Enter opening hours in Schema.org's compact form, such as “Mo-Fr 09:00-17:00”. Use a comma between separate day groups. Latitude ranges from -90 to 90 and longitude from -180 to 180. The validation pill flags incomplete coordinates, while the preview omits empty optional properties instead of publishing blank values.

After publishing, test the live URL with Google's Rich Results Test and inspect the rendered page source to confirm the script is present. Valid code does not guarantee a special search result; eligibility also depends on content, quality, policies, and the search query. Recheck the markup whenever the business moves, changes its phone number, updates hours, or changes its canonical website URL.

Your input shapes the next update

Spotted something? Tell us.

A short note opens in your email app, ready to send to hello@locolory.store.

What would you like to share?
Have a screenshot? Attach or paste it in the email draft.0/3,000

Good questions. Clear answers.

What does a local business schema generator create?

It creates JSON-LD structured data that identifies a business type, name, address, phone number, website, coordinates, opening hours, and price range in a format search engines can parse.

Can contractors use this free JSON-LD markup generator?

Yes. HVAC contractors and plumbers can select their specific Schema.org business type, then add consistent NAP details and copy the finished script into their website.

Will this local SEO rich snippet code maker guarantee a rich result?

No. Valid structured data helps search engines understand a page, but search engines decide when and whether enhanced results appear. The visible page content must also support every claim in the markup.

Where should I place NAP schema markup?

Place the complete application/ld+json script in the page head or body. Use the business's real name, address, and phone number, and keep those details consistent with the visible contact page and business listings.