Format your JSON-LD
Ready. Nothing has been uploaded.
Output
Pretty-print, minify or sort JSON-LD
Paste JSON-LD and choose whether to add readable indentation, remove insignificant whitespace or sort object keys. When sorting is enabled, the keys @context, @type and @id appear first; other keys are alphabetical. Arrays keep their original order because changing array order may change the meaning of data. The tool parses strict JSON before writing anything, so a trailing comma, unescaped quote or malformed object produces a clear error instead of an incorrect download.
Example and limitations
For a compact object containing @type and name, pretty-printing adds line breaks while minification removes extra spaces. Neither operation creates or changes a Product price, rating or address. A formatted JSON-LD document is not necessarily valid Schema.org markup and is not automatically eligible for a Google rich result. The input limit is 1 million characters; large inputs should be split into smaller files.
Official references
Strict JSON syntax is defined by RFC 8259. For semantic checks use Schema Markup Validator and the site's browser-local checker.
Step-by-step tutorial: Read the JSON-LD Formatter & Minifier guide and FAQs →



