JSON-LD Schema Generator

Generate structured data markup for any schema type — paste into your page and boost SEO

JSON-LD structured data is a lightweight script tag you add to any web page to tell Google exactly what your content is — an article, a product, an FAQ, an event, and more. Search engines use this information to display rich results: star ratings, price ranges, FAQ dropdowns, and event dates directly in search results, dramatically improving click-through rates. Use this generator to build valid schema markup without writing a single line of JSON by hand.

Fill required fields

Article Fields

Fill in the fields below to generate your structured data

Generated JSON-LD

// Start filling in the fields above to generate your JSON-LD

How to use: Select a schema type, fill in the required fields (marked with *), then copy the generated <script type="application/ld+json"> tag and paste it into the <head> of your HTML page.

How to Use the JSON-LD Schema Generator

Structured data is one of the most powerful and underused SEO techniques available to website owners. By adding a small JSON-LD script to your page, you give Google precise, machine-readable information about your content. In return, Google can display rich results — enhanced search listings with stars, prices, FAQs, event details, and more — that stand out from plain blue links and earn significantly more clicks.

Step 1: Select Your Schema Type

Start by choosing the schema type that matches your page's content. Use Article for blog posts and news articles, Product for e-commerce product pages, LocalBusiness for brick-and-mortar businesses, FAQPage for pages with question-and-answer sections, Event for concerts, webinars, and other events, and Recipe for cooking content. The form fields update instantly to match the chosen type.

Step 2: Fill In the Required Fields

Fields marked with a red asterisk (*) are required by Google to qualify for rich results. The validation badge at the top shows whether all required fields are complete. Optional fields improve data quality and may unlock additional rich result features, so fill them in whenever possible. For example, adding ratingValue and reviewCount to a Product schema enables star ratings in search.

Step 3: Review the Live JSON-LD Preview

As you type, the generated JSON-LD updates in real time in the preview panel. The output is syntax-highlighted to make it easy to spot keys, strings, and values. The JSON is automatically formatted with two-space indentation, making it human-readable. Verify that the @context is set to https://schema.org and the @type matches your chosen schema type.

Step 4: Copy and Add to Your Page

Click the Copy Code button to copy the full <script type="application/ld+json"> block to your clipboard. Paste it inside the <head> section of your HTML. For WordPress, use the Insert Headers and Footers plugin or add it via your theme. For Shopify, edit your theme.liquid layout file.

Step 5: Validate with Google's Testing Tool

After deploying, test your structured data at search.google.com/test/rich-results. Enter your page URL and Google will show you which rich result types your page qualifies for and flag any errors. Fix any warnings about missing required fields and retest. Once validated, Google will typically begin using your structured data within a few days of the next crawl.

Frequently Asked Questions

Is this JSON-LD schema generator free to use?

Yes, this tool is completely free with no usage limits. There is no signup, no account required, and no strings attached. Generate as many structured data blocks as you need for any of your projects.

Is my data safe when I use this tool?

Absolutely. All processing happens entirely in your browser using JavaScript. Nothing you type is ever sent to a server, stored, or logged anywhere. You can safely enter real business details and URLs.

What is JSON-LD and why does it matter for SEO?

JSON-LD (JavaScript Object Notation for Linked Data) is a lightweight format for embedding structured data in web pages. Search engines like Google use it to understand your content and display rich results — star ratings, FAQ dropdowns, event dates, product prices — directly in search results. Rich results get significantly higher click-through rates than plain blue links.

Which schema types does this generator support?

This generator supports 10 common schema types: Article, LocalBusiness, Product, FAQPage, HowTo, Organization, Person, Event, Recipe, and BreadcrumbList. These cover the vast majority of use cases for blogs, business websites, e-commerce stores, and informational pages.

Where do I paste the generated JSON-LD code?

Paste the generated code inside the <head> section of your HTML page, or just before the closing </body> tag. For WordPress sites, you can use a plugin like Insert Headers and Footers or add it via your theme's functions.php. For Shopify, paste it into your theme's layout file.

How do I test if my structured data is valid?

After adding the code to your page, test it with Google's Rich Results Test at search.google.com/test/rich-results. You can also use Schema Markup Validator at validator.schema.org. Both tools will show you any errors and which rich result features your page is eligible for.

Can I add JSON-LD to a page that already has Open Graph tags?

Yes, JSON-LD and Open Graph meta tags serve different purposes and work independently. Open Graph tags control how your page appears when shared on social media (Facebook, LinkedIn, Twitter). JSON-LD structured data tells search engines about your content for rich results. You should have both for maximum visibility.

Do I need separate JSON-LD for every page on my site?

Yes, JSON-LD should be specific to each page's content. An Article schema on a blog post should reference that article's title, author, and date. A Product schema on a product page should reference that product's name, price, and availability. Generic or incorrect structured data can be ignored by Google or even result in a manual action.