Readers24
Tools

JWT Decoder & Debugger

Decode and inspect JSON Web Token (JWT) header and payload segments locally in your browser using UTF-8 Base64URL decoding, view UTC exp/iat/nbf timestamps, and inspect claims safely without uploading secrets.

Developer ToolsRuns Locally in Browser 100% Free • No Sign-Up
100% Client-Side: Your JWT token never leaves your browser
Expires (exp)Active

2030-01-01 00:00:00 UTC

Issued At (iat)

2024-11-27 09:33:20 UTC

Header (Algorithm & Token Type)
{
  "alg": "HS256",
  "typ": "JWT",
  "kid": "readers24-k1"
}
Payload (Claims & Data)
{
  "sub": "usr_394820",
  "name": "Ali Hussain",
  "role": "admin",
  "platform": "Readers24",
  "iat": 1732700000,
  "exp": 1893456000
}
Signature (HS256)Inspect Only — Signature Not Verified

SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Cryptographic verification requires your HMAC secret or RSA/ECDSA public key and should only be performed in your trusted backend.

How to Use JWT Decoder & Debugger

1

Paste an encoded 3-part JWT (or Load Sample JWT)

Paste your header.payload.signature string starting with eyJ...; the decoder splits segments live on '.' without clicking submit.

2

Inspect Active/Expired Badges, Header & Payload

Review converted UTC timestamps for exp (with Active/Expired badge), iat, and nbf, plus syntax-highlighted JSON trees for Header and Payload.

3

Copy Header/Payload JSON safely

Use individual Copy buttons on Header or Payload cards; remember that cryptographic signature verification is intentionally not performed here.

Practical Use Cases

  • Debug unexpected 401 Unauthorized responses by checking immediately whether an access token's 'exp' timestamp expired.
  • Confirm OAuth/OIDC user claims (sub, email, role, scope, aud, iss) inside staging authentication tokens.
  • Inspect JWT header algorithm ('alg': HS256/RS256/ES256) and Key ID ('kid') cleanly during auth migrations.
  • Decode JWTs containing international UTF-8 characters inside user display names without Base64 corruption.

Real Input & Output Examples

Inspecting Sample JWT Expiration & Claims

Decodes Header, Payload claims, and converts Unix timestamps to UTC badges.

Sample Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InJlYWRlcnMyNC1rMSJ9.eyJzdWIiOiJ1c3JfMzk0ODIwIiwibmFtZSI6IkFsaSBIdXNzYWluIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzMyNzAwMDAwLCJleHAiOjE4OTM0NTYwMDB9.SflK...
Actual Output
Expires (exp): 2029-12-31 00:00:00 UTC [Active]
Header: { "alg": "HS256", "typ": "JWT", "kid": "readers24-k1" }
Payload: { "sub": "usr_394820", "name": "Ali Hussain", "role": "admin" }

Detecting Malformed 2-Part Token

Missing signature segment or invalid Base64URL triggers an immediate diagnostic alert.

Sample Input
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMifQ
Actual Output
Invalid JWT format: expected 3 dot-separated parts (header.payload.signature), found 2.

Features, Supported Standards & Limitations

UTF-8 Safe Base64URL Decoder

Replaces URL-safe '-' / '_' characters, adds missing '=' padding, and decodes raw bytes through TextDecoder('utf-8') for accurate Unicode parsing.

Automatic Timestamp & Expiry Formatting

Detects numeric exp, iat, and nbf Unix epoch seconds and converts them into readable YYYY-MM-DD HH:MM:SS UTC strings with live Active/Expired comparison against Date.now().

Strict Client-Side Execution

Performs zero outbound HTTP requests—critical when inspecting developer staging or session JWTs.

Explicit Non-Verification Disclosure

Displays the raw signature string and algorithm badge with a clear notice that cryptographic signatures are NOT verified here.

Supported Formats, Standards & Inputs

  • RFC 7519 standard 3-part signed JWS JSON Web Tokens (header.payload.signature)
  • Base64URL decoding + UTF-8 JSON claims parsing
  • NumericDate epoch timestamps (exp, iat, nbf)

Limitations & Compatibility

  • DOES NOT cryptographically verify JWT signatures (HS256/RS256/JWKS)—never rely solely on decoded claims for authorization checks, and never paste private HMAC secrets or RSA private keys anywhere.
  • Supports standard 3-part signed JWTs (JWS) only—does not decrypt 5-part encrypted JWE tokens.
  • Active/Expired comparison compares exp against your local computer clock; skewed device clocks can affect expiration badges.
Privacy & Execution ArchitectureAll parsing, conversion, formatting, and generation for this tool executes locally inside your web browser with zero server storage.
Read Privacy Policy

Related Workflow Tools

Complementary utilities commonly paired with JWT Decoder & Debugger

Frequently Asked Questions

Does JWT Decoder verify whether a token signature is authentic or forged?

No. Decoding only unpacks Base64URL JSON from the first two parts—anybody can inspect JWT claims without knowing the key, and cryptographic verification always requires your backend's secret key or public JWKS key.

Is it safe to decode tokens here without leaking them?

All Base64URL decoding executes 100% locally in your browser with zero network calls. Still, as standard security practice, never paste high-privilege live admin secrets or raw signing secrets on shared machines.

Why didn't a 5-part JWE token work?

Five-part JWE tokens encrypt their payload with symmetric/asymmetric keys rather than plain Base64URL JSON, whereas this debugger decodes standard 3-part JWS JWTs.

Are JWT payloads encrypted?

In standard signed JWTs (JWS), header and payload are only Base64URL-encoded, NOT encrypted—so anyone holding the token can read claims. Never store passwords or raw PII inside standard JWT payloads.

How do I validate or reformat extracted claims further?

Click Copy on either the Header or Payload card and paste directly into JSON Formatter or JSON Validator.