What is the JWT Decoder?
A JSON Web Token (JWT) is a compact, URL-safe token defined in RFC 7519. Many APIs use JWTs for authentication. It has three Base64url-encoded parts separated by dots: a header (the signing algorithm), a payload of claims (who the user is, when the token expires) and a signature.
Paste a token and this JWT decoder shows the header and payload as formatted JSON. It also turns the standard time claims iat, nbf and exp into readable local dates and tells you whether the token has expired. Decoding happens entirely in your browser. That matters, because a valid JWT works like a password until it expires, and you should never paste one into a site that sends it to a server.
How to use the JWT Decoder
- Copy a JWT, for example from an
Authorization: Bearer …header in your browser's developer tools. TheBearerprefix is removed for you. - Paste it into the Encoded JWT box. It is decoded as you type.
- Read the header and payload, and check the claims table for the issuer, subject and expiry.
Frequently asked questions
Does this tool verify the JWT signature?
No. Decoding only reads the header and payload, which anyone can do. Verifying the signature needs the secret or public key and must be done on your server with a trusted library. Never trust a decoded payload until its signature has been verified.
Is it safe to paste my token here?
The token never leaves your browser, because nothing is uploaded. Even so, treat production tokens like passwords: clear the box when you are done, and don't share screenshots that show them.
What do exp, iat and nbf mean?
They are Unix timestamps in seconds. iat is when the token was issued, nbf is when it starts being valid, and exp is when it expires.
Is the payload of a JWT encrypted?
No. A normal signed JWT (JWS) is only encoded, so anyone holding the token can read the payload. Do not put secrets in it. Encrypted tokens (JWE) have five parts and cannot be decoded without the key.