# JWT Decoder

URL: https://hifreetools.com/developer/jwt-decoder

> A JWT decoder transforms the cryptic Base64-encoded segments of a JSON Web Token into readable JSON and human-friendly dates. Copy any JWT, paste it in, and instantly see what claims it contains—perfect for debugging authentication, understanding token payloads, and checking expiration without needing the secret key.

## Quick answer

Paste a JWT into the decoder and it base64url-decodes the header and payload into readable JSON, then converts Unix timestamps (exp, iat, nbf) into human-readable dates and times. The signature is NOT verified (you need the secret key for that)—this tool only reveals what data the token contains.

A JWT has three parts separated by dots: header.payload.signature. The decoder base64url-decodes the first two parts and parses them as JSON. When it encounters timestamp fields (exp = expiration, iat = issued-at, nbf = not-before), it converts Unix epoch seconds into a readable UTC date and time. The signature part is not decoded or validated, since signature verification requires the secret or public key.

## Examples

- Basic auth token with expiration: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMTIzIiwiZXhwIjoxNzM1Njg5NjAwLCJpYXQiOjE3MDQxNTM2MDB9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ → Header: {"alg":"HS256","typ":"JWT"} Payload: {"sub":"user123","exp":1735689600,"iat":1704153600} Decoded: exp = January 1, 2025 00:00:00 UTC, iat = January 2, 2024 00:00:00 UTC
- Token with nbf (not-before) claim: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZG1pbjI4OCIsIm5iZiI6MTcwNDE1MzYwMCwiZXhwIjoxNzM1Njg5NjAwfQ.signature → Header: {"alg":"RS256","typ":"JWT"} Payload: {"sub":"admin288","nbf":1704153600,"exp":1735689600} Decoded: nbf = January 2, 2024 00:00:00 UTC (token not valid before this date), exp = January 1, 2025 00:00:00 UTC
- Checking if a token has expired: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyNDU2IiwiZXhwIjoxNzA0MTUzNTk5fQ.sig → Header: {"alg":"HS256","typ":"JWT"} Payload: {"sub":"user456","exp":1704153599} Decoded: exp = January 1, 2024 23:59:59 UTC (EXPIRED as of June 6, 2026)

## FAQ

**Is my JWT secure if I decode it here?**
Yes—this decoder runs 100% in your browser, so your token never leaves your computer. Base64url encoding is not encryption: anyone holding the token can read the header and payload, so never put secrets in a JWT payload. Decoding does not reveal the signing key. The signature portion (which requires a secret key to generate) can be read but not faked.

**Can you verify the signature for me?**
No. Signature verification requires the shared secret (HMAC), which must stay private, or the issuer's public key (RSA/ECDSA/EdDSA). You must verify signatures on your backend or in a library that has access to the key. This tool only decodes and reads.

**How do I know if a token is still valid?**
The decoder shows you the exp (expiration), iat (issued-at), and nbf (not-before) timestamps as readable dates. Compare the exp date to today: if it's in the past, the token is expired and servers will reject it.

**What if the JWT is invalid or corrupted?**
If the JWT is malformed (no payload part, invalid Base64url characters, or non-JSON header or payload), the decoder will show an error. Fix the token structure and try again.

**Which timestamp claims does the decoder humanize?**
Three standard claims: exp (expiration time), iat (issued at), and nbf (not before). All are Unix epoch seconds. The decoder also compares exp with the current time and labels the token EXPIRED or valid.

**Can I use this for tokens from Google, Microsoft, or Auth0?**
Yes, if the token is a JWT (such as an OpenID Connect ID token; some access tokens are opaque strings, not JWTs), paste it in. You'll see the claims those providers issued—email, user ID, permissions, etc. Just remember the signature is not verified.


## Sources

- [RFC 7519: JSON Web Token (JWT)](https://tools.ietf.org/html/rfc7519)
- [jwt.io: JWT Introduction](https://jwt.io/introduction)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "JWT Decoder", https://hifreetools.com/developer/jwt-decoder
