How-to
How to decode a JWT without leaking it
A JSON Web Token carries sensitive data, including user identities, assigned permissions, and expiration timestamps. Pasting a token into an untrusted online decoder risks exposing active session credentials to third-party servers. The decoder on this page operates entirely inside your web browser, allowing you to inspect payload claims, verify token validity, and validate HMAC signatures locally without sending any data over the network.
Step by step
- Open the JWT decoder and paste your token into the input box. A JWT is three Base64Url chunks joined by dots: header, payload, and signature. You can paste it with the Bearer prefix or without; the tool reads the structure either way and tells you immediately if the format is wrong.
- Read the decoded header and payload. The header shows the signing algorithm (for example HS256 or RS256) and the key id when present. The payload lists the claims: who the token is for (sub), who issued it (iss), and the timestamps. The tool turns the numeric iat, nbf, and exp fields into readable dates and flags whether the token is still valid or already expired.

- Inspect header and payload claims, check 5-part JWE headers when present, or verify and re-sign symmetric HMAC signatures (HS256, HS384, HS512) locally using a UTF-8 or Base64 secret key without exposing tokens to external servers.

Why you should never paste a token into a random site
A JWT is not encrypted. The header and payload are only Base64Url-encoded, which means anyone who receives the token can read every claim inside it: email, user id, roles, internal flags. If the token is an access token that has not expired, whoever holds it can replay it and act as you until it does. When you paste a live token into a hosted decoder, you send all of that to that server's logs. Decoding the token on your own machine, with no upload, is the only way to inspect it without widening who can see it. You can confirm there is zero traffic by opening the network panel while you decode.
| Feature | Local In-Browser Decoder | Public Cloud JWT Debugger | CLI (jwt-cli / jq) |
|---|---|---|---|
| File retention & verification | Zero upload, verifiable in your browser Network tab (F12) | Bearer Token Transmitted to Remote Server | Local Shell (No Network) |
| Reference | iss, sub, aud, exp, nbf, iat | iss, sub, aud, exp, nbf, iat | Manual jq Parsing / JWS Verification |
| Where your files are processed | In your browser: the file never leaves your device | On their servers: your file is uploaded | Local OS Execution |
| Account | Never required | Server Request Logs & Analytics | Never required |
What the signature can and cannot tell you
A signature check detects changes to the signed header and payload when you have the correct verification key. For HS256, HS384 and HS512, this tool checks the signature against the shared secret you supply. A matching signature does not establish where that secret came from, whether the issuer is trusted, or whether the token is intended for your application. RS256 and ES256 use a private key to sign and a public key to verify; this tool does not implement those verification methods. Authentication systems must also enforce expiry, issuer, audience and their own authorization rules.
| Feature | Base64URL Padding Missing (=) | Epoch Exp Timestamp (Seconds) | DevTools Zero-Upload Verification |
|---|---|---|---|
| Reference | RFC 7515 Base64URL Drops = Padding | exp / iat in Seconds (not Milliseconds) | F12 → Network (Fetch/XHR: 0 B) |
| Processing mode | str.padEnd(Math.ceil(len / 4) * 4, "=") | new Date(exp * 1000).toISOString() | 0 B Transmitted (Air-Gap Ready) |
| Scope | Client V8 / Web Worker | Pure Client-Side JS Engine | In your browser: the file never leaves your device |
JWT structure and what each part reveals
A JWT is three Base64url-encoded segments separated by dots: header, payload, and signature. The header declares the token type ("JWT") and the algorithm: HS256 (HMAC-SHA-256, a shared secret) or RS256 (RSA-SHA-256, a public/private key pair) are the most common. The payload carries claims such as sub (subject, usually a user ID), iat (issued-at Unix timestamp), exp (expiration Unix timestamp), aud (intended audience), and custom application claims like roles or scopes. Base64url is not encryption: it is a URL-safe variant of Base64 that replaces + with - and / with _, and omits padding. Anyone who holds the raw token string can decode the header and payload without the signing key. Only the signature segment requires the key to verify. This is why pasting a live production token into an external online decoder is a security risk: if the token exp claim is still in the future and the service logs the input, the session it represents may be compromised.
The tools used in this guide
- JWT Decoder & VerifierRead a JWT’s claims and expiry. Verify its HS256 signature if you know the shared secret.
- Hash GeneratorCompute MD5, SHA-1, SHA-256, SHA-384, or SHA-512 hashes and HMAC signatures from text or files.
- JSON FormatterFormat, validate, minify, escape, sort keys A-Z, and repair JSON or JSONC with exact line and column error reporting.
- UUID GeneratorGenerate v4 or v7 UUIDs individually or in batches of up to 100. Choose letter case and copy the identifiers.
Frequently asked questions
Is my token sent to any server when I decode it?
No. The decoder splits the token, Base64Url-decodes the header and payload, and renders them in memory. The optional HMAC check uses your browser's built-in Web Crypto API. Nothing travels over the network, which matters because a JWT often contains personal data and a session that is still live. Open your browser's network panel while decoding and you will see no request go out.
Can this tool verify an RS256 or ES256 signature?
No. This tool verifies and re-signs symmetric HMAC algorithms (HS256, HS384, and HS512) using a local text or Base64 secret. Asymmetric algorithms such as RS256 and ES256 are decoded for inspection, but their signature verification requires issuer public keys not configured here.