Skip to tools

Encoders / Decoders

JWT Decoder

A JSON Web Token has three Base64URL parts: a header, a payload and a signature. The JWT Decoder splits the token and shows the header and payload as formatted JSON, so you can check claims such as sub, exp, iat, roles and scopes while debugging authentication.

Decoding happens locally, which matters because tokens often grant access to real accounts.

How to use the JWT Decoder

  1. 1Use the JWT Decoder right on this page, or open the full workspace for history, sharing and every other tool.
  2. 2Paste your input, upload a file, or drag and drop a file onto the input box (up to 25 MB).
  3. 3The result appears in the output panel automatically and updates when you change the input or an option.
  4. 4Use Copy Output or Download to save the result. Nothing is uploaded to a server.

Example

A sample token is decoded into its header and payload claims.

Input
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMiLCJuYW1lIjoiQWRhIn0.abc
Output
{
  "header": {
    "alg": "HS256"
  },
  "payload": {
    "sub": "123",
    "name": "Ada"
  }
}

When to use it

  • Checking why an API returns 401 by inspecting token expiry
  • Verifying which roles or scopes an identity provider issued
  • Debugging OAuth and OpenID Connect integrations

Tips and common mistakes

  • Decoding does not verify the signature — never trust a token just because it decodes.
  • exp and iat are Unix timestamps; paste them into the Timestamp Converter.
  • Avoid pasting production tokens into tools that send data to servers.

Frequently asked questions

Does this validate the token?

No. It decodes the readable parts. Signature verification requires the secret or public key and should happen on your server.

Is my token sent anywhere?

No. The token is decoded entirely in your browser.

TutorialJWT anatomy: what lives inside a token

Related tools

Ready to try it?

Free, no sign-up, and your data never leaves your browser.