🔒 Your JSON never leaves your browser. Safe for config files and API payloads.
Using an AI agent or a script? Call this tool as an API
AI agents and scripts can call this tool directly, to check their work or look something up, and get JSON back with the same answer this page gives. No key needed.
GET https://digitalgreenhouse.com.au/api/tools/json-formatter?text=%7B%22name%22%3A%20%22DG%22%2C%20%22tools%22%3A%2032%2C%7D
text— string, required. The JSON text.mode— string, one ofvalidate|format|minify, defaultvalidate. validate only, or also return formatted/minified output.indent— string, one of2|4|tab, default2. Indent for mode=format.
The API answers from our server, and our code doesn’t store what you send. Fair-use limits apply. API guide · all endpoints (JSON) · OpenAPI
About JSON
JSON (JavaScript Object Notation) is the lingua franca of APIs and config files. It’s strict, though: keys and strings need double quotes, no trailing commas, and no comments. A single stray character breaks the whole document — which is why a validator that points to the exact spot saves so much time.
Format vs minify
Format (beautify) adds indentation and line breaks so a human can read it. Minify strips every needless space to make the smallest possible payload for sending over the wire. Both produce the same data.