Developer utility

JSON-LD Schema Generator

Generate valid JSON-LD structured data markup to add to your web pages.

JSON-LD Schema Generator

Create schema.org structured data markup for your pages, ready to paste.

Google recommends at least one large image.

Generated JSON-LD
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article"
}
</script>
Required fields missing
  • Headline
  • Page URL
  • Author name
  • Date published

Always test your final page. Valid markup does not guarantee that Google will show a rich result.

About the JSON-LD Schema Generator

The ProTools Hub JSON-LD Schema Generator builds structured data markup for your web pages without writing code by hand. Choose a schema type, fill in the details, and the tool produces valid JSON-LD that follows the schema.org vocabulary. It supports Article, BlogPosting, Organization, WebSite, SoftwareApplication, FAQ, Breadcrumb, LocalBusiness and Product markup.

Unlike generators that fill empty fields with fake sample text, this tool only outputs the information you actually enter. It also tells you which required fields are missing and flags common problems, such as URLs without https:// or ratings without a rating count, before you copy the code.

Everything is generated in your browser as you type. You can copy the markup, download it as a file, and choose whether it should be wrapped in the script tag that search engines expect.

How to Use

  1. 1Pick the schema type that matches the page you are marking up.
  2. 2Fill in the fields. Items marked with a red star are required.
  3. 3Review the warnings panel and fix anything it flags.
  4. 4Copy the code, or download it, and paste it into the page it describes.
  5. 5Test the live page with Google's Rich Results Test and the Schema Markup Validator.

Key Features

  • 9 schema types, including FAQ and Breadcrumb builders
  • Only outputs the data you enter, with no fake placeholders
  • Required-field and URL checks before you copy
  • Optional script tag wrapper, with safe escaping
  • Copy to clipboard or download as a file
  • Links to Google's testing tools
  • Free, no sign-up, generated in your browser

What Is Structured Data and JSON-LD?

Search engines read the text on your page, but they have to guess what it means. Structured data removes the guesswork. It is a standard way of labelling your content, for example "this is an article", "this is the author", or "this is a product with this price". The shared vocabulary for these labels is called schema.org, and it is supported by Google, Bing and other search engines.

JSON-LD is the format Google recommends for writing structured data. It sits inside a script tag, separate from the visible HTML, so you can add or change it without touching your page layout. If you want to inspect or tidy the code you generate, you can paste it into our JSON Formatter & Validator.

Google has said that structured data is not a direct ranking factor. Its value is that it helps search engines understand your content and makes your pages eligible for enhanced results, such as breadcrumbs in the listing or rich product information. Eligibility is not a promise, and Google changes which features it supports over time, so check its current documentation for each type.

Which Schema Type Should You Use?

TypeBest forWhat to know
Article / BlogPostingNews, blog posts and guidesHelps search engines understand the headline, author and dates.
OrganizationHome or About pageDescribes your brand, logo and official profiles.
WebSiteHome pageNames your site. Google has retired the sitelinks search box, so don't expect that feature.
SoftwareApplicationApp or tool pagesRich results usually need a price plus a genuine rating or review.
FAQPagePages with real, visible Q&AGoogle now shows FAQ rich results mostly for well-known government and health sites, but the markup is still valid.
BreadcrumbListPages with a breadcrumb trailCan show your page path in search results instead of a raw URL.
LocalBusinessBusinesses with a physical locationProvides address, phone number and price range.
ProductProduct pagesRich results need offers or reviews that match what is shown on the page.

How to Add JSON-LD to Your Website

In a plain HTML site, paste the script tag into the head or body of the page. Each page should carry markup that describes that page only. In a Next.js or React project, you can render the tag from your page component like this:

export default function Page() {
  const jsonLd = {
    "@context": "https://schema.org",
    "@type": "Article",
    headline: "My article title",
  };

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
      />
      {/* your page content */}
    </>
  );
}

In WordPress, many SEO plugins add basic schema automatically. You can paste custom markup with a header-and-footer plugin or your theme's custom code option.

Common Structured Data Mistakes

Marking up content that isn't on the page

Structured data must describe what visitors can actually see. Hidden or invented content can lead to a manual action.

Fake ratings and reviews

Only include ratings that come from real users. Made-up ratings violate Google's guidelines.

Relative or broken URLs

Use full URLs that start with https:// for pages, images and logos.

Missing required properties

Each type has required and recommended fields. This tool lists what is missing before you copy the code.

Wrong date format

Use ISO 8601 dates such as 2026-11-01. The date picker in this tool does this automatically.

Never testing the result

Always check your final page in Google's Rich Results Test and the Schema Markup Validator.

Frequently Asked Questions

What is JSON-LD?

JSON-LD (JavaScript Object Notation for Linked Data) is a way to describe the content of a web page in a format that search engines can read easily. You place it in a script tag, and it uses the shared vocabulary from schema.org to say things like 'this page is an article, written by this person, published on this date'.

Does structured data improve my Google ranking?

Google states that structured data is not a direct ranking factor. What it does is help Google understand your page and makes it eligible for certain enhanced search results, which can improve how your listing looks and how often people click it.

Why don't I see rich results after adding the markup?

Valid markup does not guarantee rich results. Google decides whether to show them based on page quality, eligibility rules and the type of site, and it can take days or weeks after a page is crawled. Some types, like FAQ, are now limited to certain kinds of sites.

Where do I put the generated code?

Paste the script tag into the head or body of the page it describes. In a Next.js app, you can render it inside the page component with dangerouslySetInnerHTML, as shown in the example on this page. Each page should have markup that describes that page only.

Can I use more than one schema type on a page?

Yes. A blog post page might include an Article, a BreadcrumbList and an Organization. Generate each one separately and add them as separate script tags, or combine them in one array.

How do I test my structured data?

Use Google's Rich Results Test to check eligibility for Google features and the Schema Markup Validator at validator.schema.org to check general schema.org correctness. Test the live page URL or paste the code directly.

Is JSON-LD better than Microdata or RDFa?

Google recommends JSON-LD because it keeps the data separate from your HTML, which makes it easier to write and maintain. Microdata and RDFa still work, but they mix the markup into your page content.

Is the information I type uploaded anywhere?

No. The code is generated in your browser as you type and is not sent to our servers by this tool. Please note the website itself uses analytics and advertising scripts, as explained in our privacy policy.

Related tools: JSON Formatter, Markdown to HTML, Base64 Encoder.