About this tool
Decode a JWT locally to inspect its header, payload and expiry while debugging sign-in and API auth. Tokens are not uploaded. Note that this tool does not verify signatures.
Typical uses
- Check the user ID and scopes in a login token
- See whether a token has expired
- Debug why API authorization fails
How to use
Paste a three-part JWT.
Decode it to inspect its header, payload and any readable expiration time.
This only decodes locally. It does not verify the signature, issuer or token validity; do not trust a token based on this view.
What the decoder shows and what it leaves out
The JWS compact form is three Base64url parts joined by dots: header.payload.signature (RFC 7515). The token below has the payload {"sub":"u-1029","scope":"orders:read","iat":1699996400,"exp":1700000000} and a placeholder signature part, c2ln:
| JWT |
|---|
| eyJhbGciOiJIUzI1NiIs…jE3MDAwMDAwMDB9.c2ln |
After Decode, the result box holds only the header and payload as formatted JSON. The signature part is neither decoded nor shown, so you cannot tell from this view whether it is valid or just a placeholder:
| Result box |
|---|
| Header |
| { |
| "alg": "HS256", |
| "typ": "JWT" |
| } |
| Payload |
| { |
| "sub": "u-1029", |
| "scope": "orders:read", |
| "iat": 1699996400, |
| "exp": 1700000000 |
| } |
The status line reads "Decoded for display only. Signature, issuer and validity were NOT verified. Expiration: 2023-11-14T22:13:20.000Z (expired)." Only exp is turned into a date; iat and nbf stay as raw numbers. Under RFC 7519 these NumericDate values count seconds from 1970-01-01T00:00:00Z, ignoring leap seconds, so you can paste them into the timestamp converter with the unit set to seconds. Expired or not expired comes from comparing exp with your device clock, so a wrong system clock gives a wrong verdict.
How different exp values are reported
Same header, different payloads. The table shows the exp part of the status line, taking 2026-11-23 as the current date:
| Payload | exp part of the status line | Note |
|---|---|---|
| {"exp":1700000000} | Expiration: 2023-11-14T22:13:20.000Z (expired). | The standard form: seconds |
| {"exp":1700000000000} | Expiration: +055840-11-08T22:13:20.000Z (not expired). | Milliseconds written as if they were seconds. The date lands about 50,000 years ahead, so it says not expired |
| {"exp":9000000000000} | The exp value is outside the supported date range. | Beyond the JavaScript date range |
| {"exp":"1700000000"} | — | A string is not treated as a time; nothing about exp is shown |
| {"exp":1700000000.5} | Expiration: 2023-11-14T22:13:20.500Z (expired). | Fractional seconds work and are shown to the millisecond |
If a token that should have expired shows not expired, look at the year first. A date far in the future usually means the issuer put milliseconds into exp.
Error messages and the inputs that cause them
When decoding fails, the result box is cleared and the status line shows one of these messages:
| Input | Message | Cause |
|---|---|---|
| eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30 | Enter a JWT with three dot-separated parts. | Only two parts |
| eyJhbGciOiJSU0EtT0FF…V5.aXY.Y2lwaGVy.dGFn | Enter a JWT with three dot-separated parts. | The JWE compact form has five parts (RFC 7516); this tool does not decrypt |
| eyJhbGciOiJIUzI1NiIs…CI6IkpXVCJ9.W10.c2ln | JWT header or payload is not a JSON object. | The payload is a JSON array |
| eyJhbGciOiJIUzI1NiIs…J9.eydzdWInOjF9.c2ln | Invalid JSON inside the JWT. Check the header and payload. | Single quotes are not valid JSON |
| eyJhbGciOiJIUzI1NiIs…I6IkpXVCJ9.abcde.sig | Invalid Base64 or UTF-8 encoding in the JWT. | The payload part length leaves a remainder of 1 when divided by 4, which cannot be Base64 |
| eyJhbGciOiJIUzI1NiIs…DEyMzQ1Njc4OTB9.c2ln | JSON number 12345678901234567890 cannot be represented safely (integer range: ±9007199254740991). Store it as a string to avoid precision loss. | An integer beyond ±9007199254740991 is refused rather than silently shown as an approximation |
- The signature part may be empty. An Unsecured JWT (alg none) as in RFC 7519 section 6.1 ends with a dot, and such tokens decode normally.
- The tool is more lenient than the standard. RFC 7515 Base64url has no = padding and does not use + or /, but both forms decode here. Decoding successfully does not mean the token is well-formed.
- RFC 7515 requires unique header parameter names; parsers must either reject duplicates or keep only the last one. This tool keeps the last one without warning: the header {"alg":"HS256","alg":"none"} is shown as alg: "none".
- Input is limited to 100,000 characters; leading and trailing whitespace is ignored.
Sources
Frequently asked questions
Does it verify the signature?
No. It only decodes; it does not verify the signature, issuer or validity, so do not trust a token based on this view.
Is it safe to paste a token here?
Decoding is local and the token is not sent anywhere, but handle production tokens with care.
How is expiry shown?
Time claims such as exp are converted to readable dates.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.