What Is a JWT? How to Read a JSON Web Token (Header, Payload, Signature)
Updated November 2026
Written by the Toolpuffin team. Tools in this guide are tested in the browser.
A JSON Web Token, or JWT, is a compact piece of text that apps use to pass information such as who you are and when your session ends. If you work with logins or APIs you will meet them often. This guide explains the three parts of a token and shows how to read one safely.
The three parts
A signed JWT is three pieces of text joined by dots: header.payload.signature. The header says which algorithm was used. The payload holds the claims, which are the facts the token states, such as who it is for and when it expires. The signature lets the receiver check that the token was not changed. The format is defined in RFC 7519.
| Part | What it holds |
|---|---|
| Header | The token type and the signing algorithm |
| Payload | The claims, for example the user, the issue time and the expiry time |
| Signature | A value that proves the header and payload were not changed |
Source: RFC 7519: JSON Web Token (JWT)
Read a token
- Copy the token from where you found it, for example an API response.
- Open the JWT Decoder and paste it.
- Read the header and the payload.
- Check the dates: the tool shows when the token was issued and when it expires.
Dates in a token
Dates in a JWT are numbers of seconds since 1 January 1970 (UTC). That is why a token shows a long number instead of a date. The decoder turns those numbers into a readable date.
Reading is not trusting
The header and payload are only encoded, not secret. Anyone who has the token can read them, so a token should never hold a password or other secret. Decoding a token also does not prove it is genuine: only the party that holds the key can check the signature. Treat a token you decoded in a tool as information, not as proof.
- Do not paste tokens that are still valid for a live account into tools you do not trust.
- Use a short expiry time for tokens you create.
- Check the signature in your own code, not in a web page.