Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Schema.org JSON-LD Generator

Build structured data markup for any Schema.org type — live preview, validation, copy or download instantly

Your files never leave your browser
JSON-LD Output

Pick a Schema.org type, fill in the fields, and get valid JSON-LD output that updates as you type — ready to paste straight into your page’s <head>. Real-time validation flags missing required properties and suggests recommended ones so you don’t have to cross-reference the spec yourself.

And everything runs in your browser. Nothing gets uploaded.

How It Works

Pick Schema Type
➜
Fill In Fields
➜
Copy JSON-LD

The tool maps each Schema.org type to its required and optional properties. As you type, it builds the JSON-LD object in real time and runs validation against the spec. Red flags mean a required field is empty. Yellow warnings mean a recommended property is missing — not a dealbreaker, but worth filling in if you have the data. Hit "Copy Script" and you get a ready-to-paste <script type="application/ld+json"> block.

Examples

Blog Post With Author Info

You published a tutorial and want Google to show author name, date, and headline in search.

INPUT
Type: Article Headline: CSS Grid vs Flexbox Author: Sarah Chen Date: 2026-03-10 Publisher: DevBlog
OUTPUT
{ "@context": "https://schema.org", "@type": "Article", "headline": "CSS Grid vs Flexbox", "author": { "@type": "Person", "name": "Sarah Chen" }, "datePublished": "2026-03-10" }

Local Coffee Shop

A small business owner wants their address, hours, and phone number to show up in Google's knowledge panel.

INPUT
Type: LocalBusiness Name: Maple Street Roasters Address: 412 Maple St, Portland, OR Phone: (503) 555-0192 Hours: Mon-Fri 6am-6pm
OUTPUT
{ "@context": "https://schema.org", "@type": "LocalBusiness", "name": "Maple Street Roasters", "telephone": "(503) 555-0192", "address": { "@type": "PostalAddress", "streetAddress": "412 Maple St", "addressLocality": "Portland", "addressRegion": "OR" } }

Product Page With Price and Availability

An e-commerce site needs rich snippets showing price, stock status, and review rating directly in search results.

INPUT
Type: Product Name: Wireless Noise-Canceling Headphones Brand: SoundCore Price: 79.99 Currency: USD Availability: InStock Rating: 4.6 (2,340 reviews)
OUTPUT
{ "@context": "https://schema.org", "@type": "Product", "name": "Wireless Noise-Canceling Headphones", "brand": {"@type": "Brand", "name": "SoundCore"}, "offers": { "@type": "Offer", "price": "79.99", "priceCurrency": "USD", "availability": "https://schema.org/InStock" }, "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.6", "reviewCount": "2340" } }

Who Uses This

🔍 SEO Specialists

Generate rich snippet markup for client sites without hand-coding JSON-LD from scratch.

🏪 Small Business Owners

Add LocalBusiness schema so their shop shows up with hours, address, and phone in Google.

💻 Web Developers

Quickly scaffold structured data for new pages instead of looking up property names in the spec.

✍️ Content Writers

Build FAQ and HowTo markup for articles so they qualify for Google's expandable search features.

Common Mistakes

Leaving required fields blank

Google won't generate a rich snippet if "name" or "headline" is missing. The validator flags these in red — fill them all before copying.

Using the wrong schema type

A recipe page tagged as "Article" won't get recipe cards in search. Pick the type that actually matches your content — Google is strict about this.

Pasting JSON-LD in the body instead of the head

Technically JSON-LD works anywhere on the page, but Google recommends placing it in the <head>. Some CMS themes strip unknown scripts from the body, so putting it in the head is the safer bet.

Technical Details

Frequently Asked Questions

What is JSON-LD and why should I use it?

JSON-LD stands for JavaScript Object Notation for Linked Data. It's Google's preferred way to add structured data to web pages because it sits in a separate script tag and doesn't touch your visible HTML. You drop it in the head, and search engines read it without affecting your layout or styles.

Will adding schema markup guarantee rich snippets?

No guarantees. Google decides whether to show rich results based on many factors — your page's quality, the search query, and whether the markup is correct. But without valid structured data, you're not even in the running. Think of it as a prerequisite, not a promise.

How do I test my schema markup after adding it?

Use Google's Rich Results Test — paste your URL or code snippet and it'll tell you which rich result types your page qualifies for. For a deeper syntax check, the Schema Markup Validator (formerly the Structured Data Testing Tool) catches issues Google's tool might skip.

Can I add multiple schema types to one page?

Yes, and it is pretty common. A product page might have Product schema plus FAQ schema plus BreadcrumbList. Use separate script tags for each one, or combine them into an array inside a single tag. Both approaches work fine.

What's the difference between JSON-LD, Microdata, and RDFa?

All three are ways to add structured data. Microdata and RDFa mix attributes directly into your HTML tags, which gets messy fast. JSON-LD keeps everything in one script block — no need to sprinkle attributes across your markup. Google officially recommends JSON-LD, and most SEO tools default to it now.

Share: