JSON-LD generator

Event Schema Generator (JSON-LD)

Enter the date, place, and tickets shown on the event page. 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 eventAdd absolute URLs for representative business images.
Where it happensSay whether the event is in person, online, or both, and where.
VenueRequired for Google eventThe place where people attend in person.
Event statusChange this when the event is cancelled, postponed, rescheduled, or moved online.
Organizer and performersName who runs the event and who appears at it.
OrganizerRecommended for Google eventThe organization that runs the event.
PerformersRecommended for Google eventAdd one performer or speaker per row.
Price and availabilityAdd the price and availability shown on the page.
TicketsRecommended for Google eventAdd one row for each ticket type on the page.
What each engine usesReview the documented search feature requirements that apply to this business type.
Active feature ruleGoogle: event

Required for Google event: location, name, startDate

Recommended for Google event: description, endDate, eventStatus, image, location.name, offers, organizer, performer, previousStartDate

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-event
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Event",
  "name": "Example Trail Skills Workshop",
  "description": "A fictional workshop used to demonstrate Event JSON-LD fields.",
  "image": [
    "https://example.com/images/trail-workshop.jpg"
  ],
  "startDate": "2027-04-10T10:00:00-05:00",
  "endDate": "2027-04-10T13:00:00-05:00",
  "eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
  "eventStatus": "https://schema.org/EventScheduled",
  "location": {
    "@type": "Place",
    "name": "Example Community Hall",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "123 Example Street",
      "addressLocality": "Springfield",
      "addressRegion": "IL",
      "postalCode": "62701",
      "addressCountry": "US"
    }
  },
  "organizer": {
    "@type": "Organization",
    "name": "Example Works",
    "url": "https://example.com/"
  },
  "offers": {
    "@type": "Offer",
    "name": "General admission",
    "price": 25,
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "url": "https://example.com/events/trail-skills-workshop/"
  }
}
</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 event page.
  2. Enter the start time in local time and choose its UTC offset.
  3. Choose in person, online, or both, then add the venue or the online URL.
  4. Run Check this code, then paste the script-tag version into the event 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 Event JSON-LD node. The check compares it with the event requirements Google documents. It cannot confirm indexing or promise a displayed search result.