Schema Markup Generator for Websites

Create valid JSON-LD code for your business, physical locations, and articles based on Google technical guidelines.

To generate schema markup for your website, pick the schema type that matches your page and fill in the fields. Then paste the generated JavaScript Object Notation for Linked Data (JSON-LD) code into your page's head tag and check it in Google's Rich Results Test.

The generator loads with default values for an example plumbing business, allowing you to inspect the output immediately. You can select Clear example to start fresh or modify individual values to build custom code for your site.

Schema Markup Generator

1. Pick the schema type that matches the page

Your brand: add it once, on your home page or About page.

2. Fill in your details
3. Copy the JSON-LD into your page's <head>
  • Check that the logo image is at least 112 x 112 px and can be crawled.
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example Plumbing Co.",
  "url": "https://www.example.com",
  "description": "Licensed plumbers for homes and small businesses in Seattle.",
  "logo": "https://www.example.com/logo.png",
  "telephone": "+1-206-555-0100",
  "sameAs": [
    "https://www.facebook.com/exampleplumbing",
    "https://www.linkedin.com/company/exampleplumbing"
  ]
}
</script>

Required and recommended fields follow Google's Organization, LocalBusiness and Article documentation. Only mark up what the page visibly shows.

Fields Google Requires for Each Schema Type

Google maintains different technical property requirements depending on whether you implement Organization, LocalBusiness, or Article structured data.

According to Google Search Central documentation on Organization structured data, there are no required properties for organization markup. Google recommends including your organization name, alternate name, website address, logo, external profiles, postal address, contact point, description, email, and telephone number. The logo image must be at least 112 by 112 pixels and hosted on a crawlable address. When marking up a general company, you add this data once to your home page or an About page.

For LocalBusiness structured data, Google requires two specific properties: name and address. The address property must use a PostalAddress schema object containing specific geographic details. Recommended properties include geographic coordinates, opening hours specifications, price range indicator, telephone number with country and area code, and the specific location website address. Google documentation recommends providing latitude and longitude with at least five decimal places. The priceRange property must stay under 100 characters.

Per Google documentation on Article structured data, there are also no strictly required properties, but Google recommends headline, image, datePublished, dateModified, and author. The author property should resolve to a Person or Organization object. The author name property must hold only the name of the person or entity, omitting titles, honorifics, or attribution words like By. The author url property should link directly to a page that uniquely identifies the author.

  • Organization: No strictly required properties. Recommended properties include name, url, logo (minimum 112 by 112 pixels), sameAs, telephone, and email.
  • LocalBusiness: Required properties are name and address. Recommended properties include geo coordinates (five or more decimal places), openingHoursSpecification, telephone, and priceRange (under 100 characters).
  • Article: No strictly required properties. Recommended properties include headline, image URLs, datePublished, dateModified, and author (name only, without honorifics or titles).
The Schema Markup Generator checks these rules as you type. It displays red errors when a LocalBusiness lacks a name or address, when price range is 100+ characters, or when date modified precedes date published. It displays warnings for coordinates with fewer than five decimal places, a logo size reminder, author names with extra titles, or URLs that are not full web addresses.

Organization or LocalBusiness for Your Site

Select LocalBusiness if your site represents a physical business, such as a restaurant or store. Under Google's Organization structured data documentation, choose the most specific LocalBusiness subtype and follow its recommended fields. In the Schema Markup Generator, the Business type select includes Plumber, Dentist, Restaurant, and Store. For ecommerce sites, Google recommends OnlineStore over OnlineBusiness. The generator does not offer OnlineStore, so add that type by hand following Google's page if you run an online retail shop.

Google recommends using the same name and alternateName you use for your site name, while url helps Google uniquely identify your organization. Enter outside profile links into the Profiles elsewhere (one URL per line) box to generate sameAs properties for pages carrying additional details about your organization. Google also recommends adding address, contactPoint, description, email, telephone, foundingDate, vatID, and iso6523Code.

