{"inline_business":{"jwt-decoder":{"jwt_token":"Encoded JWT Token","placeholder_jwt":"Paste your JWT token here (e.g. eyJhbGciOi...)","clear":"Clear","load_sample":"Sample","token_valid":"Valid JWT structure (3 segments)","token_invalid":"Invalid token","header":"Header","payload":"Payload / Claims","signature":"Signature Verification","copy":"Copy","copied":"Copied!","expiration":"Expiration (exp)","issued_at":"Issued At (iat)","expired":"Expired","active":"Valid & Active","signature_info":"The signature verifies that the token was not altered in transit. It must be checked on the server using your secret or public key.","security_notice":"Processed 100% locally in your browser. No tokens or keys are ever transmitted to any server.","format_jwt_invalide":"Invalid JWT format. A JWT must contain 3 parts separated by dots (Header.Payload.Signature).","invalid_base64":"Invalid base64 encoding","decode_error":"Unable to decode the JWT token: {{message}}","structure_corrompue":"Corrupted structure.","unit_days":"{{value}}d","unit_hours":"{{value}}h","unit_minutes":"{{value}}m","algorithme":"Algorithm","inconnu":"Unknown"}},"docs_business":{"tools":{"jwt":{"content":{"title":"Decoding a JWT: header, claims and expiry, without the signature","intro":"A JWT (RFC 7519) is three Base64URL segments separated by dots: header, payload and signature. The tool decodes the first two into JSON, converts the iat and exp dates and tells you whether the token has expired; it does not verify the signature, which requires the secret or public key on the server side.","details":"

What the decoder does

  1. It splits the token on dots and requires exactly 3 segments; a 5-segment encrypted JWE is rejected.
  2. It turns - and _ back into + and /, pads with = and decodes as UTF-8.
  3. It parses header and payload with JSON.parse and shows the algorithm (alg) and type (typ).
  4. It converts iat and exp (seconds since 1 January 1970) into local dates and compares exp with your device's clock.

Example with the sample token

The header declares alg HS256 and typ JWT. The payload holds sub, name (Jean Dupont), admin, iss and two dates: iat = 1516239022, i.e. 18 January 2018 at 01:30 UTC, and exp = 1781623922, i.e. 16 June 2026 at 15:32 UTC. Checked on 14 October 2026, the token shows Expired, about 120 days ago. The signature is displayed as-is, unchecked.

Security limits

Decoding runs in the browser; the token is not sent anywhere.

"}},"jwt-decoder":{"faqs":[{"question":"Does the JWT decoder verify the token signature?","answer":"No. It decodes the header and payload and shows the raw signature without checking it. Verifying HS256 needs the secret key, RS256 or ES256 the public key: do it server-side with a JWT library."},{"question":"How can I tell whether a JWT has expired?","answer":"The exp claim holds a date in seconds since 1 January 1970. The sample token has exp = 1781623922, i.e. 16 June 2026 at 15:32 UTC: the tool marks it expired once your device clock passes that time and shows the gap in days, hours and minutes."},{"question":"Can anyone read a JWT without the key?","answer":"Yes, a signed JWT (JWS) is only Base64URL-encoded, so anyone can read its claims. The signature only prevents undetected changes. A 5-segment JWE is encrypted, and the tool rejects it."},{"question":"Why does the tool say the JWT format is invalid?","answer":"The token must contain exactly three dot-separated segments. A truncated copy, spaces, the Bearer prefix or a 5-segment encrypted token trigger the message; a segment that is not Base64URL-encoded JSON causes a decoding error."}]}}}}