Schema Markup vs JSON-LD: What's the Difference?

What's the difference between schema markup and JSON-LD? Schema markup is the goal; JSON-LD is the recommended format. Clear explanation of the relationship between them.

Short answer

Schema markup refers to the practice of adding structured, machine-readable data to a web page using the Schema.org vocabulary. JSON-LD is one of the three formats you can use to implement that markup. Schema markup is the goal (adding structured metadata); JSON-LD is the format Google and other major platforms recommend for achieving it. In practice, "schema markup" and "JSON-LD" are often used interchangeably, but understanding the distinction helps when evaluating implementation options.

What is schema markup?

Schema markup is the generic term for structured data annotations on a web page that use the Schema.org vocabulary. When a publisher adds schema markup to a page, they declare machine-readable facts about its content. This is an Article, written by this Author, published on a given day. This is a Product with this Price and this Rating. This is an Event at this location on this date. Schema markup allows search engines, AI systems, and other automated tools to extract structured facts without relying on natural language processing of prose. The Schema.org vocabulary defines hundreds of types and thousands of properties, giving publishers a shared language for describing almost any kind of content. Schema markup can be implemented in three formats: JSON-LD, Microdata, and RDFa.

What is JSON-LD?

JSON-LD (JavaScript Object Notation for Linked Data) is a format for encoding structured data. In the context of schema markup, a JSON-LD block is a <script type="application/ld+json"> element embedded in the HTML of a page, containing a JSON object that declares the page's structured data using Schema.org types and properties. JSON-LD is the format recommended by Google, and it has become the dominant implementation method because it separates the structured data from the HTML content of the page - making it easier to maintain, test, and validate. The other two formats (Microdata and RDFa) embed schema annotations directly within the HTML elements, which is more error-prone and harder to manage, particularly at scale.

Key differences

Aspect Schema Markup JSON-LD
Type Practice / goal Data format / implementation method
What it describes The use of Schema.org vocabulary on a page A specific syntax for encoding that vocabulary
Alternatives Can be implemented as JSON-LD, Microdata, or RDFa One of three formats for schema markup
Recommended by Google Yes (as a practice) Yes (as the preferred format)
Location in HTML Varies by format <script> block in <head> or <body>
Depends on the other Schema markup can exist without JSON-LD (if using Microdata/RDFa) JSON-LD needs a vocabulary - Schema.org is standard

How they work together

In most modern implementations, schema markup and JSON-LD amount to the same thing, because JSON-LD is the format people choose for it. The <script type="application/ld+json"> block contains a Schema.org-typed JSON object, and that is your schema markup.

The conceptual separation matters when evaluating legacy implementations. Older sites often embed Microdata or RDFa-based schema markup in their HTML. It is still schema markup, but it is not JSON-LD. If you are auditing or migrating structured data, the goal is to represent the correct Schema.org types with accurate property values; the format question is secondary, though migration to JSON-LD is generally recommended for maintainability.

For MX (Machine Experience) purposes, the substance is what matters: a page that correctly declares its author, publication date, and content type in JSON-LD is more machine-readable than one with no structured data, regardless of format. JSON-LD is the practical standard because it is easier to implement, validate, and maintain - but the underlying vocabulary (Schema.org) is what defines the semantic meaning.

Which do you need?

For any new structured data implementation, use JSON-LD. It is the format Google recommends, the easiest to implement without touching existing HTML, and the most straightforward to test using validation tools.

If you have existing Microdata or RDFa on older pages, it continues to work. Migration to JSON-LD is good practice when pages are being reworked, but it is not an emergency. The structured data signals are read regardless of format.

If someone tells you to "add schema markup", the practical instruction is: add a JSON-LD block with the appropriate Schema.org type and properties for your content. Schema markup in JSON-LD form is the standard implementation path.

For MX, the requirement is accurate structured metadata using Schema.org - the format is JSON-LD by convention. Pages with correct author, date, content type, and relevant Schema.org properties declared in JSON-LD cover the per-page structured data part of the MX standard.

Common misconceptions

"JSON-LD and schema markup are completely different things." They are not different things - JSON-LD is the standard format for implementing schema markup. The distinction is between the practice and the format. In current usage, implementing schema markup almost always means writing JSON-LD.

"Schema markup only helps with Google rich results." Structured data declared using Schema.org is read by multiple systems: search engines for rich results, AI systems as a machine-readability signal, social platforms for Open Graph-adjacent context, and any automated tool that processes your pages. The investment in accurate schema markup has broad reach.

"My CMS adds schema markup automatically, so I don't need to check it." CMS-generated schema markup is often incomplete or inaccurate. Default templates may populate some fields and leave others empty, or may use generic types when more specific ones would be more informative. Always validate what your CMS generates against what the page contains using a structured data testing tool.

Run a free AX (Agent Experience) Audit on your site