← Back to blog

How to generate schema markup for your website (free generator)

Schema markup tells search engines and AI assistants what a page is about in a format they can read without guessing: who you are, what you sell, which questions you answer. You do not need to write it by hand. Our free schema generator builds valid JSON-LD for Organization, FAQPage, Product and Article in your browser. This guide explains how it works, gives you copy-ready code for each type, and shows how to test it.

What is a schema generator?

A schema generator is a tool that turns a simple form into structured data code, usually JSON-LD, that follows the vocabulary at schema.org. You type your company name, logo URL or FAQ questions into fields, and the generator writes the correctly nested code you paste into your page.

Generators save time and prevent the most common errors:

  • Missing brackets and commas. One stray comma breaks the whole block.
  • Wrong property names. Schema.org is case-sensitive. "SameAs" is not "sameAs".
  • Wrong nesting. An FAQ answer has to sit inside an Answer object inside a Question object.
  • Wrong types. A blog post is an Article or BlogPosting, not a WebPage.

A generator does not check that your facts are true. If the price, address or FAQ answer is wrong, the markup will be wrong too. Search engines also expect the markup to match what is visible on the page. [SOURCE NEEDED: Google structured data guidelines on visible content]

Why schema matters for AI search

Structured data gives AI engines clean facts to work with, such as your legal name, your founders, your social profiles and your products. It is one part of technical AEO, alongside crawler access and answer-first content. Schema alone will not get you cited, but it removes ambiguity about who you are. [SOURCE NEEDED: published guidance on how AI engines use structured data] For the wider picture, read what AEO is.

How to generate a schema?

Generate a schema in four steps: choose the type that matches the page, fill in the required and recommended fields, copy the JSON-LD into the page's head, and test it. Here is each step in detail.

  1. Choose the type. Use Organization on your homepage or about page, FAQPage where a page shows questions and answers, Product on product pages, and Article or BlogPosting on posts and guides.
  2. Fill the fields. Use the exact facts shown on the page. Leave out any field you cannot fill truthfully.
  3. Paste the code. Put the script block inside the page's head, or anywhere in the body if your CMS does not allow head access.
  4. Test. Run the URL or code through Google's Rich Results Test and the Schema Markup Validator at validator.schema.org.

Organization schema (copy and edit)

Use this on your homepage. The sameAs list links your official profiles, which helps engines connect your brand across the web.

<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Organization", "name": "Your Company", "legalName": "Your Company Pvt. Ltd.", "url": "https://www.example.com", "logo": "https://www.example.com/logo.png", "founder": { "@type": "Person", "name": "Founder Name" }, "address": { "@type": "PostalAddress", "addressLocality": "City", "addressCountry": "IN" }, "sameAs": [ "https://www.linkedin.com/company/your-company", "https://x.com/yourcompany" ] } </script>

FAQPage schema (copy and edit)

The questions and answers must match the FAQ visible on the page word for word. Add one Question object per FAQ.

<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [ { "@type": "Question", "name": "What does your product do?", "acceptedAnswer": { "@type": "Answer", "text": "Write the same answer that appears on the page." } } ] } </script>

Product schema (copy and edit)

Use this on a product page. Replace PRICE with the number shown on the page and use the matching currency code, such as USD or INR.

<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Product", "name": "Product Name", "description": "One sentence that matches the page.", "image": "https://www.example.com/product.jpg", "brand": { "@type": "Brand", "name": "Your Company" }, "offers": { "@type": "Offer", "price": "PRICE", "priceCurrency": "USD", "availability": "https://schema.org/InStock", "url": "https://www.example.com/product" } } </script>

Article schema (copy and edit)

Use this on blog posts and guides. Keep dateModified current whenever you update the post.

<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "Your post title", "author": { "@type": "Person", "name": "Author Name", "url": "https://www.linkedin.com/in/author" }, "publisher": { "@type": "Organization", "name": "Your Company", "logo": { "@type": "ImageObject", "url": "https://www.example.com/logo.png" } }, "datePublished": "YYYY-MM-DD", "dateModified": "YYYY-MM-DD", "image": "https://www.example.com/cover.jpg" } </script>

Is there a schema generator for JSON?

Yes. Most schema generators, including ours, output JSON-LD, which is JSON with a few schema.org keywords such as @context and @type. JSON-LD is the format Google recommends for structured data, because it sits in one script block instead of being woven through your HTML. [SOURCE NEEDED: Google documentation recommending JSON-LD]

There are three structured data formats you may see:

  • JSON-LD. A separate script block. Easiest to add, edit and generate. Use this.
  • Microdata. Attributes added to HTML tags. Harder to maintain, because it breaks when the design changes.
  • RDFa. Similar to Microdata, mostly found in older CMS themes.

Our free schema generator runs fully in your browser. It makes no API calls, so nothing you type leaves your device. You get a live JSON-LD preview, a Copy button and a link to test the result in Google.

Using the Artea generator in three steps

  1. Pick a type. Choose Organization, FAQPage, Product or Article from the menu.
  2. Fill the form. The JSON-LD preview updates as you type, so you can see each field land in the right place.
  3. Copy and test. Copy the code into your page, then use the "Test in Google" link to open the Rich Results Test.

[PROOF NEEDED: screenshot of the schema generator with a filled Organization example]

How can I generate a schema for my website?

Generate schema for your whole website by mapping each page template to one schema type, then adding the markup once per template instead of once per page. A small site can do this by hand with a generator. A larger site should generate schema from its CMS fields, so it stays accurate when content changes.

A simple site-wide plan

  • Every page: Organization, in the site-wide header or footer template, plus BreadcrumbList on every page except the homepage.
  • Homepage: Organization and WebSite.
  • Service or product pages: Service or Product.
  • Blog posts and guides: Article or BlogPosting, with author and dates.
  • Pages with a visible FAQ: FAQPage, with text identical to the page.

If you use WordPress, Shopify or another CMS

Many CMS platforms and plugins add basic schema automatically. Check what they already output before you add more, because duplicate or conflicting blocks confuse parsers. Use the Rich Results Test to see every block a page currently carries, then fill the gaps with a generator.

Common mistakes to avoid

  • Marking up content that is not on the page, such as hidden FAQs or reviews you did not collect.
  • Copying the same FAQPage block onto every page.
  • Leaving placeholder text, such as "Your Company", in live code.
  • Forgetting to update dateModified and prices when the page changes.
  • Expecting a rich result to appear just because the code is valid. Google decides which rich results to show, and FAQ rich results are now limited to a small set of sites. [SOURCE NEEDED: Google announcement limiting FAQ rich results]

How to test your schema

Run every new template through both tools. Google's Rich Results Test tells you which rich results the page is eligible for and flags errors. The Schema Markup Validator checks the code against the full schema.org vocabulary, including types Google does not use for rich results. Fix errors first, then warnings that apply to fields you can fill truthfully.

Where schema fits in AI visibility

Valid schema is a foundation. Whether ChatGPT, Perplexity or Google AI Overviews actually name your brand depends on your content, your third-party sources and how your pages answer real buyer questions. Our guides on getting into Google AI Overviews and getting ChatGPT to recommend your product cover those parts.

Start with the free schema generator. If you want to know whether AI assistants name your brand today, and what to fix first, book a free AI visibility audit.

Need GTM creative shipped at AI speed?

One team for content, decks, landing pages, SEO/GEO, and video.

Get started