KitWharfFREEFast & Private Web Apps
100% In-Browser • Zero Server Uploads • Web Crypto API

JWT Encoder, Decoder & Debugger

Decode, inspect, and verify JSON Web Tokens (JWT) in real time. Validate expiration timestamps, inspect claims, and sign custom tokens with HMAC SHA-256 — all calculated locally on your device.

Header: Algorithm & Type

{
  "alg": "HS256",
  "typ": "JWT"
}
Algorithm: HS256•Type: JWT

Signature Verification

Enter Secret to Verify
Sig: Bw1x1p1v-o4sM5r7E4u2n5v6w8x9y0z1a2b3c4d5e6f

Payload: Data Claims

{
  "sub": "1234567890",
  "name": "John Doe",
  "iat": 1516239022,
  "exp": 1999999999
}

Token Claims Inspector

Expiration (exp):

May 18, 2033, 03:33:19 AM (1999999999)

Active (in 2357d)
Issued At (iat):

Jan 18, 2018, 01:30:22 AM

3241d ago
Subject (sub):1234567890
Need to debug JWT tokens & auth headers with ChatGPT or Claude?100% Local RAM

Scrub API keys, internal IPs, hostnames, paths & emails locally first—then auto-restore tokens in the AI reply.

Sanitize Before AI

Quick Presets & Common JWT Debugging Scenarios

Click any real-world scenario below to auto-populate the local debugger and test signature or expiration validation immediately.

OAuth 2.0 / OIDC

Inspect OAuth 2.0 Access Token (15-Min Expiry & Scopes)

OAuth 2.0 and OpenID Connect identity providers (Auth0, Cognito, Entra ID) issue short-lived JWT access tokens carrying aud, iss, and space-delimited scope claims. Use this preset to verify active expiration countdowns and HMAC-SHA256 signatures locally without exposing production bearer tokens.

401 Debugging

Diagnose Expired Session Token (401 Unauthorized)

When an API suddenly returns HTTP 401 Unauthorized, an expired exp Unix timestamp or clock skew on nbf is the most common root cause. Load this expired token to inspect the exact UTC expiration date, relative elapsed time, and remaining payload claims.

Security Audit

Unsecured alg: none Token (Vulnerability Test Case)

RFC 7519 defines alg: none for unsigned tokens, which historically allowed attackers to strip signatures and escalate privileges on misconfigured backends. Load this audit sample to verify how an unsigned token appears in the Header and Signature Inspector.

The Anatomy of a JSON Web Token (RFC 7519)

A JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties. A standard token consists of three distinct parts separated by dots (.):

1. Header (Red)

Identifies the signature algorithm (e.g. HS256 or RS256) and token type (JWT). Base64URL-encoded JSON.

2. Payload (Purple)

Contains the claims — user identity, permissions, and timestamps (sub, exp, iat). Readable by anyone who has the token.

3. Signature (Green)

A cryptographic hash of Header + Payload using your secret key. Guarantees the data has not been tampered with in transit.

Standard JWT Registered Claims Cheat Sheet

ClaimNameExamplePurpose
subSubject"usr_10482"The unique identifier of the user or entity.
issIssuer"https://auth.kitwharf.com"Identifies the authority that issued the token.
expExpiration Time1760000000Unix timestamp after which the token must be rejected.
iatIssued At1759900000Unix timestamp when the token was created.
audAudience"api.kitwharf.com"The intended recipient or API service for the token.
nbfNot Before1759900000Unix timestamp before which the token must not be accepted.

Frequently Asked Questions

Next Step in Your Workflow

Related Workflow & Next Tools

Continue seamlessly with zero-upload utilities built to pair with JWT Encoder, Decoder & Debugger.

View all 136 utilities