JSON-LD generator

Article Schema Generator (JSON-LD)

Enter the headline, dates, and author shown on the article. The JSON-LD updates as you work and stays in this browser.

01

Enter the details

Start with the page

Add the details that identify what this page describes.

ImagesRecommended for Google articleAdd absolute URLs for representative business images.
DatesAdd the publication date and the date of the last real change.
Author and publisherName who wrote the article and who published it.
AuthorsRecommended for Google articleAdd one row for each author named on the article.
PublisherThe organization that publishes the article.
More detailsAdd the section, the language, and a stable @id.
Advanced identity linkUse a stable @id to connect this node with other nodes.
What each engine usesReview the documented search feature requirements that apply to this business type.
Active feature ruleGoogle: article

Recommended for Google article: author, author.name, author.url, dateModified, datePublished, headline, image

Documentation checked 2026-11-12
Jump to the generated code
02

Live JSON-LD output

This code still contains example values. Replace them with details that appear on your page.

Most plugins and code fields want the version with the script tag. Use JSON-LD only when a field asks for the JSON by itself.

schema-article
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "@id": "https://example.com/blog/plan-a-weekend-hike/#article",
  "headline": "How the Example Team Plans a Weekend Hike",
  "description": "A fictional article used to demonstrate Article JSON-LD fields.",
  "image": [
    "https://example.com/images/weekend-hike.jpg"
  ],
  "datePublished": "2026-03-02T09:00:00-05:00",
  "dateModified": "2026-03-09T14:30:00-05:00",
  "author": {
    "@type": "Person",
    "name": "Avery Example",
    "url": "https://example.com/authors/avery-example/"
  },
  "publisher": {
    "@type": "Organization",
    "name": "Example Works",
    "logo": {
      "@type": "ImageObject",
      "url": "https://example.com/images/logo.png"
    }
  },
  "mainEntityOfPage": "https://example.com/blog/plan-a-weekend-hike/",
  "inLanguage": "en"
}
</script>

How to add this code to WordPress, Shopify, Wix and other sites

Add the code to your site

Copying the code is half the job. Choose where your site is built to see where the code goes, which version to copy and what to check so you do not end up with two blocks describing the same thing.

Before you paste, on any platform

  1. Open the live page, view its source and search for application/ld+json. Many themes, plugins and site builders already add markup.
  2. If a block already describes the same thing, correct that block or turn it off instead of adding a second one.
  3. Make sure every value in the code is also visible on the page.
  4. After you publish, test the live URL with the Schema checker and Google's Rich Results Test.

Choose your platform. Use the arrow keys to move between platforms.

WordPress block editor

Copy the "With script tag" version.

  1. Open the page or post in the block editor.
  2. Add a Custom HTML block, paste the code and update the page.
  3. View the published page source to confirm the script element is there.
  4. For markup that belongs on every page, such as Organization, use a child theme or a site-specific plugin instead of a block on each page.

WordPress removes script elements from the Custom HTML block for users without the unfiltered_html capability. On a single site, Administrators and Editors have it; on a multisite network, only Super Admins do.

Read the WordPress schema guide

03

How to use this generator

  1. Replace every example value with details shown on the article.
  2. Enter the publication date and choose the UTC offset for that local time.
  3. Add each author with a link to a page about them.
  4. Run Check this code, then paste the script-tag version into the article page.

Where this code goes

Paste the script-tag version into the HTML of the page it describes, in the head or the body. Most site builders have a custom code or header field for this.

04

What this generator does

The form builds one article node. The check compares it with the article properties Google recommends. It cannot confirm indexing or promise a displayed search result.