Help

Schema Markup Generator: JSON-LD for FAQ, Product, Article and More

This schema markup generator turns a form into JSON-LD, the structured data that tells search engines what a page is about. Choose a schema type, fill in the fields and copy the finished <script type="application/ld+json"> tag into your page. The code updates as you type, and everything is built in your browser, so nothing you enter is uploaded.

How to Generate Schema Markup in JSON-LD

  1. Pick a type from the Schema type dropdown: FAQ page, Article, Product, Local business, Event, Person or Organization.
  2. Fill in the fields under the code. The JSON-LD code block above them rewrites itself on every keystroke and shows a hint until you type something.
  3. Press Add custom property under Custom properties if you need a schema.org property the form does not have.
  4. Press Copy JSON-LD. The button reads Copied for a moment, and the whole script tag is on your clipboard.
  5. Paste the tag into your page's HTML, then test the page with Google's Rich Results Test or the Schema Markup Validator.

There is no Generate button. A field you leave empty is never written, so a half-filled form still gives you clean, valid JSON with no empty values and no trailing commas.

Schema Types You Can Generate

Each type writes the schema.org properties listed here. The fields are labelled exactly as they appear on screen.

Schema typeFieldsWhat the code contains
FAQ pageQuestion, Answer (as many pairs as you add)A FAQPage with a Question and an acceptedAnswer for each pair
ArticleHeadline, Description, Page URL, Image URL, Author, Publisher, Date published, Date modifiedAn Article whose author is a Person, publisher is an Organization and Page URL becomes the mainEntityOfPage
ProductName, Description, Image URL, Brand, SKU, Price, Currency code, Availability, Page URLA Product with a Brand and, once you enter a Price, an Offer
Local businessName, Description, Image URL, Website URL, Telephone, Price range, Street address, City, State or region, Postal code, CountryA LocalBusiness with a PostalAddress
EventName, Description, Start date and time, End date and time, Venue name, Venue address, Image URL, Page URL, OrganizerAn Event with a Place as its location and an Organization as organizer
PersonName, Job title, Website URL, Image URL, Email, Telephone, Works for, Profile URLs one per lineA Person with the profile links in a sameAs list
OrganizationName, Website URL, Logo URL, Description, Email, Telephone, Profile URLs one per lineAn Organization with the profile links in a sameAs list

FAQ Schema Generator: Question and Answer Pairs

Choose FAQ page and the form shows one Question 1 card with a Question and an Answer field. Press Add question for another pair, or the X on a card to remove it. A pair needs both halves: one with only a question or only an answer is left out of the code, and a note under the form says so.

Use FAQ markup only on a page that shows the same questions and answers to visitors. With a question What does your product do? and the answer It turns a form into JSON-LD., the code is:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What does your product do?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "It turns a form into JSON-LD."
      }
    }
  ]
}
</script>

Product Schema Markup with Price and Availability

The Product type writes a Brand from Brand and, only when you enter a Price, an Offer holding the Page URL, the price, the Currency code and the Availability. The price is written as a JSON number, the currency code is upper-cased and starts from your region, and the availability becomes a schema.org address such as https://schema.org/InStock. Without a price there is no Offer, and the Page URL is written on the Product itself. Choose In stock, Out of stock, Pre-order or Discontinued. With a name, brand, SKU, price and availability filled in, the key part of the code is:

"name": "Blue ceramic mug",
"brand": { "@type": "Brand", "name": "Rosa Pottery" },
"sku": "MUG-01",
"offers": {
  "@type": "Offer",
  "price": 19.99,
  "priceCurrency": "USD",
  "availability": "https://schema.org/InStock"
}

The form does not generate review or rating data, because it cannot know what real customers said. It also does not check Google's product requirements, so confirm them for your page.

Local Business, Event, Article, Person and Organization

Add Custom Properties to JSON-LD

Add custom property adds a row with a Property name and a Value, and an X to remove it. The row is added to the end of the code. How the value is written depends on what you type:

You typeWritten as
42 or trueA number or a true/false value
{"@type": "Place"} or ["a", "b"]A JSON object or list
Mo-Fr 09:00-17:00Plain text
"12345" (in quotes)The text 12345, not a number

