Home › Developer Tools › Schema Markup Generator (JSON-LD)

Schema Markup Generator (JSON-LD)

Fill in a simple form and get ready-to-paste JSON-LD structured data for FAQs, how-tos, products, organizations, articles, local businesses and breadcrumbs. Live hints flag missing required and recommended properties before you test the page with Google.

Last updated:

Schema type
JSON-LD code

      

After publishing, test the page with the Google Rich Results Test or the Schema Markup Validator.

Advertisement
Advertisement

How to use the Schema Markup Generator (JSON-LD)

  1. Pick a schema type that matches the main content of your page, for example FAQPage for a list of questions or Product for a product page.
  2. Fill in the form. Replace the example values and use Add buttons for more questions, steps, images or profiles. Empty fields are left out of the code.
  3. Read the hints under the preview. Red items are required, amber items are recommended.
  4. Copy or download the code and paste the script tag into the HTML of the page, in the head or body.
  5. Test the page with Google's Rich Results Test after publishing to confirm Google can read it.

Which schema type should I use?

TypeUse it onKey propertiesGoogle rich result
FAQPageA page with a list of questions and your answersmainEntity → Question (name) → acceptedAnswer (text)Only for well-known government and health sites
HowToStep-by-step instructionsname, step (text), totalTime, supply, toolNo longer shown (since 2023)
ProductA page about one product you sell or reviewname + offers, aggregateRating or reviewPrice, availability and review stars
OrganizationYour home page or About pagename, url, logo, sameAs, contactPointLogo and details in knowledge panels
Article / BlogPosting / NewsArticleNews stories, blog posts, guidesheadline, image, datePublished, dateModified, authorBetter title, image and date display
LocalBusiness (and subtypes)The page of a physical shop, office or restaurantname, address, telephone, geo, openingHoursSpecificationBusiness details in Search and Maps
BreadcrumbListAny page that sits inside a hierarchyitemListElement → ListItem (position, name, item)Breadcrumb trail instead of the raw URL

Example: FAQPage JSON-LD

This is the structure the generator produces for a single question. Each extra question is another object in the mainEntity array:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [{
    "@type": "Question",
    "name": "Can I return an item?",
    "acceptedAnswer": {
      "@type": "Answer",
      "text": "Yes. Unused items can be returned within 30 days."
    }
  }]
}
</script>

