JWT Decoder Online — Inspect Claims and Expiry Safely
Decode JWT headers and payloads; inspect signature segments and expiry dates instantly. Review claims locally in your browser with clear warnings.
JWT Decoder
How to Use This Tool
- 01 Paste the complete compact JWT into the input area. A copied Bearer prefix, surrounding quotation marks, a byte order mark, outer spaces, and wrapped line breaks are identified and removed with a visible cleanup note.
- 02 If you do not have a token at hand, choose Load sample. Its UTF-8 name, audience list, roles, and standard time claims show the layout; its illustrative signature is not valid authentication material.
- 03 Read the formatted header for the advertised algorithm and token type. Then read the payload for the issuer, subject, audience, expiration, start time, issue time, token ID, and any application-specific fields.
- 04 Compare the time status with the separate UTC, browser-local, and relative displays. The calculation uses Unix seconds and your current browser clock; it does not prove that a server accepts the token.
- 05 Use the Copy action in each section header for just that section, or Copy report and Download JSON above the result for a combined record. Handle copied tokens as carefully as other credentials.
How It Works
Practical Examples
Checking a rejected access token
Header: {"alg":"RS256","typ":"JWT"}; payload: {"sub":"user-123","exp":1735689600}
Expired when the browser clock passes 2025-01-01 00:00:00 UTC.
A developer can spot an old exp immediately, then investigate token renewal. The header merely advertises RS256; this decoder cannot confirm that an RS256 signature was produced by a trusted key.
Finding an audience mismatch
Payload: {"iss":"https://example.com","aud":["web-app","mobile-app"],"sub":"user-123"}
Registered claims table lists issuer, audience array, and subject separately.
An API expecting a different audience may reject the token even when its time window is active. Compare aud with the audience configured by the receiving service.
Spotting milliseconds in a time claim
Payload: {"iat":1735689600000,"exp":1893456000000}
Millisecond warning and invalid time status.
JavaScript Date.now() returns milliseconds, but JWT NumericDate expects seconds. Divide by 1,000 in the producer if those values were entered accidentally, then issue a new token.
Tips & Best Practices
- Check the issuer and audience together with the time claims. A current expiration does not make a token suitable for every API or every user.
- Treat a two-part token or a three-part token with an empty signature as unsigned. It may be useful for debugging, but a protected service should validate the format and signature according to its own policy.
- Use UTC when comparing dates with server logs. Your local clock display is convenient for people, while UTC avoids confusion across time zones and daylight-saving changes.
- If a pasted token has five parts, it is probably a JWE. A JWE encrypts content and needs the appropriate decryption key and library; Base64URL parsing alone will not reveal its claims.
- If JSON parsing fails, inspect the named segment and reported line and column. A missing quote, comma, or brace in the original JSON can break a token even if its Base64URL encoding looks normal.
- Avoid posting real access tokens in issue trackers or chat. Local decoding reduces exposure to a remote decoder, but copies, screenshots, browser extensions, and downloaded reports can still disclose credentials.
Frequently Asked Questions
Does decoding a JWT verify its signature?
No. Decoding only reads Base64URL and JSON. A valid-looking payload may have been edited or invented. Verification requires the correct algorithm, trusted key, and application checks for issuer, audience, time, and any other policy before accepting the token.
Is my token uploaded to a server?
No. Parsing, formatting, time calculation, and copy preparation run inside your browser. The page does not submit your token to a decoding endpoint. Keep the resulting text private when you copy, download, or share it.
What do exp, nbf, and iat mean?
exp is the expiration boundary, nbf means not before, and iat is issued at. Their values are Unix seconds, including possible fractional seconds. The status compares exp and nbf with your current browser clock; iat is displayed as context.
Why does a token show active but my API still rejects it?
The badge only describes the visible time window. The server may reject a bad signature, untrusted issuer, wrong audience, revoked token, unsupported algorithm, missing permissions, or clock skew. Check the server validation response and configuration.
Why does my pasted token have five segments?
Five compact segments usually indicate a JSON Web Encryption token, or JWE. Its payload is encrypted rather than directly readable. This decoder is intended for signed JWTs with three segments; decryption requires appropriate keys and a JWE-aware library.
What if the expiration value appears to be in milliseconds?
JWT NumericDate uses seconds, while some programming APIs produce milliseconds. The decoder flags very large time values and avoids presenting a misleading date. Verify the producer and generate a corrected token instead of editing a signed token by hand.
Related Tools
Base64 Encoder
Encode and decode UTF-8 text, JWT-ready URL-safe Base64, and files to Data URIs instantly in your browser with live validation and zero server uploads.
CSV ↔ JSON
Convert CSV to JSON and JSON to CSV bidirectionally in your browser with full RFC-4180 quote handling, custom delimiters, header toggles, and instant download.
JSON Formatter
Beautify, validate, sort keys, and minify JSON payloads instantly in your browser with line-by-line error diagnostics and one-click download.
Regex Tester
Test JavaScript regular expressions with live match highlighting, capture groups, flags and replacement preview. Runs locally in your browser.