JWT Decoder

See the header, payload and expiry inside a token. Decoding only reads it; it doesn't check the signature.

JWT Decoder

Developer Tools

Runs locally in your browser.

Important: Decoding a JWT does not verify its signature. Anyone can read the contents of a JWT — never trust the claims until the signature has been verified on your server with the correct secret or public key.

About the JWT Decoder

When building authentication systems JSON Web Tokens (JWT) are the industry standard to verify a user's session and protect API routes. However, to the human eye, a JWT is just a long unreadable string of alphanumeric characters. When debugging login flows, checking token expiration times, or verifying user roles developers need a fast way to read the underlying data without exposing their active, sensitive access tokens to third-party servers.

This JWT Decoder solves this problem instantly. It translates the Base64Url string into readable JSON allowing you to inspect the header and payload claims. It runs in your browser, so the token is not sent to us.

Key Features of JWT Decoder

  • Instant Payload DecodingPaste your encoded token and instantly view the decoded JSON header and payload claims. Quickly verify user IDs, roles, and expiration timestamps (exp) during active development.
  • 100% Local ProcessingNever leak an active access token again. This tool decodes your JWT natively using client-side JavaScript. Your tokens are never transmitted over the network, saved in databases or stored in server logs.
  • Security warningA visible notice reminds you that decoding a token does not verify that it is authentic.
  • Simple interfacePaste a long token into the large field, then use "Decode" or "Clear".

How to Use JWT Decoder

  1. Paste your encoded JSON Web Token (the long string containing two periods) into the "JWT token" input field.
  2. Click the "Decode" button to parse the string.
  3. Review the output to inspect the decoded JSON header (which details the algorithm) and the payload claims (which contain the actual data).
  4. Click "Clear" to wipe the input field when you are finished debugging.

JWT Decoder Examples

The header and payload of a made-up token. Decoding does not verify the signature.

Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0MiIsInJvbGUiOiJlZGl0b3IifQ.c2lnbmF0dXJl
Result
{
  "alg": "HS256",
  "typ": "JWT"
}
{
  "sub": "42",
  "role": "editor"
}

JWT Decoder — Frequently Asked Questions

What is a JWT?
A JSON Web Token (JWT) is an open standard used to securely transmit information between parties as a JSON object. It is most commonly used for user authentication and authorization in modern web applications.
Why can anyone decode a JWT?
JWTs are inherently designed to be easily decoded. The data inside (the header and payload) is simply Base64Url encoded, not encrypted. This design allows frontend client applications to easily read user data. The actual security of the token comes from its cryptographic signature, not from hiding the payload.
How do I actually verify a token?
To verify that a token is authentic and has not been tampered with, your backend server must check the JWT's signature using the secret key (for HMAC algorithms) or the public key (for RSA/ECDSA algorithms) that originally created it.