Formats that trip people up

  • Dates use ISO 8601: 2026-10-05 or, with a time and UTC offset, 2026-10-05T14:30:00+02:00. Without an offset Google assumes the time zone of the site.
  • Durations such as totalTime also use ISO 8601: PT30M is 30 minutes and PT1H15M is one hour fifteen minutes.
  • Prices are plain numbers with a dot for decimals (1299.00, not $1,299); the currency goes in priceCurrency as a three-letter ISO 4217 code such as USD or EUR.
  • Availability and condition are schema.org enumeration URLs, for example https://schema.org/InStock and https://schema.org/NewCondition.
  • URLs must be absolute (starting with https://). Relative paths like /images/logo.png are not reliably resolved.
  • Country is best given as a two-letter ISO 3166-1 code (US, GB, DE), and phone numbers in international format with the country code.

Rules that keep structured data eligible

  • Mark up only content that visitors can see on the same page. Hidden or invented content can lead to a manual action.
  • Review stars must come from genuine reviews. Google does not show stars for reviews a business writes about itself (LocalBusiness and Organization self-serving reviews).
  • Keep the markup in sync with the page: update prices, availability and dateModified when the page changes.
  • Prefer the most specific type that fits, such as Restaurant instead of LocalBusiness or BlogPosting instead of Article.

Frequently asked questions

What is schema markup?

Schema markup is structured data that describes the content of a page using the shared vocabulary from schema.org. Search engines use it to understand the page and, for some types, to show rich results such as product prices, ratings, breadcrumbs or article details.

Why JSON-LD instead of Microdata?

Google recommends JSON-LD because it sits in one script block that is separate from your visible HTML, so it is easier to add, update and maintain. Microdata and RDFa have to be woven into the HTML elements themselves.

Where do I put the JSON-LD code?

Paste the whole script tag into the HTML of the page it describes, either in the head or anywhere in the body. In WordPress you can use a header-and-footer plugin or a custom HTML block. Each page should only describe its own content.

Does schema markup guarantee rich results?

No. Valid structured data makes a page eligible, but Google decides whether to show a rich result. The markup must also match content that is visible on the page, and the page must follow Google's content policies.

Does Google still show FAQ and HowTo rich results?

Since 2023 Google shows FAQ rich results only for well-known, authoritative government and health websites, and it no longer shows HowTo rich results. The markup is still valid schema.org and can be used by other search engines and AI tools, but most sites should not expect these results in Google.

Can I use more than one schema type on a page?

Yes. A product page can have Product and BreadcrumbList, and an article can have Article and BreadcrumbList. Add one script tag per type, or combine them in an array. Generate each type here and paste them one after another.

How do I test my structured data?

Use Google's Rich Results Test to see which rich results the page is eligible for, and the Schema Markup Validator at validator.schema.org to check the markup against the full schema.org vocabulary. After publishing, the Enhancements reports in Google Search Console show errors across your site.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Meta Tag GeneratorCreate SEO, Open Graph and X meta tags with live previews.Open Graph PreviewPaste OG tags and preview how links look on Facebook, X and LinkedIn.Sitemap GeneratorTurn a list of URLs into a valid XML sitemap file.Robots.txt GeneratorBuild a robots.txt file with rules, sitemap lines and AI-bot blocking presets.Hreflang Tag GeneratorCreate hreflang tags, sitemap entries and Link headers for every language and region, validated.JSON EditorEdit JSON in a tree and as code side by side: add, rename, drag, change types, undo and download.JSON Schema GeneratorTurn sample JSON into a draft 2020-12 JSON Schema with types, required fields and formats.JSON ValidatorCheck JSON with the exact line and column of each error, fix tips and one-click auto-fix.QR Code GeneratorMake QR codes for links, Wi-Fi, email and more.Barcode GeneratorCreate Code 128, EAN-13, UPC-A, EAN-8, Code 39 and ITF-14 barcodes as PNG or SVG.UUID GeneratorGenerate UUID v4 and v7 / GUIDs in bulk and copy or download them.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.Fake Data GeneratorGenerate mock data as JSON, CSV or SQL.Random String GeneratorGenerate secure random strings and tokens in bulk with any length and character set.API Key GeneratorCreate secure API keys and secrets with prefixes, checksums and SHA-256 hashes for storage.MIME Type LookupFind the MIME type for any file extension, or the extensions for a MIME type, in 400+ entries.Cron Expression GeneratorBuild crontab schedules visually, read them in plain English and see the next run times.URL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs: accents, stop words, separators and bulk lines.Gitignore GeneratorBuild a .gitignore from 50+ templates for languages, frameworks, IDEs and OS, merged and deduped.License GeneratorCreate a LICENSE file for MIT, Apache, GPL, BSD, ISC, MPL or Unlicense with your name and year.ULID GeneratorGenerate sortable ULIDs and UUID v7 in bulk, monotonic option, and decode their timestamps.Htpasswd GeneratorCreate .htpasswd entries with bcrypt, APR1-MD5 or SHA-1 for Apache and Nginx basic auth.Placeholder Image GeneratorCreate placeholder images in any size, color and text as PNG, JPG, WebP, SVG or data URI.Ads.txt GeneratorCreate or validate ads.txt and app-ads.txt files: seller lines, cert IDs and variables.Docker Run to Compose ConverterConvert docker run commands to docker-compose.yml, or a compose file back to docker run.Dockerfile GeneratorGenerate a production Dockerfile and .dockerignore for Node, Python, Go or a static nginx site.HTML Boilerplate GeneratorTick the options you need and get a clean HTML5 starter template with meta, OG tags and CSS reset.JSON to Zod SchemaInfer a Zod (or Yup) schema from sample JSON with optional, nullable and z.infer types.Linux Commands Cheat SheetSearchable Linux and bash command reference with flags explained, examples and copy buttons.LLMs.txt GeneratorBuild an llms.txt file for AI crawlers: summary and link sections, import from your sitemap.Nano ID GeneratorGenerate secure Nano IDs with custom alphabet, length and count, plus a collision calculator.Nginx Config GeneratorBuild an nginx server block: static site, SPA, reverse proxy or PHP, with SSL, gzip and redirects.OpenAPI / Swagger ViewerView OpenAPI 2/3 JSON or YAML as interactive API docs with validation and an endpoint list.package.json GeneratorFill a form and get a valid, npm-ready package.json with scripts, dependencies and checks.PKCE Code Challenge GeneratorGenerate an OAuth 2.0 PKCE code_verifier and S256 code_challenge, build auth URLs, verify pairs.README GeneratorFill in a form and get a polished README.md with badges, install, usage and license, live preview.Regex GeneratorBuild regular expressions visually from blocks or presets (email, date, phone) and test them live.Commit Message GeneratorBuild Conventional Commit messages with type, scope, body, breaking change and issue refs.cURL Command BuilderBuild curl commands from a form: method, headers, query, JSON or form body, auth and flags.Docker Compose to KubernetesConvert docker-compose.yml into Kubernetes Deployment, Service, ConfigMap and PVC manifests.Docker Compose ValidatorCheck a docker-compose.yml for YAML errors, schema mistakes, broken references and deprecated keys.Dockerfile LinterLint a Dockerfile for best practices: pinned tags, apt cleanup, non-root USER and layer count.Dockerignore GeneratorBuild a .dockerignore from Node, Python, Go and Java templates, plus your own entries.ESLint Config GeneratorGenerate a flat eslint.config.js for JavaScript, TypeScript, React or Node with rule presets.Git Branch Name GeneratorTurn a ticket ID and title into a clean, valid git branch name like feature/PROJ-12-add-login.GitLab CI Config GeneratorGenerate a .gitlab-ci.yml with stages, jobs, images, cache, artifacts and rules from templates.Jinja2 Template TesterRender Jinja2 templates with YAML or JSON variables using real Jinja2, with clear error lines.JSON Schema Mock Data GeneratorGenerate realistic sample JSON from a JSON Schema: formats, patterns, $ref, seeds and counts.Kubernetes Secret GeneratorCreate Kubernetes Secret YAML from key/value pairs or .env with auto base64, or decode one.Kubernetes YAML ValidatorValidate Kubernetes manifests against the API schema of a chosen version, with error paths.Prettier Config GeneratorToggle Prettier options, preview formatted code live and copy your .prettierrc file.Quartz Cron GeneratorBuild and explain Quartz and Spring cron expressions with seconds, ?, L, W and #, plus next fire times.README Badge GeneratorCreate Shields.io-style README badges for license, version, build and custom labels.Systemd Service File GeneratorCreate a systemd .service unit with ExecStart, user, restart policy, environment and hardening.tsconfig.json GeneratorBuild a tsconfig.json with target, module, strict checks and path aliases, each option explained.Access Log AnalyzerAnalyze Apache and Nginx access logs: top URLs, IPs, status codes, bots and traffic charts.Regex String GeneratorGenerate random test strings that match any regular expression, checked against the real regex.ASCII Table GeneratorTurn CSV or pasted cells into plain-text tables: MySQL, Markdown, Unicode box and reST styles.Database Schema DesignerDesign tables and relationships visually, then export SQL for MySQL, PostgreSQL or SQLite.Docker Compose GeneratorBuild a docker-compose.yml with a form: services, ports, volumes, env, healthchecks and presets.Dummy File GeneratorCreate test files of an exact size in KB, MB or GB with zeros, random bytes or text.FFmpeg Command GeneratorPick a task and options, get the exact ffmpeg command with every flag explained.Folder Tree GeneratorTurn a local folder or an indented list into an ASCII directory tree for your README.GitHub Actions Workflow GeneratorBuild a GitHub Actions CI workflow: triggers, matrix, caching, tests, Pages or Docker deploy.Kubernetes YAML GeneratorGenerate Deployment, Service, Ingress, ConfigMap, Secret and HPA manifests with safe defaults.Markdown TOC GeneratorGenerate a linked table of contents from Markdown headings with GitHub-style anchors.OpenAPI EditorEdit OpenAPI/Swagger YAML or JSON side by side with live API docs, validation and download.OpenAPI ValidatorValidate OpenAPI 3.0/3.1 and Swagger 2.0 specs: schema errors, broken $refs, line numbers.
See all 85 Code Generators & Builders →