Schema Generator: JSON-LD Structured Data

Build JSON-LD structured data for the common page types.

  • SEO Tools
  • Free, no sign-up
  • Runs in your browser

Schema Markup Generator tool

JSON-LD

Structured data must describe what is genuinely visible on the page. Marking up ratings, prices or content that is not there is a policy violation that removes rich results and can earn a manual penalty.

About the Schema Markup Generator

Structured data describes a page to search engines in a machine-readable way, which can make it eligible for rich results such as product prices, event dates and business details. This schema generator produces JSON-LD, the format search engines recommend, for articles, products, FAQs, organizations, events and local businesses, with fields for the properties each type needs. The markup must match what visitors can see on the page; marking up content that is not there breaks search guidelines. Test the result with Google's Rich Results Test before publishing. For specific types, use the FAQ Schema Generator or the Breadcrumb Schema Generator.

Six types are supported, chosen because together they cover the bulk of real websites: Article, Product, LocalBusiness, Organization, Person and Event. Every form distinguishes must-have fields from nice-to-have ones and validates continuously, so gaps surface immediately rather than in a later test.

Above everything else, the data has to reflect content that really appears on the page. Claiming reviews nobody can see or prices you never charge violates the guidelines and can cost you enhanced listings, or bring a manual action. The form accepts anything you type; accuracy is up to you.

Nested details are handled for you. An event needs a location, which in turn needs an address; a product needs an offer with a price, a currency and an availability value. The form builds those inner objects in the right shape, so you fill in plain boxes instead of keeping track of brackets and commas by hand. Structured data is never shown to visitors directly, which is exactly why search engines insist that it match what they can see.

How to use the Schema Markup Generator

  1. Pick a schema typeSelect the kind of thing the page is about, from a news story to a local business.
  2. Complete the fieldsMandatory boxes are highlighted and validated instantly.
  3. Review the JSON-LDTidy, checked code is generated underneath the form.
  4. Add it to your pageInsert the script either in the head or just before the closing body tag.

Schema Markup Generator features

  • Half a dozen common types, from articles to events
  • Mandatory and optional fields told apart
  • Instant validation with helpful errors
  • Clean output ready for your template
  • Dates written in the international format the vocabulary requires
  • Sub-objects like postal addresses, writers and offers supported
  • One-click copy of the whole script

Common uses

  • Describing blog posts and news items for search engines
  • Publishing what a product costs and whether it is in stock
  • Listing a local shop's location and trading hours
  • Describing a company for search engine knowledge panels
  • Making event dates and venues eligible to show in search

Structured data in practice: a restaurant's business details, products priced in rupees, review rules, organisation details and keeping markup current

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Structured data describes a page's facts, such as a business's address, a product's price or an article's author, in a format search engines read reliably. It can make pages eligible for richer search results and helps machines understand who you are. This guide marks up a restaurant and covers products priced in rupees, the rules on review stars, organisation details, articles, events and keeping markup accurate when details change.

A worked example: a restaurant in Karachi

A restaurant adds markup of type Restaurant with its name, a PostalAddress whose addressLocality is Karachi and addressCountry is PK, a telephone number in international format beginning +92, servesCuisine set to Pakistani, opening hours for each day and its map coordinates. The markup repeats exactly what the page already shows, so search engines can match the website with the restaurant's other listings and display accurate details.

Products in rupees

Product markup should include an offer with the price and priceCurrency set to PKR, the international code for the Pakistani rupee, along with availability such as InStock. Prices in markup must match the visible price; mismatches can make a page ineligible for product results and confuse shoppers who see one price in search and another on the page.

Review stars have rules

Stars in search results are only available for certain types of content, and Google does not show review stars for reviews a business publishes about itself on its own site, such as testimonials on a restaurant's home page. Marking up such reviews brings no stars and risks a manual action if the markup is misleading. Genuine product reviews from customers on product pages are a different case.

Organisation details

