How to use it
- Paste the token: three parts separated by dots, usually starting with
eyJ. You can paste it with theBearerprefix too. - Press Decode: you see header, payload and expiry, with readable dates.
- The token stays in your browser: it is sent to no one and it does not end up in the address of the page.
How a JWT is made
A JSON Web Token has three parts encoded in Base64url and separated by dots. The header names the signature algorithm (alg) and the type; the payload holds the information (the claims), such as who issued it (iss), whom it refers to (sub), whom it is for (aud) and when it expires (exp); the signature guarantees that the first two parts were not changed.
Decoding is not verifying
The content of a JWT is not encrypted: anyone who has the token can read it, so it must not contain passwords or confidential data. The signature can only be verified with the key of whoever issued it: this tool shows it but does not verify it. A token whose alg is none has no signature, and a server must never accept it.