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"
}Signature Verification
Payload: Data Claims
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022,
"exp": 1999999999
}Token Claims Inspector
May 18, 2033, 03:33:19 AM (1999999999)
Jan 18, 2018, 01:30:22 AM
Scrub API keys, internal IPs, hostnames, paths & emails locally first—then auto-restore tokens in the AI reply.
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.
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.
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.
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 (.):
Identifies the signature algorithm (e.g. HS256 or RS256) and token type (JWT). Base64URL-encoded JSON.
Contains the claims — user identity, permissions, and timestamps (sub, exp, iat). Readable by anyone who has the token.
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
| Claim | Name | Example | Purpose |
|---|---|---|---|
| sub | Subject | "usr_10482" | The unique identifier of the user or entity. |
| iss | Issuer | "https://auth.kitwharf.com" | Identifies the authority that issued the token. |
| exp | Expiration Time | 1760000000 | Unix timestamp after which the token must be rejected. |
| iat | Issued At | 1759900000 | Unix timestamp when the token was created. |
| aud | Audience | "api.kitwharf.com" | The intended recipient or API service for the token. |
| nbf | Not Before | 1759900000 | Unix timestamp before which the token must not be accepted. |
Frequently Asked Questions
In-Depth Guides & Tutorials
Formulas, industry standards, and best practices for JWT Encoder, Decoder & Debugger.
JSON Web Tokens (JWT) Explained: How They Work, How to Decode Them, and Security Best Practices
Understand the inner mechanics of JSON Web Tokens (JWT). Learn how Header, Payload, and Signature connect, decode Base64URL claims, and avoid critical security vulnerabilities like the alg: none exploit.
How to Decode and Validate SSL Certificate Signing Requests (CSR): The Complete Guide
Understand the inner workings of PKCS#10 Certificate Signing Requests (CSR). Learn how to inspect Subject DN attributes, verify Subject Alternative Names (SANs), validate key lengths, and avoid CA rejection.
Bcrypt Hash Generator & Verifier Guide: OWASP Cost Factors, 72-Byte Limit & Local Security
Learn how Bcrypt ($2a/$2b/$2y) protects passwords, choose the right OWASP cost factor (10–12), avoid the 72-byte UTF-8 truncation trap, and test hashes locally in browser RAM.
Related Workflow & Next Tools
Continue seamlessly with zero-upload utilities built to pair with JWT Encoder, Decoder & Debugger.
SSH Key Pair Generator (Ed25519, RSA, ECDSA)
Generate OpenSSH Ed25519, RSA 4096-bit, and ECDSA key pairs 100% locally in browser RAM using WebCrypto. Export public/private keys and Drunken Bishop randomart.
2FA / TOTP Authenticator & QR Secret Inspector
Generate 6-digit RFC 6238 2FA codes, scan or drop otpauth:// QR codes, inspect secret key entropy, and diagnose clock drift 100% locally in browser memory.
SHA Hash Generator & UUID Creator
Generate SHA-1/256/384/512 digests from any text and mint bulk UUID v4 identifiers using your browser's Web Crypto API.
HMAC & File Checksum Verifier (SHA-256, SHA-512, MD5)
Verify SHA-256, SHA-512, SHA-1, MD5, and CRC-32 checksums of large ISOs and installer files locally in browser memory without uploading. Smart diff highlighter and keyed HMAC mode.