JWT Payload Decoder & Signature Verifier
Inspect JSON Web Tokens (JWT) in real time with color-coded Header, Payload, and Signature sections, strict Base64URL UTF-8 decoding (including CJK & emojis), automatic iat/nbf/exp timestamp inspection, and local Web Crypto API HMAC signature verification.
{}
{}
⚡ Quick Answer
DayToolHub JWT Decoder parses Base64URL JSON Web Tokens 100% locally in your browser (supporting unpadded Base64URL, UTF-8, and emojis), highlights Header/Payload/Signature, inspects exp/nbf/iat claims with live expiration badges, and verifies HS256/HS384/HS512 signatures via Web Crypto API without ever uploading your token or secret.
How to Use JWT Payload Decoder
- Paste an encoded JWT into the input field (a leading "Bearer " prefix is stripped automatically), or click "Load Sample JWT" to test immediately.
- Review the color-coded three-part preview (Header, Payload, Signature) and pretty-printed JSON blocks with one-click copy buttons.
- Check the Standard Claims cards for formatted local timestamps (iat, nbf, exp) and a live Not Expired / Expired badge.
- For HS256, HS384, or HS512 tokens, enter your Secret to run genuine local signature verification using the browser’s Web Crypto API.
Anatomy of a JSON Web Token (RFC 7519)
A JWT consists of three unpadded Base64URL-encoded segments separated by dots (.):
Header . Payload . Signature
| Segment | Highlight Color | Purpose |
|---|---|---|
| Header | Rose / Red | Metadata describing the signing algorithm (alg such as HS256 or RS256) and token type (typ: "JWT"). |
| Payload | Purple | Contains registered and custom JSON claims (user ID, roles, timestamps). Anyone holding the token can decode and read the payload—never store plaintext secrets here. |
| Signature | Cyan / Blue | Cryptographic MAC or digital signature computed over base64url(Header) + "." + base64url(Payload) to prove integrity and authenticity. |
Standard Registered JWT Claims Reference
| Claim | Full Name | Description |
|---|---|---|
iss | Issuer | Principal that issued the JWT (e.g., an OAuth authorization server URL) |
sub | Subject | Unique identifier for the principal (usually a user ID) |
aud | Audience | Intended recipient(s) of the token (string or array of strings) |
exp | Expiration Time | Unix timestamp (seconds) after which the token must be rejected |
nbf | Not Before | Unix timestamp (seconds) before which the token is not yet valid |
iat | Issued At | Unix timestamp (seconds) indicating when the JWT was created |
jti | JWT ID | Unique token identifier used for revocation lists and replay protection |
Why Proper UTF-8 Base64URL Decoding Matters
Naive decoders using atob() alone corrupt multi-byte UTF-8 characters (such as accented letters, CJK names, or emojis) into mojibake. DayToolHub converts unpadded Base64URL directly into a raw Uint8Array and decodes it with TextDecoder('utf-8'), guaranteeing faithful display of international payloads.