JSON-LD Schema Markup for Articles and Products
Generate Article, Product, or business JSON-LD, copy the script tag, and validate it before you publish.
JSON-LD tells search systems what a page is—an article, a product, an organization—without changing the visible layout. It does not replace a clear title or description, and it does not guarantee a rich result. It does give crawlers a structured object you can inspect and version.
The Haivix Schema Markup Generator builds a <script type="application/ld+json"> block in the browser for four types: Article, Product, Organization, and LocalBusiness. Fill the form, generate, copy the snippet, then validate it on Google or Bing before you ship. The tool does not crawl your URL or talk to those validators.
The four types this generator supports
Shared fields, emitted only when filled: name, description, url, and image as a plain URL string. Generation requires a name (the headline for the page).
Article adds an author as a Person and datePublished from the date picker. Product adds sku; if you enter a price, it builds an Offer with that price, a currency (USD, GBP, EUR, PKR, INR), and availability always set to InStock. Organization and LocalBusiness add telephone and a PostalAddress with street only—they differ by @type, not by extra local-business fields.
What this is not
It is not a general schema.org builder. FAQPage, HowTo, BreadcrumbList, Recipe, Event, Review, VideoObject, and WebSite are out of scope. Product availability is not selectable. There is no brand, aggregateRating, logo, sameAs, geo, or opening hours.
Empty optional fields are omitted. The generator will not warn you that Google’s documentation wants extra properties. Treat the output as a starter, then extend it in source if the page deserves richer markup.
Pair JSON-LD with on-page metadata
Structured data should match what people see. Write the title and description first with the Meta Tag Generator, then generate JSON-LD with the same name, URL, and dates. If you need to inspect the JSON inside the script tag, paste it into the JSON Formatter after stripping the script wrapper.
The generator escapes <, >, and & in the JSON as Unicode escapes so the snippet is safer to paste into HTML. Copy the full script block, not only the object.
Checklist before you paste into the page
Open the Schema Markup Generator, pick a type (Load example shows a Product starter), generate JSON-LD, and copy it. Values stay in the tab; the image URL is stored as a string and is not fetched.
- The @type matches the page (article vs product vs organization).
- Name, URL, and dates match visible content and canonical URL.
- Product price and currency match the live offer; availability InStock is truthful.
- Image URL is absolute HTTPS if you included one.
- You validated the snippet in a rich-results tester after deploy.
- You did not expect this markup alone to create a rich result.