JWT Decoder

Decode JSON Web Tokens (JWT) locally to view their header and payload.

Security Warning: Decoding a JWT does not verify its signature. Do not trust the payload unless you verify the signature on your server.

HeaderAlgorithm & Token Type
PayloadData & Claims

Tokens are decoded locally. They are never sent to a server.

About JWT Decoder

This tool decodes JSON Web Tokens (JWT) so you can inspect their header and payload claims in readable JSON. It translates UNIX timestamps (exp, iat, nbf) into local dates and flags whether the token has expired. Because decoding runs in client memory, your tokens and session claims are not sent to any server. Note that this tool inspects token contents but does not verify cryptographic signatures against private keys.

Common Practical Use Cases

1

Debugging OAuth 2.0 / OpenID Connect authentication flows

2

Verifying user role and permission scopes assigned in token payloads

3

Checking whether a token expiration timestamp (exp) has elapsed

4

Inspecting signing algorithm configurations (RS256 vs HS256)

5

Auditing custom claims embedded in Single Sign-On (SSO) SAML-to-JWT bridges

How to Use JWT Decoder

  1. 1Paste your raw JWT string (three-part dot-separated string) into the input area.
  2. 2The tool splits the token and decodes the Base64URL payload.
  3. 3Inspect the formatted JSON header and payload claims.
  4. 4Check the expiration date to verify whether the token is currently active.

Practical Worked Examples

Inspecting Authentication Token Claims

Sample Input / Scenario
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImV4cCI6MTgwMDAwMDAwMH0.signature
Computed Result / Action
Header: {"alg":"HS256","typ":"JWT"}
Payload: {"sub":"1234567890","name":"John Doe","admin":true,"exp":1800000000}

Explanation: Reveals user identifier, administrative status, and expiration epoch.

Supported Formats & Specifications

Accepted Inputs:

  • Standard 3-part dot-separated JWT strings (header.payload.signature)

Generated Outputs:

  • Decoded Header JSON
  • Decoded Payload Claims JSON
  • Formatted expiration timestamps

Key Features & Technical Capabilities

  • Decodes JWT Header and Payload JSON structures instantly
  • Human-readable date parsing for standard claims (exp, iat, nbf)
  • Identifies expired tokens with visual status flags
  • Client-side memory decoding without server transmission

Under the Hood: Browser Processing Architecture

  • Decodes Base64URL strings by replacing "-" with "+" and "_" with "/", followed by UTF-8 byte decoding.
  • Automatically parses standard epoch timestamps into localized Intl.DateTimeFormat strings for immediate visual validation.

Browser Limits & Edge Cases

  • This tool is an INSPECTOR, not a cryptographic verifier. It does not verify the signature against private secret keys, as keys should never be pasted into a browser.

Common Mistakes to Avoid

  • Assuming that because a token can be decoded, it is cryptographically valid (signature verification on backend servers is required for authorization).

Client-Side Code Formatting & Token Privacy

Isolated Local Script Sandbox

With JWT Decoder, syntax parsing, encoding/decoding, and cryptographic hashing run locally in your browser's JavaScript engine. API keys, JWT tokens, and sensitive payloads never leave your computer. Standard static web assets and client runtime scripts are delivered securely via CDN over encrypted TLS (HTTPS).

Frequently Asked Questions

How do I decode an ID token (OIDC / OAuth 2.0 JWT)?

Paste the full three-part ID token string (header.payload.signature) into the JWT Decoder box. The tool automatically Base64URL-decodes the header and payload JSON in your browser so you can inspect claims like sub, email, iss, aud, and expiration (exp) without sending credentials to any server.

Is it safe to decode my JWT here?

Yes. The token is parsed strictly in your browser's local memory. However, never share production tokens containing sensitive private user data.

Why does my JWT signature validation fail on my server if it decodes fine here?

Decoding simply unpacks the Base64URL string into plain JSON. It does not perform cryptographic signature validation. If validation fails on your server, there is likely a mismatch in the signing key, algorithm (such as RS256 vs HS256), or the token has expired.

What do the exp, iat, and nbf claims mean?

These are standard registered claims in the JWT specification. exp stands for Expiration Time, iat for Issued At, and nbf for Not Before. They dictate the exact time window in which the token is considered valid.

Recommended In-Depth Guides