Read a token
Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEyMzQifQ.c2lnbmF0dXJl
Output
Header: { "alg": "HS256", "typ": "JWT" }
Payload: { "sub": "user-1234" }Read the header and payload of a JSON Web Token and see when it expires. Nothing leaves your browser.
Everything happens on your device. What you type never leaves it.
This tool needs JavaScript to run
A JSON Web Token (JWT) is a short piece of text that apps use to say who you are or what you may do. It has three parts separated by dots: a header that describes the token, a payload that carries the claims, and a signature. The header and the payload are only encoded, not encrypted, so anyone who holds the token can read them. This tool does that reading for you.
Paste a token and the header and payload appear as formatted JSON as you type. The times in the token (issued at, not valid before and expires at) are shown as dates in your own time zone and in UTC, together with a plain verdict: Expired, Not yet valid, or Valid by time. If the token is damaged, you are told which part is wrong and, for a bad character, where it is.
This tool only decodes. It does not check the signature, so it cannot tell you whether a token is genuine, and "Valid by time" means only that the dates allow it. Only the server that holds the key can verify a token. Everything happens on your device: the token is never sent anywhere and is not kept in history unless you turn history on for this tool.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEyMzQifQ.c2lnbmF0dXJl
Header: { "alg": "HS256", "typ": "JWT" }
Payload: { "sub": "user-1234" }A payload with "exp": 1700000000
Expires at 14 Nov 2023, 22:13:20 UTC. Expired.
abc.def
A JWT has three parts separated by dots, but this has 2.
The token is decoded in your browser and is never sent to a server. Even so, a live token is a credential, so prefer a token that has already expired or a test token, and never share a real one.
No. Checking a signature needs the secret or the public key, which this tool does not ask for. A token that decodes here can still be forged or altered, so never trust one because it can be read.
The "exp" claim is a number of seconds since 1 January 1970 in UTC. If the clock on the device that made the token is wrong, or the number was written in milliseconds, the date can be far off. The decoded dates show what the number means.
It is a way to write bytes as text using letters, digits, "-" and "_", so a token is safe inside a web address. It is not encryption.
No. History is off for this tool by default, and the token is never part of the remembered session. You can turn history on for this tool in the settings if you want it.