JSON formatter and validator
Paste an API response or a config file to make it readable, or minify it before shipping. If the JSON is broken, you get the line and the column of the mistake.
How it works
- Paste the JSON.
- Choose the indentation, or Minify.
- Press Convert, then copy or download the result.
What does the validator check?
That the text is valid JSON by the standard (RFC 8259): quoted keys, no trailing commas, no comments. The first error is reported with its line and column.
Why sort keys?
Sorted keys make two JSON files comparable line by line, which helps when you diff configs or snapshots.
Is my JSON stored?
No. It is parsed in memory and discarded when the answer is sent.
Use it from ChatGPT, Claude or your own agent
This tool is also a function an AI agent can call for you. It needs the same free account as this page, nothing else.
Fields
json(text, required): JSONindent("2" | "4" | "tab" | "minify", optional): Indentationsort_keys(true | false, optional): Sort keys A to Z
A call that works
POST https://orkosi.com/api/v1/public/tools/json-formatter/run
Authorization: Bearer <api_key>
{
"input": {
"json": "{\"name\":\"Orkosi\",\"plans\":[{\"id\":\"starter\",\"price\":19},{\"id\":\"pro\",\"price\":49}],\"live\":true}"
}
}Need an account? One request creates it and answers the key: POST https://orkosi.com/api/v1/public/signup. In Claude or ChatGPT, add the Orkosi connector and sign in: https://orkosi.com/api/v1/public/mcp.