Schema Markup Generator (JSON-LD)

Fill in a form for each schema type and get valid JSON-LD script tags, with errors for missing required properties, warnings for recommended ones and a checker for pasted markup.

Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya

…

Cara melakukannya

  1. 1
    Pick a type

    Choose an item or add a new one from the Add list; press Sample to see a filled example.

  2. 2
    Fill in the form

    Complete the required fields first, then the recommended ones.

  3. 3
    Add list items

    Add questions, steps or opening hours in the list sections and reorder them.

  4. 4
    Fix problems

    Read the errors and warnings next to the output until the list is clear.

  5. 5
    Export

    Copy the item or all script tags, download HTML or JSON, or switch on @graph.

  6. 6
    Check other pages

    Paste any page source into Check existing markup to validate its JSON-LD.

Tentang alat ini

Structured data tells search engines what a page is about in a machine-readable way: this is a recipe that takes 25 minutes, this is a product that costs $34.99 and is in stock, this is a job paying £28,000 to £32,000 a year. Google recommends the JSON-LD format, a small script block you add to the page. This generator builds that block from simple forms for eight common types and checks it as you type against the properties Google lists as required or recommended, plus format rules for dates, durations, currencies, prices and ratings. Several items can live in one project and be exported as separate script tags or one @graph. A second tab checks markup you paste from any page.

Who this is for

Website owners, bloggers, recipe writers, online shops, local businesses, event organisers, recruiters and developers who want correct markup without memorising the documentation.

The eight types

- **Article** (also BlogPosting and NewsArticle): headline, images, dates, author and publisher. - **Product**: name, images, brand, identifiers, offer with price and availability, rating and a review. - **FAQPage**: questions with accepted answers. - **HowTo**: steps, supplies, tools, total time and cost. - **LocalBusiness** with more specific types such as Restaurant, Dentist or Plumber: address, phone, geo coordinates, opening hours and price range. - **Event**: dates with time zone offset, venue or online URL, status, attendance mode, tickets, organiser and performer. - **Recipe**: images, times in minutes converted to ISO 8601 durations, yield, ingredients, steps, calories and rating. - **JobPosting**: title, description, dates, employer, location or remote rules, salary range and employment type.

What the checks look for

Errors mean Google's documentation calls a property required or the value is invalid, for example a product without an offer, rating or review, an event Place without an address, a price written as "$12" instead of 12, a currency that is not a three-letter ISO 4217 code, a cook time of "20 minutes" instead of PT20M, or a rating above the best rating. Warnings point to recommended properties that make the result richer.

Important changes at Google

Google stopped showing How-to rich results in September 2023 and limited FAQ rich results to well-known government and health sites in August 2023. Both types are still valid schema.org and are kept here because other search engines and AI assistants read them, but do not expect those features in Google.

Using the output

Copy the script tag into the page's head or body. Mark up only content that visitors can see on the page; hidden or misleading markup breaks Google's structured data policies. Then test the live URL with Google's Rich Results Test and the Schema.org validator, both linked from the tool.

Worked example

A recipe with prep 10 minutes and cook 15 minutes gets "prepTime": "PT10M", "cookTime": "PT15M" and an automatic "totalTime": "PT25M". Five ingredient lines become a recipeIngredient list and three instruction lines become HowToStep items. With name and image filled in, there are no errors.

Limits

The checks cover the rules most often broken, not every rule Google applies, and eligibility for a rich result also depends on content quality and policies. Valid markup does not guarantee that Google shows a rich result. The pasted-markup checker reads JSON-LD only, not Microdata or RDFa.

Contoh berselesaian

Recipe with 10 min prep and 15 min cook: PT10M, PT15M and a computed totalTime of PT25M, zero errors.

Ringkasnya

Soalan lazim

Why JSON-LD and not Microdata?

Google recommends JSON-LD because it sits in one block, separate from the visible HTML, and is easier to maintain.

Where do I put the script tag?

In the head or the body of the page it describes. Content management systems usually have a field or plugin for custom head code.

What is the difference between an error and a warning?

An error means a required property is missing or a value has the wrong format. A warning means a recommended property is missing.

Can I combine several types on one page?

Yes. Add several items and export them as separate script tags or as one script with an @graph list.

Does the tool test my live page?

No. Paste the page source into the checker tab, or use Google's Rich Results Test for the live URL.

Why does my event need a time zone offset?

Without an offset such as +01:00, a start time is ambiguous for people and search engines in other time zones.

Percuma sepenuhnyaTiada bayaran, tiada pendaftaran
Fail kekal peribadiSemuanya berjalan dalam pelayar anda
Mudah dalam bahasa andaTersedia dalam banyak bahasa