Brandon Lazovic

Tool · Structured data

JSON-LD prettifier & validator

Paste raw HTML or JSON-LD to get clean, formatted output plus a rich-result eligibility check against Google's current requirements for every object detected.Everything runs in your browser; nothing is uploaded.

InputHTML, a script tag, or raw JSON-LD
Output
Formatted output will appear here.

No output yet. Paste JSON-LD above, or

Next step: confirm eligibility in Google's Rich Results Test or the Schema.org validator.

What is JSON-LD, and why prettify it?

JSON-LD (JSON for Linking Data) is the format Google and other search engines recommend for structured data: a block of JSON in a<script type="application/ld+json"> tag that tells machines what a page is about. In production it is almost always minified onto a single line, which makes it nearly impossible to read or debug by eye. This tool re-indents that markup, extracts every object from a page's HTML, and confirms the JSON is valid so you can audit what a crawler or AI assistant actually sees.

How to use this tool

  1. Paste your markup. Paste full HTML source, a <script type="application/ld+json"> block, or raw JSON-LD into the input box.
  2. Prettify and validate. The tool extracts every JSON-LD object, formats it with clean indentation, and flags any syntax error with a line and column.
  3. Review detected types. Check the schema.org @type of each object detected (Product, Article, FAQPage, and so on).
  4. Copy or test. Copy the formatted output, then validate it in Google's Rich Results Test or the Schema.org validator.

You can paste any of these, and the tool figures out the rest:

  • a full HTML page (it finds every<script type="application/ld+json"> block)
  • a single <script> tag copied from View Source
  • a raw JSON-LD object, or an array of objects

How does it work?

The tool extracts each JSON-LD object, re-indents it with real line breaks, and colors keys, strings, and values for readability. It then reads each object's @type and compares its properties against Google's current rich-result requirements, drawn from Google's own structured-data documentation: required and recommended properties, "at least one of" groups (for example Product needs one ofoffers, review, oraggregateRating), and nested requirements likeoffers.price. Property and type matching is case-insensitive, so a mistyped Offers is recognized and flagged rather than silently ignored. Everything runs in your browser; no markup is uploaded.

Is my data safe?

Yes. Unlike server-based formatters, this tool does all parsing and formatting locally in your browser with plain JavaScript. Your markup is never transmitted, logged, or stored, which matters when you are inspecting structured data from staging environments or client sites.

Frequently asked questions

Is my structured data uploaded anywhere?

No. The tool runs entirely in your browser using JavaScript; your markup never leaves your device and is not sent to any server.

Can I paste a whole HTML page?

Yes. The tool finds every <script type="application/ld+json"> block in the HTML and formats each JSON-LD object it contains.

Does it validate against schema.org?

It does two things: confirms your JSON-LD is syntactically valid, and checks each object against Google's current rich-result requirements (required and recommended properties per type), flagging what is missing and which types are deprecated. For Google's own confirmation, the linked Rich Results Test remains the source of truth.

What happens if my JSON-LD has a syntax error?

The tool reports the parser error (with the line and column where your browser provides it) and still recovers and formats any valid objects it can extract from the malformed input.

Which structured data types does the validator check?

The 25 rich-result types Google currently documents, including Product, Article, Breadcrumb, Event, Recipe, Job posting, Organization, Local business, Review snippet, Video, Software app, Q&A, Course, and Dataset. It also recognizes FAQ and How-to and flags them as deprecated, since Google no longer shows those rich results.

Does it catch deprecated rich results like FAQ and How-to?

Yes. FAQ rich results were removed from Search in 2026 and How-to in 2023. The tool marks objects of those types as deprecated: the markup is still valid structured data, but it no longer earns a rich result, so you know it is safe to remove or deprioritize.

Related tools

Once your structured data is clean, map the pages it lives on with the URL taxonomy visualizer, or browse all SEO tools.