Schema markup generator
JSON-LD · Schema.org
Schema markup generator
What is Schema markup?
Schema markup is structured data that describes the entities and information on a web page using the vocabulary published by Schema.org. Instead of relying only on visible text, search engines can read explicit properties such as the name of a business, the price of a product or the ingredients of a recipe. JSON-LD is a way to express these properties in a JSON object embedded in an HTML script element.
TextZap creates this code in your browser. You do not need to write JSON manually or register an account. The generator is useful for website owners, developers, online shops and content publishers who want to describe their pages consistently.
How to generate and install JSON-LD
- Select the type that best describes the content of your page.
- Complete the required fields marked with an asterisk. Use absolute HTTP or HTTPS addresses for URLs and images.
- Generate the code and copy the result, including the script tags.
- Paste the code into the HTML head or body of the relevant page. In a PHP site, place it in the appropriate template so each page receives its own data.
- Validate the published page and correct any errors or missing properties.
Which Schema type should you choose?
- WebSite
- Describe the website itself, using its name and homepage URL.
- Organization
- Identify a company or other organization, including its official URL and logo.
- LocalBusiness
- Describe a physical business with its street address, city, country and telephone number.
- Article
- Describe an editorial page with a headline, author, publication date and image.
- Product
- Describe a product and its offer. Enter a price such as 19.99 and a three-letter currency code such as EUR.
- FAQPage
- Describe questions and their answers that are visible on the page. Enter one question and answer per line, separated by a vertical bar (|).
- BreadcrumbList
- Describe a navigation hierarchy with at least two entries. Enter each label and absolute URL separated by a vertical bar.
- Recipe
- Describe a recipe using its name, ingredients and preparation steps. Enter each ingredient and each step on a separate line.
Practical JSON-LD example
Choose WebSite, enter Example Studio as the name and https://example.com/ as the URL. The resulting markup looks like this:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Example Studio",
"url": "https://example.com/"
}
</script>For a breadcrumb trail, select BreadcrumbList and enter the following two lines:
Home | https://example.com/
Tools | https://example.com/tools/For FAQPage, use a line such as Is registration required? | No, registration is not required. Only publish questions and answers that actually appear on your page.
Structured data and SEO
Structured data can help search engines interpret page content and may make eligible pages available for enhanced search appearances. It does not guarantee a higher ranking or a rich result. Google supports only certain types and properties for specific search features, and FAQ rich results are generally restricted to authoritative government and health websites.
Keep the markup consistent with visible content. Do not invent reviews, prices, authors or business details. The generator provides a starting point, not every property required by every search feature. For example, a recipe may need an image and additional details to qualify for a particular feature.
Frequently asked questions
Where do I put JSON-LD?
Place the generated script in the head or body of the relevant HTML page. Avoid adding identical product or article data to unrelated pages through a global footer.
Can I use several Schema types on one page?
Yes. A product page may also have breadcrumb markup. Make sure each entity is relevant and that overlapping properties do not contradict each other.
How can I check the generated code?
Use the Schema Markup Validator to inspect Schema.org vocabulary and the Google Rich Results Test to check supported Google features. A successful validation does not guarantee display in search.
Do I need to update the markup?
Yes, whenever the underlying information changes. For example, update product prices and availability together with the visible page content.