JWT Decoder
Paste a JSON Web Token to read its header, payload and expiry time. Everything runs locally in your browser — the token is never uploaded, and the signature is not verified.
JWT in one line: three Base64URL parts joined by dots — header.payload.signature. The header and payload are encoded, not encrypted, so anyone holding the token can read them without a key; the signature only proves who issued it.
✅ Quick Answer
Paste the token below and the decoder shows the algorithm, the claims (sub, exp, iat and the rest) and whether the token has expired. It does not check the signature — that needs the issuer's key.
Frequently Asked Questions
What is a JWT?
A JSON Web Token is a compact string with three dot-separated parts: header, payload and signature. The header and payload are Base64URL-encoded JSON, so anyone holding the token can read them without a key — the signature only proves the token was issued by the holder of the signing key, it does not hide the contents.
Does this tool verify the signature?
No. It only decodes the header and payload. Verifying a signature requires the issuer's key or secret, which this page never asks for. A decoded token can still be forged, so never treat decoding as proof that a token is valid.
Is it safe to paste a JWT here?
Decoding happens entirely in your browser and nothing is uploaded, so the token does not leave your device. That said, a JWT is a live credential: anyone who copies it can act as that user until it expires. Avoid pasting production tokens into any page you do not control, and revoke the token if it is exposed.
How do I read the expiry time?
The payload's exp claim is a Unix timestamp in seconds. The decoder converts it to your local time and compares it with now, so you can see whether the token is still valid. The optional iat (issued at) and nbf (not before) claims are converted the same way.
Why does the payload look like Base64URL instead of JSON?
JWT uses Base64URL, a URL-safe variant of Base64 that replaces + and / with - and _ and drops the = padding. It keeps the token safe to put in a URL or header, but it is encoding, not encryption — decoding it back to JSON takes no key.
Can I decode an encrypted JWT (JWE)?
No. A JWE has five parts separated by dots and its payload is encrypted with a key you do not have, so it cannot be decoded without that key. This tool handles signed tokens (JWS) with three parts. If your token has five parts, it is encrypted and needs the decryption key from the issuer.
JWT Decoder — Read a Token's Header, Claims and Expiry
A JWT decoder turns the opaque-looking token you copied from a login response back into the JSON it started as. Paste it above and you get the signing algorithm, the claims and a plain-language answer to the question that matters most in debugging: is this token still valid?
What a JWT actually contains
- Header — the signing algorithm (
alg) and token type (typ), for example HS256 or RS256. - Payload — the claims:
sub(subject),iss(issuer),aud(audience),exp(expiry),iat(issued at) and any custom fields. - Signature — a cryptographic value that lets the issuer's server check the token has not been altered. It is not encrypted and cannot be read as JSON.
Decoding is not verification
This distinction matters. Decoding only reverses the Base64URL encoding, which anyone can do. Verification checks the signature against the issuer's key and is the only thing that proves a token is genuine. Use this decoder to read and debug a token; leave verification to the server that issued it.
Common JWT claims
| Claim | Meaning | Example |
|---|---|---|
sub | The subject the token is about, usually a user ID. | "1234567890" |
iss | The issuer that signed the token. | "https://auth.example.com" |
aud | The intended audience (API or app). | "api.example.com" |
exp | Expiry time, a Unix timestamp in seconds. | 1700003600 |
iat | When the token was issued. | 1700000000 |
nbf | Not valid before this time. | 1700000000 |
Debugging a payload that will not parse? Pair this with the Base64 Encoder for raw Base64URL strings, the JSON Formatter to validate what comes out, and the URL Encoder when a token has to travel in a query string.