Generate LocalBusiness Schema JSON-LD from Your Real Business Details

Get valid LocalBusiness JSON-LD markup using the most specific schema subtype, with opening hours, geo coordinates, and a checklist of fields to verify before publishing.

You getChosen subtype and reason, field map table and the JSON-LD code block

Prompt

Prompt
Act as a technical SEO specialist who writes structured data for local businesses.

Your job: create LocalBusiness schema in JSON-LD for my business. Before writing anything, ask me these questions in one numbered message and wait for my answers:
1. Business name, what you do, and website URL.
2. Full street address, phone number, and the page the markup will go on.
3. Opening hours for each day, including closed days.
4. Optional: logo URL, photo URL, price range, social profile links, and latitude/longitude.

Rules:
- Pick the most specific schema.org subtype that fits (for example Dentist or Bakery instead of LocalBusiness) and explain the choice in one line.
- Use only facts I give you. Never invent reviews, ratings, coordinates or hours. If geo is missing, leave it out and tell me how to get it from Google Maps.
- Write hours as openingHoursSpecification with 24-hour times.
- Phone in international format; address split into PostalAddress fields.
- Return valid JSON-LD in a single script tag with no comments inside the code.

Output format:
1. Chosen subtype and reason
2. Field map table: Property | Value | Source (given by me / left out)
3. The JSON-LD code block
4. Verify in Google's Rich Results Test: numbered checklist of fields to check
5. Missing or risky: what I should add or confirm before publishing

Example output

At a glanceChecks before publishing the Bakery JSON-LDVerification steps for Marlow Street Bakery's markup
  1. Run Rich Results TestMarkup detected with zero errors
  2. Match name to Business ProfileName must match exactly
  3. Match address word for wordProfile and website footer
  4. Check closed daysSunday and Monday show no hours
  5. Test image URLLoads publicly in a private window
  6. Check coordinates in MapsPin lands on your door
  7. Run Schema Markup ValidatorCatch schema.org warnings Google skips

Example for: Marlow Street Bakery, a fictional neighborhood bakery and café with one location, markup going on the homepage.

1. Chosen subtype and reason

Bakery. It is a schema.org subtype of FoodEstablishment, which sits under LocalBusiness, so it describes the business more precisely than LocalBusiness alone.

2. Field map
PropertyValueSource
@typeBakeryChosen from your description
nameMarlow Street BakeryGiven by you
urlhttps://www.marlowstreetbakery.com/Given by you
telephone+1-503-555-0147Given by you
address.streetAddress2214 Marlow StreetGiven by you
address.addressLocalityPortlandGiven by you
address.addressRegionORGiven by you
address.postalCode97214Given by you
address.addressCountryUSGiven by you
geo.latitude / longitude45.51234 / -122.64321Given by you
openingHoursSpecificationTue–Fri 07:00–15:00, Sat 08:00–14:00Given by you
priceRange$Given by you
imagehttps://www.marlowstreetbakery.com/img/storefront.jpgGiven by you
sameAsInstagram profile URLGiven by you
aggregateRating—Left out (no rating data)
3. JSON-LD code block

The complete script tag goes here as one code block, containing every value in the table above. Paste it into the page head of your homepage.

4. Verify in Google's Rich Results Test
  1. Confirm the test detects the markup with zero errors.
  2. Check that name matches your Google Business Profile exactly.
  3. Check that the address matches your profile and website footer word for word.
  4. Confirm Sunday and Monday show no hours, meaning closed.
  5. Open the image URL in a private window to make sure it loads publicly.
  6. Paste the coordinates into Google Maps and confirm the pin lands on your door.
  7. Run the same code through the Schema Markup Validator to catch schema.org warnings Google skips.
5. Missing or risky
  • No logo URL given; add one if you have a square logo file.
  • Holiday closures are not included; update the markup or your Business Profile when they happen.
  • Do not add review markup for your own reviews; Google ignores self-serving review stars for local businesses.
Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Asking for real facts first stops the model from guessing hours, coordinates or ratings that would make the markup inaccurate.
  • Requiring the most specific subtype, like Bakery or Dentist, gives search engines clearer signals than generic LocalBusiness.
  • The field map and verification checklist let you audit each value before it goes live, not just trust the code.

Use when adding structured data to a local business homepage or contact page. Have your address, phone, hours and URLs ready. Works in ChatGPT, Claude or Gemini; paste the result into your page head.

Common edits

  • Ask for a version with multiple locations, each with its own address and hours, on separate location pages.
  • Add a department or service area section if you travel to customers instead of serving them at a storefront.

Make it repeatable

Keep using this prompt without pasting it in every time.

Keep exploring

More in SEO