Add contactPoint by hand if needed, because the generator does not provide that field. When creating Article markup, place links into the Image URL(s), one per line box. Under Google's Article structured data guide, Google recommends multiple high-resolution images in 16x9, 4x3, and 1x1 aspect ratios.

How to Add the JSON-LD to Your Page

You place the generated JSON-LD code directly inside the head section of your page HTML. You can also paste the block into your content management system (CMS) header or custom-code field.

When implementing schema.org Organization markup, insert the code block only on your home page or primary About page. Google documentation states that you do not need to include organization structured data across every page of your site.

For local storefronts, place your schema.org LocalBusiness code on the specific landing page dedicated to that physical location. If your business operates multiple branches, build a distinct LocalBusiness code block for each location page rather than grouping multiple addresses onto the home page. For editorial content, place the Article code block directly on that specific post.

Only mark up content that is visibly present on the page for human readers. If you include an address, telephone number, opening hours, or author name in your structured data, that exact information must appear in the visible text of the page.

Worked Example for a Seattle Plumber

Select LocalBusiness and the generator fills in a valid example for a home service trade. If the site represents a physical business, Google recommends using the most specific LocalBusiness subtype.

The example business uses the name Example Plumbing Co. with the telephone number +1-206-555-0100. Its physical street address is set to 100 Example Ave, Seattle, Washington 98101, US. Because Google requires both name and address for local business entities, omitting either of these fields triggers a red validation error in the generator code viewer.

The geographic coordinates are set to latitude 47.60621 and longitude -122.33207. These numbers use five decimal places, satisfying Google's recommendation of at least five decimal places. The opening hours field contains Mo-Fr 07:00-18:00, and the price range contains $$. In the generated JSON-LD script block, these inputs map directly to structured schema.org properties alongside the required context definition.

Validation Steps Before You Publish

Never paste generated code directly into a live production site without verifying that syntax and nesting meet current search engine standards.

First, select the Test in Google's Rich Results Test button or navigate to the official Google Rich Results Test to check how Google interprets your code snippet. The Rich Results Test checks code for structured data Google can read. Next, run the snippet through the Schema Markup Validator to confirm broader schema.org compliance.

The generator's checks are taken directly from Google Search Central documentation. After deploying your validated code, you can re-run our AI Visibility Checker. If you are configuring broader site architecture for language models, you can also use our llms.txt Generator or consult our guide on Schema Markup for AI Search to plan your full structured data deployment.

Omitted Code in This Schema Markup Generator

The Schema Markup Generator leaves out FAQPage markup and Product or Review types.

According to the official Google Search Central updates, Google deprecated the FAQ rich result feature on May 8, 2026, after search snippets stopped showing FAQ dropdowns on May 7, 2026. On June 15, 2026, Google removed FAQ rich result documentation entirely. Because Google stopped showing FAQ rich results, the generator does not include FAQ markup.

The generator has no fields for products, prices or ratings, so it does not output Product or Review markup.

If Google documentation adds required fields in the future, follow the updated documentation. Run your completed script tag through both testing tools, then paste the schema markup generator output into your live page's head.


Frequently Asked Questions

  • Organization schema should go on your home page or your main About page. Google Search Central documentation specifies that you do not need to include organization structured data on every page of your site.
  • Yes, an address is required for LocalBusiness schema. Google documentation mandates both name and address (using the PostalAddress object) for local business structured data.
  • Yes, you can use more than one schema type on a page if the page genuinely represents multiple distinct entities. Give each entity its own JSON-LD block, and mark up only what readers can see on the page.
  • No, this generator does not make FAQ schema. Google deprecated FAQ rich results on May 8, 2026, and removed the documentation on June 15, 2026. For a complete look at schemas that AI engines and search crawlers use today, read our guide on Schema Markup for AI Search.

Need help structuring your technical SEO and AI data?

Adding structured data clarifies your business information for search engines and language models. In an advisory engagement, Layer3Labs helps your team audit site architecture, automate markup generation, and fix crawlability issues before search updates impact your traffic.

Book a Consultation