JSON Formatter vs JWT Decoder
formatting
JSON Formatter
Pretty-print or minify JSON — with syntax validation.
Paste raw or minified JSON and format it with configurable indentation, or minify it by removing all whitespace. Validates syntax, reports parse errors with line/column, and optionally sorts keys or repairs malformed JSON.
Example input:
{
"json": "{\"name\":\"Alice\",\"age\":30}",
"mode": "pretty",
"indent": 2,
"sort_keys": false,
"repair": false
}encoding
JWT Decoder
Decode and verify JSON Web Tokens — header, payload, claims, and signature.
Paste a JSON Web Token to instantly decode its header and payload. Optionally supply a secret or public key to verify the signature.
Example input:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}| Feature | JSON Formatter | JWT Decoder |
|---|---|---|
| Category | formatting | encoding |
| Inputs | json, mode, indent, sort_keys, repair | token, secret, algorithm |
| Outputs | output, valid, error, error_line, error_column | header, payload, signature, valid_structure, verified |