A JSON Web Token commonly contains three dot-separated segments: header, payload, and signature. The first two segments use Base64url encoding, which makes their JSON readable without any secret key.
Decoding answers what the token claims. Verification checks whether a trusted issuer signed the token and whether its protected content is unchanged. An application must not grant access based only on decoded values.
Understand the three segments
The header identifies the token type and signing algorithm. The payload contains claims such as issuer, subject, audience, expiration, and application-specific data. The signature binds the encoded header and payload to a key.
JWT payloads are not encrypted by default. Do not place passwords, private keys, or information that should be hidden from the token holder in an ordinary signed JWT.
base64url(header).base64url(payload).signatureDecode for inspection
Decoding is useful for debugging claim names, timestamps, and token shape. It does not prove who created the token. Anyone can construct a header and payload that claim administrator access.

Inspect a harmless example and read timestamps correctly
Use Load sample in JWT Decoder instead of an active credential. Header and Payload update as the JWT field changes; there is no separate decode button. The ordinary signed form has three segments, but this decoder can also display two-segment input. Displayed JSON therefore does not establish even a complete signed-token structure.
Numeric iat, nbf and exp values are interpreted as Unix seconds and displayed in UTC. For example, 1704067200 corresponds to 1 January 2024 at 00:00:00 UTC. That is different from passing the same number directly to JavaScript Date, which expects milliseconds.
new Date(1704067200 * 1000).toISOString()
// 2024-01-01T00:00:00.000ZThe decoded expiration row reports what the payload says. It is not an independent guarantee that the token is genuine or current. iat alone also does not define expiration. Check the application's expected lifetime and required claims separately rather than inferring validity from a readable date.
Verify the signature and claims
Verification must use the expected algorithm and the correct trusted key. After cryptographic verification, the application still needs to validate claims such as expiration, not-before time, issuer, and audience.
Do not accept the algorithm solely because the untrusted header requested it. Server libraries should be configured with an explicit allowlist and appropriate key type.
- Verify the signature with a trusted secret or public key.
- Require the expected issuer and audience.
- Reject expired tokens and respect not-before times.
- Keep signing keys out of browser code and public repositories.
Understand exactly what the browser verifier checks
JWT Verifier has a JWT field and an HMAC secret field and updates automatically when either changes. It supports HS256, HS384 and HS512, not RSA or elliptic-curve public-key verification. Use only synthetic test tokens and a disposable test secret when experimenting; do not paste a production signing secret into a web page.
The helper checks the HMAC signature over the encoded header and payload. It also marks a numeric exp as expired when it is earlier than the current whole Unix second. It does not require exp, validate its type for application policy, enforce nbf, compare issuer or audience, or look up revocation.
A synthetic correctly signed token can therefore receive The signature is valid. while carrying the wrong audience or a future not-before time. This was checked with a locally generated disposable fixture, not a live account token. The message means a cryptographic check passed for the supplied secret, not that a server should grant access.
Expiration equality is another boundary to test: this helper uses exp < now, whereas the accepting application must enforce its own required expiration boundary and allowed clock tolerance. Do not use the browser verifier as a replacement for a maintained server-side verification library and explicit trusted-key, algorithm and claim policy.
Handle tokens carefully
Bearer tokens can grant access to whoever possesses them. Avoid pasting production tokens into remote debugging services, exposing them in screenshots, or placing them in URLs. Redact tokens from logs and use short lifetimes with a deliberate renewal strategy.
ToolsOnDuty decoding and supported HMAC verification run in the browser, but real application authorization belongs on a trusted server that controls keys and policy.
Try the related tools
Apply the steps from this guide directly in your browser.
Frequently asked questions
Can I read a JWT without the secret key?
You can decode the usual signed JWT header and payload because they are encoded, not encrypted. You cannot establish authenticity without verification.
Does a valid signature mean the token should be accepted?
No. The browser helper checks HMAC and a limited numeric-exp condition, not issuer, audience, not-before, required claims or revocation. A real application must apply its own complete acceptance and authorization policy.
Should a JWT contain sensitive information?
Not in a normal signed JWT payload. The holder can read it. Store only claims appropriate for client visibility and protect the token itself.
