How to Generate JSON-LD Structured Data
Describe your page with schema.org vocabulary so search engines can read who wrote it, what it sells or where it sits on your site
Choose Your Schema Type
Select the schema type that matches your content. Schema.org defines a shared vocabulary for structured data used by Google, Bing, and Yahoo. JSON-LD is Google's recommended format and sits alongside your meta and Open Graph tags.
Fill In the Form
The script tag updates as you type. Empty fields are left out, values are written exactly as you entered them, and a note appears above the code if something needs fixing, such as a price with a currency sign. The output is plain JSON-LD format ready to paste into your page. Since JSON-LD is based on JSON, you can also use our JSON viewer or JSON formatter to inspect and format the output.
Example: Telecom FAQ Schema
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is included in the Unlimited 5G plan?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Unlimited data, 5G access, international roaming, and 50GB hotspot."
}
}
]
}
</script>Add to Your Page and Test with Google
Paste the script inside your <head> or before </body>. After publishing, run the URL through Google's Rich Results Test to see which result types Google can read from it. Whether any of them actually appear in search is up to Google. Monitor results in Google Search Console under Enhancements.
<head> or before </body>Frequently Asked Questions
What is JSON-LD and why do pages use it?
JSON-LD is a way of describing a page with schema.org vocabulary inside a <script type="application/ld+json"> tag. Search engines read it to understand what the page is about: that it is an article by a certain author, a product with a price, or a company with a logo. Google lists JSON-LD as its recommended format for structured data, and it sits next to your meta and Open Graph tags without changing what visitors see.
Will adding this markup give my page stars or rich results in Google?
Not necessarily. Valid markup makes a page eligible for some result types, but Google decides whether to show them and often does not. Several have been narrowed or retired: FAQ rich results are now shown only for a small set of well-known government and health sites, and the sitelinks search box was removed in late 2024. Structured data is also not a ranking factor on its own. Run your page through the Rich Results Test to see what Google can read from it.
Which schema type should I pick?
Article for blog posts and news, Product for a page that sells one item, FAQPage for a page whose main content is questions and answers, Organization for your home or about page, BreadcrumbList for the path from the home page down to the current page, and WebSite for the home page itself. A page can carry more than one block, for example an Article and a BreadcrumbList.
Is it safe to paste the output straight into my HTML?
Yes. Quotes, backslashes and line breaks in your text are escaped the way JSON requires, and every < and > is written as \u003c and \u003e. That matters because a description containing </script> or <!-- would otherwise end the script tag early and break the rest of your page. JSON readers, Google included, turn those escapes back into the original characters.
Why is my price, SKU or empty field shown the way it is?
Every value is written exactly as you typed it, trimmed of spaces at the ends, so a price of 14.50 stays 14.50 and a long SKU such as 8901240544102066246 keeps every digit. Fields you leave empty are left out instead of being written as empty strings. If something looks off, such as a price with a currency sign or an FAQ entry without an answer, a note appears above the code telling you what to change.
Where should the script tag go?
Google reads JSON-LD in either the <head> or the <body>. Most people put it in the <head> next to the meta tags. After publishing, test the live URL and keep an eye on the Enhancements reports in Search Console.
Is anything I type sent anywhere?
No. The code is built in your browser as you type. Nothing is uploaded to our server and nothing is kept, so reloading the page starts with an empty form.
Already have markup on a page? Paste it into the JSON-LD Validator to check that it parses, or tidy it up with the JSON Formatter.