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.

🔒 Privacy Guarantee: 100% local in-browser decoding & verification. Your JWT tokens and secrets are NEVER saved, logged, or sent to any server—use with complete peace of mind.
🛡️ Local HMAC Signature Verification (Web Crypto) HS256
HEADER Algorithm & Token Type
{}
PAYLOAD Claims & Data (UTF-8)
{}

⚡ 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

  1. Paste an encoded JWT into the input field (a leading "Bearer " prefix is stripped automatically), or click "Load Sample JWT" to test immediately.
  2. Review the color-coded three-part preview (Header, Payload, Signature) and pretty-printed JSON blocks with one-click copy buttons.
  3. Check the Standard Claims cards for formatted local timestamps (iat, nbf, exp) and a live Not Expired / Expired badge.
  4. 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
issIssuerPrincipal that issued the JWT (e.g., an OAuth authorization server URL)
subSubjectUnique identifier for the principal (usually a user ID)
audAudienceIntended recipient(s) of the token (string or array of strings)
expExpiration TimeUnix timestamp (seconds) after which the token must be rejected
nbfNot BeforeUnix timestamp (seconds) before which the token is not yet valid
iatIssued AtUnix timestamp (seconds) indicating when the JWT was created
jtiJWT IDUnique 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.

Frequently Asked Questions (FAQ)

Are my JWT tokens or secret keys ever saved or sent to a server?
Never. Decoding, claim inspection, and Web Crypto HMAC verification execute 100% locally inside your browser. Zero network requests are made with your token or secret.
Why can the JWT payload be decoded without knowing the secret?
Standard JWS tokens are Base64URL-encoded for transport, not encrypted. The secret key protects integrity via the cryptographic signature rather than hiding payload contents.
Which algorithms are supported for local signature verification?
This tool uses the native Web Crypto API (crypto.subtle) to verify HMAC symmetric algorithms: HS256, HS384, and HS512, with both UTF-8 text and Base64-encoded secrets. Asymmetric tokens (RS256, ES256, EdDSA) are still fully decoded and inspected.
Can I paste a full "Authorization: Bearer ..." token?
Yes. Any leading "Bearer " prefix and surrounding whitespace/line breaks are automatically cleaned before parsing.
How can I try signature verification right away?
Click "Load Sample JWT" to generate a fresh HS256 demo token signed with the secret "daytoolhub-demo-secret". Edit any character in the token or secret to watch the badge immediately switch to Invalid Signature.

Related Tools & Further Reading