JWT Decoder

Decode and inspect JSON Web Tokens instantly. View header algorithm, payload claims, expiry time, and signature structure — all client-side, nothing sent to server.

Decode JWT Token

Paste your JWT token below. Tokens are decoded entirely in your browser — your token is never sent anywhere.

Sample tokens:

What Is a JWT (JSON Web Token)?

A JSON Web Token (JWT, pronounced "jot") is a compact, URL-safe token format defined in RFC 7519. It is used to securely transmit information between parties as a JSON object. JWTs are the standard authentication mechanism for modern web applications, REST APIs, and single-page applications (SPAs). When a user logs in, the server creates a JWT containing the user's identity and permissions, signs it with a secret key, and sends it to the client. The client includes this token in subsequent API requests, allowing the server to verify the user's identity without querying a database on every request.

JWT Structure — Three Parts

A JWT consists of three Base64URL-encoded parts separated by dots: header.payload.signature

PartContainsExample
HeaderAlgorithm (alg) and token type (typ){"alg": "HS256", "typ": "JWT"}
PayloadClaims — data about the user/entity{"sub": "1234", "name": "Alice", "exp": 1704067200}
SignatureHMAC or RSA signature of header + payloadVerifies the token has not been tampered with

The header and payload are simply Base64URL-encoded JSON — they are not encrypted. Anyone who has the token can decode and read the payload. The signature is what provides integrity: if a single character in the header or payload is changed, the signature verification will fail, and the server will reject the token.

Standard JWT Claims

ClaimFull NameDescription
subSubjectWho the token is about — typically the user ID
issIssuerWho created and signed the token (your auth server)
audAudienceIntended recipient — prevents token reuse across services
expExpiration TimeUnix timestamp after which the token is invalid
iatIssued AtUnix timestamp of when the token was created
nbfNot BeforeToken is invalid before this Unix timestamp
jtiJWT IDUnique identifier to prevent token replay attacks

Signing Algorithms

JWT Security Best Practices

JWT vs Session Cookies

Session cookies store a session ID in the cookie and keep the session data server-side (in memory, database, or Redis). The server looks up the session on every request. This approach is simpler to implement and easier to revoke (just delete the session), but requires server-side state and does not scale as easily across multiple servers.

JWTs are stateless — all the information is in the token itself. The server does not need to store session data, making JWTs ideal for microservices, mobile APIs, and horizontally scaled systems. The trade-off is more complex token management (expiration, refresh, revocation) and larger request headers.

Security Warning

Never paste production JWT tokens containing sensitive data into online tools you do not trust. This tool runs entirely in your browser — no data leaves your device. However, always treat JWTs like passwords: if a token is exposed, it can be used to impersonate the user until it expires.

Frequently Asked Questions — JWT Decoder

Written and reviewed by the FreeBytes Editorial Team · Last updated: June 2026