JWT Decoder – Decode JSON Web Tokens Online
Paste a JWT to see its header and payload as readable JSON, with expiry dates in plain English. Decoding happens only in your browser.
JWT Input
Decoded Token
What Is a JWT?
A JWT (JSON Web Token) is a short, signed piece of text used for logins and API access. It has three parts separated by dots: a header, a payload with the user's claims (like user id, role and expiry time) and a signature. The header and payload are just Base64url-encoded JSON, so anyone can read them.
How to Decode a JWT
- Copy the token, for example from an Authorization header or your browser's storage.
- Paste it into the box and click Decode JWT, or press Ctrl + Enter.
- Read the header, payload and the expiry dates shown in plain English.
Common JWT Claims
- sub: the subject, usually the user id.
- exp: expiry time. After this moment the token should be rejected.
- iat: issued at, the time the token was created.
- nbf: not before, the token is not valid before this time.
- iss and aud: who issued the token and who it is for.
Important: decoding is not the same as verifying. This tool does not check the signature, so never trust a token just because it decodes. Never share real tokens from production systems.
The Three Parts of a JWT
A JWT is three Base64URL-encoded parts joined by dots: header.payload.signature.
{ "alg": "HS256", "typ": "JWT" }{
"sub": "1024",
"name": "Emily Clark",
"email": "emily.clark@example.com",
"role": "admin",
"iat": 1762560000,
"exp": 1920326400
}The header says how the token was signed. The payload holds the claims: facts about the user and the token. The signature proves that the server created the token and that nobody changed it. Only the server, with its secret or private key, can check it.
Common Claims
sub: subject, usually the user ID.iat: issued at, as a Unix timestamp in seconds.1762560000is 2025-11-08T00:00:00Z.exp: expiry time. After this the token must be rejected.nbf: not before; the token is not valid until this time.issandaud: who issued the token and who it is meant for.
This decoder turns these timestamps into readable dates and tells you whether the token has expired.
JWT Security Tips
- The payload is not secret. Anyone with the token can read it, so never put passwords or sensitive personal data in it.
- Always verify the signature on the server with a trusted library, and check
exp,issandaud. - Reject tokens with
"alg": "none"and only accept the algorithm you expect. - Keep access tokens short-lived (minutes, not months) and use refresh tokens for longer sessions.
JWT parts use URL-safe Base64. To decode other Base64 text, use the Base64 Decoder.
Frequently Asked Questions
Is it safe to paste my JWT here?
The token is decoded only in your browser and is never uploaded. Still, treat real tokens like passwords: avoid sharing production tokens and log out or rotate them if they leak.
Does this tool verify the signature?
No. It only decodes the header and payload so you can read them. Verifying a signature needs the secret or public key, and should be done by your server.
What does exp mean in a JWT?
exp is the expiry time, written as seconds since 1 January 1970 (Unix time). The tool shows it as a normal date and tells you if the token has already expired.
Why can anyone read a JWT?
The header and payload are only Base64url-encoded, not encrypted. Never put secrets such as passwords inside a JWT payload.