How to Set Up Local Business Schema JSON-LD (2025)
Learn exactly how to set up local business schema JSON-LD. Follow this expert step-by-step guide to write, test, and deploy structured data that drives local growth.
By Forge Growth Research10 min read
To learn how to set up local business schema json ld, you must write a script of structured data that translates your company’s core details into a machine-readable format for search engines. Place this code snippet in the head section of your website to help Google and AI search tools understand exactly who you are, what you do, and where you serve.
Key Takeaways
JSON-LD is Google's preferred format for local business structured data.
Always use the most specific Schema.org business type available for your industry.
Your schema NAP data must match your Google Business Profile exactly.
Validate your code using Google's Rich Results Test before deploying.
Structured data feeds AI assistants direct facts about your business operations.
Adding this markup to your website is one of the highest-ROI technical SEO tasks you can complete. It removes the guesswork for search engines. Instead of forcing Google’s web crawlers to read your paragraphs and scrape your footer to figure out your service area and business hours, you hand them the exact data on a silver platter.
Why You Need to Know How to Set Up Local Business Schema JSON-LD
Search engines operate on data certainty. When Google is confident about your business name, address, phone number, and service categories, it is far more likely to reward you with visibility in the Local Pack (the map section of search results).
Learning how to set up local business schema json ld protects your local search presence. It establishes a direct digital bridge between your website and your Google Business Profile. When you explicitly state your data in JSON-LD format, you create a "single source of truth" for your brand across the internet.
JSON-LD stands for JavaScript Object Notation for Linked Data. Unlike older methods like Microdata (which required wrapping your visible HTML text in complex tags), JSON-LD is a standalone block of code that lives quietly in the background of your website. It doesn't change how your website looks to a human visitor. Google officially recommends JSON-LD as the preferred method for structured data implementation.
Without it, you are leaving your business identity up to algorithmic interpretation. If you are serious about outranking competitors, mastering this technical fundamental is non-negotiable.
The Anatomy of LocalBusiness Structured Data
Before writing your code, you need to understand the basic building blocks of Schema.org vocabulary. Schema.org is a collaborative, universal vocabulary created by Google, Microsoft, Yahoo, and Yandex. It standardizes how webmasters categorize information.
When figuring out how to set up local business schema json ld, you will construct a script utilizing specific properties. Here are the mandatory and highly recommended components for local service businesses:
The Context and Type
Every JSON-LD script must begin by declaring the context (@context: "https://schema.org") and the type of entity (@type). The type is crucial. While you can use the generic LocalBusiness type, it is far better to be specific.
For example, if you run a locksmith company, you shouldn't just be a LocalBusiness. You should use the specific @type of Locksmith. If you are a plumber, use Plumber. If you run a personal injury law firm, use LegalService. (For a deep dive into optimizing legal marketing, see our guide to Win Cases: Google Local Service Ads for Personal Injury Lawyers).
Core NAP Data
NAP stands for Name, Address, and Phone Number.
Name: This must be your legal business name exactly as it appears on your Google Business Profile.
Address: This utilizes the PostalAddress property. It breaks down your street address, city, state, and postal code.
Telephone: Your primary business phone number formatted in E.164 standard (e.g., +1-555-555-5555).
Geocoordinates and Maps
To cement your location in Google's brain, you should provide exact latitude and longitude coordinates using the GeoCoordinates property. You can also use the hasMap property to drop a direct URL link to your Google Maps listing.
Connections and Reviews
The sameAs property is incredibly powerful. It allows you to list an array of URLs that represent your business elsewhere on the web. You should link your Facebook page, your Yelp profile, your Better Business Bureau listing, and your Google Business Profile CID link here. Furthermore, you can nest review data. To learn more about that specific tactic, check out How to Add Review Schema Markup to HTML for Rich Snippets.
Step-by-Step: Writing Your Custom JSON-LD Code
Let's walk through how to set up local business schema json ld from scratch. We will use a fictitious plumbing company as our template.
Step 1: Open a Text Editor
Do not use Microsoft Word or Google Docs to write code, as they will format your quotation marks into "smart quotes" (curly quotes) which will break the script. Use a plain text editor like Notepad, TextEdit, or a code editor like VS Code.
Step 2: Structure the Base
Start with the script tags and the opening brackets.
`html
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
`
Step 3: Add the Core Details
Next, add the name, image, URL, and phone number. Note that every line ends with a comma, except the very last property in a block.
If you are a Service Area Business (SAB) that hides your address on Google Maps, you still need to put your dispatch address in the schema, but you should strongly emphasize the areaServed property. (If you're dealing with SAB profile issues, refer to our Locksmith Company Google Business Profile Suspension Appeal Guide for compliance tips).
When you combine these blocks, you have a complete, perfectly formatted JSON-LD script ready for deployment.
How to Add Schema Markup to Your Website CMS
Once you have drafted your code, you must inject it into the <head> section of your website's HTML. The method varies depending on your Content Management System (CMS).
WordPress Implementation
There are several ways to add JSON-LD to WordPress. The most robust way is to use a dedicated code injection plugin like WPCode (formerly Insert Headers and Footers).
Install and activate the WPCode plugin.
Navigate to Code Snippets > Header & Footer.
Paste your complete <script> block into the Header section.
Click Save Changes.
Alternatively, SEO plugins like RankMath and Yoast have built-in schema generators. While these are user-friendly, manually writing and pasting your code gives you granular control over advanced properties like areaServed and sameAs.
Wix and Squarespace Implementation
Both Wix and Squarespace make it easy to inject header code.
Wix: Go to Settings > Custom Code. Click "Add Custom Code." Paste your JSON-LD snippet, name it "Local Schema", select "All Pages" (or just the homepage if you have a multi-location setup), and place it in the Head.
Squarespace: Go to Settings > Advanced > Code Injection. Paste your script into the Header box and save.
Multi-Location Businesses
If you have multiple physical locations, do not put the schema for all locations on the homepage. Put your primary Organization schema on the homepage. Then, create dedicated location pages (e.g., /locations/atlanta) and place the specific LocalBusiness JSON-LD schema for that exact branch exclusively on its respective location page.
Common Schema Mistakes That Kill Local SEO
Understanding how to set up local business schema json ld also means knowing what not to do. Bad structured data is worse than no structured data. If your schema contradicts your Google Business Profile, Google will lose trust in your data, which can tank your local rankings.
According to the Google Search Central Structured Data Guidelines, you must never mark up content that is invisible to users, and you must avoid misleading data. Here are the most common pitfalls to avoid.
Feature
Proper Schema Implementation
Harmful Schema Mistake
Business Name
"name": "Apex Plumbing" (Matches GMB perfectly)
"name": "Apex Plumbing - Atlanta's Best Plumber" (Keyword stuffing)
Address Data
Matches website footer and Google listing exactly
Using a virtual office or P.O. Box in schema
Syntax & Punctuation
Using straight quotes (") and proper commas
Missing commas at the end of lines, breaking the script
Business Type
"@type": "RoofingContractor" (Highly specific)
"@type": "Organization" (Too vague for local SEO)
How Structured Data Powers AI Search Visibility
We are shifting from traditional search engines to AI-driven answers. Tools like ChatGPT, Perplexity, and Google's Gemini rely heavily on structured data.
Large Language Models (LLMs) crawl the web to answer user prompts like "Find me an emergency plumber open right now in Atlanta." If your website relies entirely on unstructured paragraph text, the AI has to work hard to extract your hours, location, and phone number.
When you implement precise JSON-LD schema, you feed the AI an unambiguous, machine-readable dossier of facts. You explicitly tell ChatGPT your openingHoursSpecification, your exact geo coordinates, and your accepted priceRange. Businesses that structure their data correctly are significantly more likely to be cited as authoritative sources and recommended by AI assistants to local searchers.
Your Pre-Launch Schema Checklist
Do not push your code live without testing it. A single misplaced comma will invalidate the entire script. Follow this checklist to ensure a flawless rollout:
Draft the Code: Write your JSON-LD using a plain text editor, ensuring you use the most specific @type available.
Verify NAP Consistency: Check that the name, address, and phone number in your code perfectly match your Google Business Profile.
Test the Code: Copy your script and paste it into the Google Rich Results Test. The tool will flag any syntax errors or missing required properties.
Inject the Code: Paste the validated code into the <head> section of your website.
Test the Live URL: Go back to the Rich Results Test, input your live website URL, and confirm that Google's crawlers can detect the LocalBusiness schema on the live page.
Request Indexing: Log into Google Search Console, paste your URL into the top search bar, and click "Request Indexing" to force Google to read your new schema immediately.
Keep Your Data Current and Growing
Learning how to set up local business schema json ld is not a one-time set-and-forget task. As your business evolves, your schema must evolve with it. If you move offices, change your phone number, or adjust your operating hours, you must update your JSON-LD script immediately. Discrepancies between your website's schema and your real-world operations will confuse search engines and harm your visibility.
Mastering structured data is just one pillar of dominating local search. To capture high-value local leads, you need a holistic strategy that combines technical SEO, reputation management, and high-converting web design. Ready to stop guessing and start scaling? Click here to get your free Growth Plan from Forge Growth today: get your free Growth Plan.
Common questions
Quick answers about this topic
Short answers first, then the detail. Skim what you need.
What is the best format for local business schema?
JSON-LD is the best and only recommended format for local business schema.
Google officially explicitly prefers JSON-LD over older formats like Microdata or RDFa because it is easier to implement, less prone to breaking your website's visual design, and faster for search engines to parse.
MicrodataRDFa
Where do I place JSON-LD schema on my website?
You should place your JSON-LD schema code within the `<head>` section of your website's HTML.
While modern search engines can technically read it if placed in the `<body>` or footer, placing it in the header ensures it loads early and is immediately available to search crawlers.
JSON-LDHTML. While
Can I use multiple schema types on one page?
Yes, you can use multiple schema types on a single page, but you should nest them logically.
For example, your homepage can have LocalBusiness schema, and within that script, you can nest Review schema or FAQPage schema. Just ensure the primary entity of the page remains clear.
LocalBusinessReviewFAQPage
How do I test if my local schema is working?
You test your local schema using the Google Rich Results Test tool.
Simply enter your website URL or paste your raw code snippet into the tool. It will analyze the structured data, highlight any syntax errors, and confirm if your markup is eligible for rich results in search.
structured dataGoogle RichResults TestURL
Does schema markup improve Google Maps rankings?
Yes, accurate schema markup indirectly improves Google Maps rankings.
By providing search engines with precise, machine-readable data about your location, hours, and services, you build algorithmic trust. This consistency between your website and your Google Business Profile is a core pillar of local SEO.
local seoschema markupGoogle MapsGoogle BusinessProfile
Should a service area business include an address in schema?
Yes, but you must format it correctly.
A service area business (SAB) should include its dispatch address in the code to establish geographic relevance, but rely heavily on the `areaServed` property to define the specific cities or zip codes where you actually perform work for customers.