What is a JWT?
A JSON Web Token (JWT, often pronounced "jot") is a compact, signed piece of JSON used to pass identity and permissions between systems. It is defined by RFC 7519. When you sign in to an app, the server often gives you a JWT, and your browser sends it back with each request, usually in an Authorization: Bearer … header.
A JWT is three Base64URL-encoded parts joined by dots:
header.payload.signature
- The header says how the token is signed, for example
{"alg": "HS256", "typ": "JWT"}. - The payload holds the claims: statements about the user and the token, such as who it is for and when it expires.
- The signature is computed from the header and payload with a secret or private key. It lets the receiver detect any change to the token.
How to decode a JWT
- Paste the token into the box. A
Bearerprefix, quotes or line breaks are removed for you. - The header, payload and claims appear as you type. Time claims are converted to readable dates.
- Check the status line: it says whether the token has expired, is not valid yet, or has no expiry.
- Select Copy header or Copy payload to use the decoded JSON elsewhere.
- To check the signature, enter the secret or paste the issuer’s public key under Verify the signature.
The page opens with an example token and its secret, so you can see a verified result straight away. Paste your own token to replace it.
Creating a token
The Create a token tab signs a header and payload with a secret (HS256, HS384, HS512) or a private key (RS, PS, ES and EdDSA, as PEM or JWK). Signing happens in your browser with Web Crypto. Use it for tests and local development, with test keys: a production private key should never be pasted into any website.
Decoding is not verifying
Decoding a JWT only reverses the Base64URL encoding, and anyone can do it. It tells you what the token claims, not whether those claims are true. Someone could create a token with "role": "admin" in seconds.
A server must verify the signature before trusting anything in a token. That means checking the signature with the issuer’s key, using an algorithm it expects (never none), and checking exp, nbf, iss and aud. Use a maintained library for this rather than writing your own. This page can verify a signature too, which helps when debugging, but it doesn't replace the check on your server.
Registered claims
These standard claims have the same meaning in every JWT:
iss(issuer): who created the token, such ashttps://auth.example.com.sub(subject): who the token is about, usually a user ID.aud(audience): which service the token is meant for.exp(expiration time): after this moment the token must be rejected.nbf(not before): before this moment the token must be rejected.iat(issued at): when the token was created.jti(JWT ID): a unique identifier that helps stop a token being reused.
Any other claim, such as name, email or roles, is defined by the application that issued the token.
Times in JWTs
exp, nbf and iat are Unix timestamps: whole seconds since 1 January 1970 UTC. For example, 1760000000 is 9 October 2025, 08:53:20 UTC. A common bug is writing milliseconds instead, which puts the expiry tens of thousands of years in the future. This decoder warns when a time looks like milliseconds.
Decoding a JWT in code
To read a payload in a current browser (without verifying it):
const [, payload] = token.split('.');
const claims = JSON.parse(
new TextDecoder().decode(Uint8Array.fromBase64(payload, { alphabet: 'base64url' })),
);
In Node.js, Buffer.from(payload, 'base64url').toString('utf8') does the decoding. On the command line, standard base64 -d fails on JWTs because they use the URL-safe alphabet and omit padding.
For anything that makes a security decision, verify instead of decoding: use a library such as jose in JavaScript or PyJWT in Python, and pass it the key and the algorithms you accept.