>_ MoriDev dev.moritools.com
RFC 7519 · Zero Upload 100% Client-Side · Zero Upload

JWT Decoder & Claims Inspector

Decode JWT Header and Payload locally with zero upload, human-readable exp/iat/nbf countdowns, and alg="none" security warnings.

Ready (Offline)
Quick Summary

Paste any Bearer or raw three-part JSON Web Token to inspect its decoded Header, Payload, signature segment, and human-readable exp/iat/nbf countdowns strictly in local memory—your token never touches a server.

Production JWTs often grant live administrative access to Stripe accounts, Kubernetes clusters, or customer tenants until their exp window elapses. Pasting an active access token into an analytics-heavy online decoder exposes bearer credentials to third-party logs.

This inspector strips optional "Bearer " prefixes, decodes Base64URL header and payload blocks locally, flags missing signatures or insecure alg="none" headers, and converts numeric epoch timestamps into live UTC dates and relative expiration timers.

Critical JWT Security & Debugging Pitfalls

01. Confusing Decoding With Cryptographic Verification

Anyone can Base64URL-decode a JWT header and payload without the secret key. Never trust decoded claims for authorization until the backend verifies the signature against a pinned JWKS public key or HMAC secret.

02. Algorithm Confusion & alg="none" Bypass

Older JWT libraries blindly trusted the header alg field, allowing attackers to forge tokens by switching RS256 to HS256 (signing with the public key) or setting alg="none". Always enforce an explicit algorithm allowlist on your server.

03. Clock Skew Around nbf and exp Claims

Distributed containers with 5 to 30 seconds of NTP drift can reject freshly minted tokens whose nbf (Not Before) timestamp lies slightly in the future. Most OIDC verifiers allow a small 30–60s leeway.

Registered RFC 7519 Claims Reference

Claim Full Name Operational Meaning
iss Issuer https://auth.example.com — authority that minted the token
sub Subject usr_88421 — immutable principal identifier
aud Audience api-gateway — intended recipient service(s)
exp Expiration Time Unix seconds after which token must be rejected
nbf / iat Not Before / Issued At Activation boundary and issuance epoch in seconds
jti JWT ID Unique nonce used for replay protection or revocation lists

Worked Engineering Examples

Spotting an Expired Access Token

Input
Header {"alg":"RS256","typ":"JWT"} · Payload {"sub":"usr_9","exp":1700000000}
Output
Status: Expired — 2023-11-14T22:13:20.000Z (shows exact elapsed duration)

Instantly distinguishes expired-token 401 failures from wrong-audience or missing-scope 403 errors.

Catching an Unsecured Token Header

Input
eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJyb2xlIjoiYWRtaW4ifQ.
Output
CRITICAL warning: Header declares alg="none" and signature segment is empty

Surfaces high-severity auth misconfigurations immediately during penetration testing or QA.

Frequently Asked Questions

Is it truly safe to inspect real staging or production JWTs here?

Yes. MoriDev is a 100% static site with zero backend APIs—you can even unplug your network cable or toggle offline mode in DevTools and JWT decoding still works identically.

Why does JWT use Base64URL instead of standard Base64?

Standard Base64 uses +, /, and = padding characters that require percent-encoding in URLs and HTTP headers. Base64URL replaces + with -, / with _, and omits trailing = padding.

Can this tool tell if the JWT signature is cryptographically valid?

No. Verifying a signature requires your server private HMAC secret or IdP JWKS public key. This inspector focuses on safe client-side header/payload decoding, timestamp checks, and structural security warnings.

Why did my JWT fail with "expected 3 dot-separated segments"?

Standard signed tokens (JWS) contain header.payload.signature. Five-segment tokens are encrypted JWE payloads whose ciphertext cannot be read without the decryption private key.

Continue Your Workflow

24 offline developer utilities