A JWT decoder reads the Base64url-encoded header and payload of a compact JWT and displays their JSON content without verifying the token.
Developers use this kind of inspection during troubleshooting to understand a token’s structure, algorithm field, and claims. The JWT Decoder performs that inspection locally in the browser, making it a practical way to review a token you already have permission to view. The distinction is important: decoding answers what the token says, while verification answers whether the issuing system should trust it.

What a compact JWT decoder reveals
The expected input is the familiar three-part compact JWS representation described in RFC 7519: header.payload.signature. For a token this tool accepts, the first two segments contain Base64url-encoded UTF-8 JSON objects. The header can reveal fields such as the algorithm and token type, while the payload contains application data and claims.
The decoder presents the decoded header and payload separately. It also recognizes registered claims for issuer, subject, audience, expiration time, not-before time, issued-at time, and JWT ID. Private or custom claims remain visible in the raw payload, but the tool does not assign them a special meaning.
The third segment is treated differently from the first two. Its compact Base64url shape is checked, but its bytes are not interpreted as a verified signature. Consequently, a clean-looking result can expose useful development information without proving that the token was issued by a trusted party.
Decode a compact JWT locally
- Paste the complete compact token. Keep the token in its original header.payload.signature form. Surrounding whitespace is trimmed, but the three internal segments must remain intact.
- Select Decode JWT. The page splits the token into exactly three segments, decodes the header and payload as UTF-8 JSON objects, and displays the header, payload, and recognized claims. Every successful decode is labeled as unverified.
- Review the result as diagnostic information. Check the algorithm field and claims for the development question you are investigating, then validate the token in the application that issued it whenever trust matters. Remove the token from the input when you are finished.
Decoding and verification are different operations
A readable JWT can still be forged, expired, intended for another audience, or signed with a key you do not trust. Decoding does not change any of those risks. It only translates the first two segments into human-readable JSON.
| Question | What the decoder provides | What it cannot establish |
|---|---|---|
| What does the token contain? | The decoded header, payload, and visible claims | Whether those contents are authentic |
| Is the signature valid? | The compact shape of the third segment | Whether a trusted key produced a valid JWS signature |
| Is the issuer correct? | The issuer claim, when present | Whether it matches the expected issuer |
| Is the audience correct? | The audience value, which may be a string or array | Whether the current service should accept it |
| Is the token current? | NumericDate values and readable ISO timestamps | Whether expiration or not-before rules pass |
| Does the user have access? | Any visible scopes, roles, or custom claims | Whether an authorization decision should be granted |
This page does not accept a secret or public key, fetch a signing key, validate a JWS signature, check an issuer or audience, apply clock skew, or make an authorization decision. An empty third segment can occur with an unsecured token, but it remains unverified and should not be trusted.
Input format and errors the decoder reports
Base64url uses the URL-safe alphabet described by RFC 4648: letters, digits, hyphens, and underscores. JWT compact serialization normally omits Base64 padding, so the decoder rejects padding characters instead of silently accepting a different representation. It also rejects structurally impossible segment lengths.
Both the header and payload must decode into JSON objects. Arrays, null, plain text, and malformed JSON are not accepted as those two sections. The page reports errors for a missing segment, an extra segment, invalid Base64url characters, and invalid UTF-8 in the decoded header or payload.
These rules make the input boundary explicit, but they do not repair broken tokens. The decoder also cannot reveal the contents of an encrypted JWE because it only handles the expected compact representation and does not decrypt encrypted content.
Read registered claims without treating them as policy
Registered claims describe information associated with a JWT. The decoder surfaces them for inspection and leaves every acceptance decision to the owning application.
| Claim | Meaning | What the decoder displays |
|---|---|---|
| iss | Issuer | The issuer value without checking it against an expected issuer |
| sub | Subject | The subject identifier without deciding who the user is |
| aud | Audience | A string or array without deciding whether it matches the intended service |
| exp | Expiration time | The NumericDate value and an ISO timestamp as a reading aid |
| nbf | Not-before time | The NumericDate value and an ISO timestamp as a reading aid |
| iat | Issued-at time | The NumericDate value and an ISO timestamp as a reading aid |
| jti | JWT ID | The identifier without enforcing uniqueness |
RFC 7519 defines exp, nbf, and iat using NumericDate seconds. The added ISO representation makes those values easier to read, but it does not establish that a token is currently acceptable. Expiry handling also depends on the issuer’s configured clock-skew policy and the validation rules of the application receiving the token.
For an independent look at a timestamp value, the Unix Timestamp Converter can display it separately. That still does not turn the timestamp into a validity decision; the service’s complete authentication policy remains authoritative.
Handle token data safely
JWT Decoder performs its work locally. It does not upload the token, send it to an API, fetch a signing key, store a copy, or require an account. This makes it suitable for a quick development inspection when you already have authority to view the token.
Local processing does not make the token’s contents harmless. A JWT can contain personal identifiers, tenant information, scopes, or other sensitive application details even when it is not a password. Avoid pasting production credentials into shared screens, issue trackers, chat messages, screenshots, or third-party online decoders. Obtain a token only in an environment where inspection is allowed, review only what you need, and clear the input afterward.
Validate tokens in the owning application
Use a decode-only tool to answer diagnostic questions such as which algorithm is listed, what audience is present, or what a custom claim contains. Use the authentication library and key-management flow of the application that issued or accepted the token to answer security questions.
A maintained validation flow can verify the expected algorithm, obtain the appropriate key through the approved key-management process, check the issuer and audience, evaluate expiration and not-before values with the configured clock-skew policy, and enforce application-specific requirements. The decoder cannot discover a signing key, repair a broken token, decrypt a JWE, or determine whether a person may access a system.
The safe rule is straightforward: treat decoded output as unverified information, never as proof of a valid login, and make every trust or authorization decision inside the service that owns that responsibility.
For a deeper look, see How to Generate a JWT Secret Key in the Terminal.