JSON Formatter & Validator
Format, minify and validate JSON, with the exact line of any error.
Use toolRead the header and payload of a JSON Web Token and check its expiry.
Paste the token, with or without the "Bearer " prefix.
Read the decoded header (algorithm and type) and payload (the claims).
Check the expiry banner and the issued-at and expiry times.
Copy either part as formatted JSON.
A JSON Web Token (JWT) is how many APIs and login systems pass identity around. It has three parts separated by dots: a header that names the signing algorithm, a payload of claims such as the user ID and expiry, and a signature.
The header and payload are only Base64url-encoded, not encrypted, so anyone holding a token can read them. That is exactly what this tool does, which makes it handy for debugging "token expired" and permission errors.
Decoding does not prove a token is genuine. Only the server, with the secret or public key, can verify the signature. Because tokens often grant access, this tool never sends them anywhere.
The token is decoded in your browser and never sent to a server. Still, treat live tokens like passwords and avoid pasting them into tools you do not trust.
No. Verifying needs the secret or public key the token was signed with, which should stay on your server. This tool only reads what the token says.
They are times in seconds since 1970: exp is when the token expires, iat is when it was issued, and nbf is the earliest time it may be used.
A JWT must have exactly three dot-separated parts, and the first two must be Base64url-encoded JSON. Copying only part of the token is the usual cause.
Format, minify and validate JSON, with the exact line of any error.
Use toolEncode text to Base64 or decode Base64 back to text.
Use toolTest regular expressions with highlighted matches and capture groups.
Use toolDesign linear and radial gradients and copy the CSS.
Use tool