A custom property with the same name as a form field replaces that field. A value that starts like JSON but is not valid, for example an object with a missing bracket, is written as text, and a note under the row says so.

What the Generator Leaves Out

Empty fields are never written. A URL that is not a full http or https address, a price that is not a number, a currency code that is not three letters and a half-filled question pair are each flagged under the field and left out of the code until they are valid. Any < in a value is written as \u003c, so nothing you type can close the script tag early. The tool only builds the code: it does not validate it against Google's rich result requirements and it cannot promise a rich result.

Where to Put JSON-LD on a Page

Paste the whole script tag into the page it describes. Google reads JSON-LD in the head or the body, so use whichever your template makes easier. The markup should describe what the page really shows: a Product block for a product page, an FAQPage block only where those questions and answers are visible. For the title, description and social tags that sit next to it in the head, use the Meta Tag Generator, and to reformat or check a JSON-LD block you already have, paste it into the JSON Formatter.

Do not mark up content that is not on the page, and do not invent reviews or ratings. Search engines can ignore structured data that does not match the visible page, and some kinds of misleading markup can lead to a manual action.


Frequently asked questions

What is JSON-LD?

JSON-LD is a way of writing structured data as JSON inside a script tag, so search engines can read what a page is about without parsing its visible text. The tool writes it for you: the JSON-LD code block shows a complete script tag with the type application/ld+json, with an @context of https://schema.org and the @type you chose.

What is schema markup used for?

Schema markup labels the content of a page using the schema.org vocabulary, so a search engine can tell that a block of text is a product price, an event date or a list of questions and answers. It can make a page eligible for richer results in search, but it does not change what visitors see on the page itself.

How do I add schema markup in HTML?

Press Copy JSON-LD and paste the whole script tag into your page's HTML. On a site builder or CMS, look for a custom code, header code or SEO settings field and paste it there. Add one block per thing the page describes, and make sure the facts in it match what the visible page says.

Where do I put schema markup, in the head or the body?

Either works. Google reads JSON-LD in the head or in the body of a page, so put the script tag wherever your template or CMS makes it easiest to add. Do not paste it inside another script tag or inside an HTML comment.

What is FAQ schema?

FAQ schema is FAQPage markup: a list of questions, each with an accepted answer. Choose FAQ page under Schema type, fill in Question and Answer for each pair and use Add question for more. Only add it to a page that really shows those questions and answers to visitors, with the same wording.

Does the tool guarantee a rich result?

No. It writes valid-looking JSON-LD from what you type, but it does not check Google's rich result requirements, and search engines decide whether to show a rich result for any page. Use Google's Rich Results Test and the Schema Markup Validator to check a page after you publish the markup.

How do I test schema markup?

Put the script tag on a page, then paste the page address or the code into Google's Rich Results Test or the Schema Markup Validator at validator.schema.org. They report errors and the properties a type is missing. This tool does not validate, so it will not warn you that a type lacks a property Google asks for.

Can I add properties the form does not have, such as opening hours?

Yes. Under Custom properties press Add custom property, then type the Property name, for example openingHours, and its Value, for example Mo-Fr 09:00-17:00. A value that is valid JSON, such as 42, true, an object in braces or a list in square brackets, is written as JSON. Anything else is written as text. Put a number in quotes to keep it as text, for example "12345".

Why was my URL, price or currency left out of the code?

The field shows a warning and the value stays out until it is valid. A URL must be a full address starting with http:// or https://. A price must be a number such as 19.99, and a currency code must be three letters such as USD, EUR or JPY. A question or answer without its other half is left out too.

Can it generate review or rating markup?

Not from the form. The Product type writes the name, brand, SKU and an Offer with price, currency and availability, and it does not invent review or rating data. If you have real reviews shown on the page, you can add an aggregateRating as a custom property whose value is a JSON object.

Is my text sent anywhere?

No. The JSON-LD is built in your browser as you type, nothing is uploaded and no account is needed.

Recommended

Helps keep the tools free. ✨

Images are for illustration only. As an Amazon Associate I earn from qualifying purchases.