JSON formatter

Pretty-print, minify, and validate JSON, with the exact line and column when it fails.

Runs in browser

Use from your agent

Streamable HTTP at https://benchline.fabwaseem.com/mcp. No key. The tool name is format_json.

mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/calljson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "format_json",
7 "arguments": {
8 "json": "{}",
9 "indent": "2",
10 "sortKeys": false,
11 "minify": false
12 }
13 }
14}

How it works

Free JSON formatter and JSON validator that runs in the browser. Choose an indent of 2, 4, or a tab, sort object keys, minify, and read a tree of the value. Invalid JSON reports the line, the column, and the line of source.

  1. 01

    Paste JSON

    Drop a payload, a config file, or a response body into the editor. Nothing is uploaded.

  2. 02

    Pick pretty or minify

    Pretty uses 2 spaces, 4 spaces, or a tab. Minify removes the insignificant whitespace. Sort keys when you want a stable order.

  3. 03

    Read the error or the tree

    An invalid document names the line and column. A valid one can be copied, downloaded, or opened as a tree.

FAQ