Free tools / Local Business Schema Generator
Local Business Schema Generator
Build a paste-ready LocalBusiness JSON-LD block from your business details, with the correct Schema.org subtype for your category. Fields you skip are left out of the code, never guessed at.
Your LocalBusiness JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"address": {
"@type": "PostalAddress",
"addressCountry": "US"
}
}
</script>Still missing for a complete node
- Business name
- Website
- Phone number
- Street address
- City
- State or region
- Postal code
- Opening hours (at least one day)
- Social profile links (sameAs)
This tool never invents a phone number, address, or hours on your behalf. Anything you leave blank is left out of the code, not guessed at.
The Local Business Schema Generator is a free AnswerFix tool that builds a paste-ready LocalBusiness JSON-LD block from the business details you type in, so search engines and AI answer engines like ChatGPT, Perplexity, and Gemini can extract your name, address, phone number, category, and hours directly from your homepage instead of guessing at them from unstructured text.
Structured data is one of the highest-leverage, lowest-effort fixes for AI visibility because it removes ambiguity. When an AI engine is deciding whether to recommend your business for a query like "dentist near me open Saturday," it is far more confident citing a business whose hours and category are declared in machine-readable JSON-LD than one where it has to parse a paragraph of marketing copy. This tool automatically maps your category, such as "dentist" or "plumber," to the closest official Schema.org subtype, because a specific type like Dentist or Plumber carries more signal than the generic LocalBusiness type.
Fill in as many fields as you have real answers for. Every field you skip is left out of the generated code entirely; this tool never inserts a placeholder phone number, a fabricated address, or invented opening hours. The checklist next to the code shows exactly which recommended fields are still missing, so you always know what a complete node would need without being tempted to fake it. Once you have the code, paste the whole script block, opening and closing tags included, into the head of your homepage. Most CMS platforms have a "custom head code" or "header scripts" setting for exactly this purpose. After publishing, you can confirm it parses correctly with Google's Rich Results Test or the Schema Markup Validator at validator.schema.org.
One block per page is enough. Add it to your homepage first since that is the page AI crawlers and search engines treat as your primary entity record, then repeat the process for any location or service pages that represent a distinct physical address.
Schema generator questions
- What is LocalBusiness schema and why does it matter for AI search?
- LocalBusiness schema is a JSON-LD block that states your name, address, phone, category, and hours in a machine-readable format. ChatGPT, Perplexity, and Google's AI Overviews all lean on structured data to confirm facts before recommending a business, so a missing or incomplete block is a common reason a real business gets left out.
- Which Schema.org type should I use instead of plain LocalBusiness?
- Whenever a more specific type exists, such as Dentist, Restaurant, Attorney, or Plumber, use it instead of the generic LocalBusiness type. This tool maps common category words to the closest official subtype automatically, which gives search and AI engines a sharper, more confident read on exactly what your business does.
- Where do I paste the generated code?
- Paste the entire script block, including the opening and closing tags, into the head section of your homepage, or anywhere in the body if your site builder does not give you head access. One LocalBusiness block per page is enough; do not duplicate it across every page of your site.
- Will this tool invent details I did not provide?
- No. Every field you leave blank is simply left out of the generated code, never filled with a placeholder or a guess. The checklist below the code tells you exactly what is still missing so you can decide whether to add it now or come back later with the real information.
Now see whether ChatGPT recommends you
Schema is one fix out of thirteen. Get your free AI visibility score to see the rest.