Add Schema Checker to your device

Use your browser menu to install this website as an app or add it to your home screen.

Step-by-step tool guide • FAQ

How to Format, Minify and Sort JSON-LD

Pretty-print, minify and reorder JSON object keys without changing structured-data facts or array order.

Try the live tool: Open Format, Minify and Sort JSON-LD →

What this tool does

Pretty-print, minify and reorder JSON object keys without changing structured-data facts or array order.

1. Paste valid JSON

Copy your JSON-LD into the formatter. Invalid JSON such as trailing commas is rejected rather than silently repaired.

2. Choose formatting

Select pretty-print or minify, choose indentation, and optionally sort object keys. Array order stays unchanged.

3. Inspect and export

Review the output and copy or download it. If you need eligibility guidance, send the result to the main checker.

Practical example

A compact Product object becomes an indented JSON object with the same @context, @type and name values.

Limits and responsible use

Formatting is not Schema.org validation. Key sorting is a readability choice; it does not change search rankings.

Keep the original markup for comparison. Review facts against the real page, and use the dated Google feature catalogue or official Google Search Central documentation where relevant. A local check is not a search-ranking or rich-result guarantee.

Authoritative references

Frequently asked questions

Answers are educational. FAQ markup does not guarantee Google FAQ rich results.

Does formatting fix missing required Google fields?

No. It changes representation, not factual content or eligibility.

Are JSON arrays reordered?

No. Arrays preserve their original element order.

What happens with invalid JSON?

The formatter reports a parse error and does not fabricate a corrected object.

← All guides · Open tool →

We are here to help

Need help with a tool?

Found a bug, unexpected result, or problem downloading a corrected file? Contact our support team. We welcome clear reports and suggestions.

Have a suggestion for improving or changing any of our tools? Please don't hesitate to contact our support team. We'd be happy to hear from you. Thank you for your feedback!

Get Edge ExtensionMicrosoft Edge · Coming Soon
Get it fromMicrosoft StoreComing Soon for Windows

Schema Support Checker Edge extension and Windows app are coming soon.

PASS SOMETHING USEFUL ON

Share this guide

Good website tools are
worth sharing.

Found this guide useful? Share this exact page with someone who may benefit. The Share Card never redirects to a different article, guide or tool.

Share only this page's public URL; your pasted input, results and uploaded files are never included.

You can also link to this page from your blog, community or project guide.
From the same owner

Explore our other projects

Imran Saeed
Developed by Imran Saeed

Independent tools for freelancers, developers and website owners.

Find structured data issues, understand Google guidance and apply safe fixes on your device.

Connect with Imran Saeed