JSON-LD schema generator
Choose the type of structured data, fill in the form and get JSON-LD code ready to paste into your page, with format checks and links to the official validators.
Choose a type and fill in the form
Order matters: from the home page to the current page. The last step may be left without a URL.
JSON-LD code
Checks
Validate the final code
The links open in a new tab. Paste the copied code there; the tool does not send anything over the network.
What each type covers
- Article / BlogPosting / NewsArticle: describes an article (headline, author, dates, image, publisher). Suitable for blog posts, news stories and advertorials.
- FAQPage: describes a page with visible questions and answers. Every pair in the code must also exist in the text of the page.
- Organization: the company’s public details: name, logo, contact, address and official profiles.
- BreadcrumbList: the page’s path within the site, in order, from the home page to the current page.
- WebSite: details of the site as a whole. SearchAction describes the internal search, but Google retired the sitelinks search box in November 2024, so the markup no longer has a visible effect there.
Rich results and FAQ
Correct structured data does not guarantee a special appearance in Google results. For FAQPage, Google shows rich results only for authoritative government and health websites, so for most commercial sites the markup does not change how the listing looks. It can still be useful as an explicit description of the page, with no promise of any result. Google’s documentation is updated from time to time, so check the current rules before relying on an effect.
How to use the generated code
- Fill in only real information that also appears on the page.
- Fix the errors in the checks list and read the warnings.
- Copy the code with the script tag and paste it into the head or at the end of the body.
- Test the published page in the Schema.org validator and in Google’s Rich Results Test.
For a sponsored article, Article markup does not replace clear labelling of paid content or the right attributes on links. See the publishing rules and the SEO article analyser for the other checks.
Frequently asked questions
Questions about json-ld schema generator
What is JSON-LD and where do I put it on the page?
JSON-LD is a format for describing the page to search engines, inside a script block with the type application/ld+json. It can go in the head or the body, once for each entity described. The information in the code must match what the visitor sees on the page.
Does FAQPage markup give me rich results in Google?
Usually not. Google shows FAQ rich results only for authoritative government and health websites. For other sites the markup can be valid and may help the page be understood, but it does not produce an expanded result. Check Google’s documentation, because the rules can change.
Does the tool send my data anywhere?
No. The code is generated in your browser, nothing is sent over the network and nothing is saved. To validate it, you copy the code and paste it into the validator of your choice.
What should I do if the validator reports warnings?
Warnings usually concern recommended properties, not required ones. Fill them in when you have the real information; do not invent values just to make a warning disappear. Errors, on the other hand, must be fixed before publishing.
Can I mark up an advertorial with the Article schema?
Yes, if the page is an article. Fill in the author and publisher correctly, and make sure sponsored content is clearly flagged on the page, in line with the publishing rules. The markup does not replace the sponsored attribute on paid links.
More tools
Keep exploring the lab
Campaign Navigator
Get a selection of sites suited to your niche, calculated by relevance, DA/PA and diversity.
PlanningCompliance checker
Spot risky wording in your advertorial before you send it: superlatives, guarantees, medical claims.
ComplianceSEO analyser
SEO score for articles: density, subheadings, links, long sentences and readability, with the rules explained.
On-page SEO