On the home page, Organization markup can give the official name, logo and links to official social media profiles through sameAs. This helps search engines connect the website with the brand's profiles elsewhere and choose the right logo. Keep it to facts that appear on the site.

Articles and authors

Article markup can name the author, with a link to an author page, and give honest publication and modification dates. Changing dateModified without real changes misleads readers and search engines. Author pages describing real experience support the trust signals that matter for advice on health, money and law.

Events

Event markup for seminars, workshops and exhibitions includes the name, start date and time with time zone, location and ticket offers. Keeping past events marked up after they finish, or failing to mark cancellations, produces outdated results, so update or remove markup when plans change.

Keeping markup current

Details change: prices rise, menus change and opening hours shift during Ramadan or public holidays. Opening hours markup can include special hours for particular dates. Generating markup from the same data as the visible page, rather than maintaining it by hand, keeps the two in step.

Testing and monitoring

Google's Rich Results Test checks whether a page's markup is valid and eligible for rich results, while the Schema Markup Validator checks it against the vocabulary more generally. After publishing, Search Console's enhancement reports flag errors across the site, such as missing required properties.

Common mistakes

  • Marking up details that do not appear on the page.
  • Expecting stars for self-published testimonials.
  • Leaving prices and hours in markup unchanged when they change.
  • Using a vague type when a specific one, such as Restaurant, exists.

Related tools

To mark up visible questions and answers, use FAQ Schema Generator. For navigation paths, try Breadcrumb Schema Generator, and to tidy the generated JSON, JSON Formatter.

Choose the most specific type

Schema.org offers specific business types, such as Dentist, AutoRepair, Bakery and ClothingStore, all of which are kinds of LocalBusiness. Choosing the most specific type that fits tells search engines more precisely what the business is, while still including all the general business properties.

Several branches

Businesses with several branches should give each branch its own page with its own LocalBusiness markup: address, phone number, opening hours and map coordinates. A single page listing every branch in one block of markup makes it harder for search engines to match each location with local searches.

Recipes and online tools

Food blogs can use Recipe markup with ingredients, cooking times, servings and images, which helps recipes appear in recipe-focused results. Pages offering free online tools can describe themselves with WebApplication markup, including the category and the fact that they are free. In both cases, only mark up what the page genuinely provides.

Check the JSON itself

JSON-LD is unforgiving: a trailing comma or a missing quote makes the whole block unreadable, and search engines silently ignore it. Pasting the markup into a JSON formatter or the Rich Results Test before publishing catches syntax errors immediately.

One block or several

A page can carry several pieces of structured data, such as Organization, BreadcrumbList and Article, either in separate script blocks or combined in one graph. Both approaches work. What matters is that each piece describes something genuinely on the page and that the pieces do not contradict each other.

Privacy

Markup is generated in your browser. Nothing you enter is sent anywhere or stored.

Frequently asked questions

Will structured data raise my rankings?

Not directly; search engines have repeatedly said it is not a ranking factor. What it does is make your page eligible for enhanced results, such as prices, ratings or event dates, which can noticeably increase how many people click it.

Why JSON-LD rather than microdata?

Because it is the format search providers prefer, it lives in one self-contained block, and redesigns rarely break it, unlike attributes sprinkled through the markup.

Does the markup have to match what visitors see?

Yes, and this is enforced. Marking up hidden content, inventing ratings or describing a different product from the one on the page all break the rules, and the result can be lost rich results or a manual action.

Where should the script go on the page?

Anywhere in the document works, and the head is the usual place. Search engines read it wherever it appears, even when added by JavaScript, though markup included in the original HTML is more reliable.

Can one page use several schema types?

Yes, and it is often correct to do so. A news story might pair Article with publisher details and a breadcrumb trail, either in several blocks or bundled together.

How do I test the result?

Once live, check the page with Google's testing tool and the schema.org validator. This page verifies the shape of the data; eligibility for enhanced listings can only be confirmed by the search engines.