AltUtils

JWT Decoder

Decode JWT header and payload, check expiry, and verify HS, RS, PS, ES and EdDSA signatures locally with Web Crypto — your token never leaves the browser.

CategoryDev Core
Sheet13 / 42
ProcessingIn your browser

What is the JWT Decoder?

This JWT Decoder splits a JSON Web Token into its header, payload and signature, decodes the Base64url parts as UTF-8 and pretty-prints the JSON — so names with accents, non-Latin scripts and emoji display correctly. Registered claims such as exp, nbf and iat are converted to readable dates, and a live status tells you whether the token is expired, not yet valid, or how long it remains valid, based on your device clock.

You can also verify the signature locally with the browser's Web Crypto API: enter the shared secret for HS256, HS384 and HS512, or paste a public key for RS256/384/512, PS256/384/512, ES256/384/512 and EdDSA (Ed25519). Keys are accepted as PEM public keys, PKCS#1 RSA keys, X.509 certificates, JWKs or a whole JWK Set, where the key is selected by the token's kid header.

Pasting production tokens into online tools is risky because many of them send the token to a server. Here, decoding and verification happen entirely in your browser: neither the token nor your secret or key is uploaded or stored.

Frequently asked questions

What is a JWT?
A JSON Web Token (RFC 7519) is a compact, URL-safe string with three Base64url-encoded parts separated by dots: a header describing the algorithm, a payload of claims, and a signature that protects both against tampering.
Are JWTs encrypted?
Usually not. Signed tokens (JWS) are only encoded, so anyone holding the token can read its payload. Encrypted tokens (JWE) have five parts instead of three; this tool shows their protected header but cannot decrypt the content.
Does this tool verify the signature?
Yes, if you provide the key. HMAC tokens (HS256/384/512) need the shared secret; RSA, RSA-PSS, ECDSA and EdDSA tokens need the issuer's public key as PEM, certificate, JWK or JWK Set. Verification uses Web Crypto and runs offline.
Is it safe to paste production tokens here?
The page makes no network requests with your input, so tokens and keys stay on your device. Still, treat live tokens like passwords: prefer expired or test tokens, and never share secrets you do not need to.
Why is my token shown as expired?
The exp claim is a Unix timestamp in seconds. If it is in the past according to your device clock, the token is expired. A clock that is off, or an exp written in milliseconds by mistake, are common causes of surprises — the decoder warns about the latter.
What do exp, nbf and iat mean?
exp (expiration time) is when the token stops being valid, nbf (not before) is when it starts being valid, and iat (issued at) is when it was created. All three are NumericDate values: seconds since 1970-01-01T00:00:00Z.
Why is alg "none" dangerous?
An unsecured token has no signature, so anyone can forge its claims. Servers must reject alg "none" and should only accept the specific algorithms they expect, to avoid algorithm-confusion attacks.