Free tool • Runs in your browser
JWT decoder
Decode a JSON Web Token's header and payload, and check its expiry.
Quick answer
A JWT has three Base64URL parts: header, payload and signature. Decoding shows the contents, but does not prove the token is genuine. Your server must verify the signature before trusting it.
How to use it
- Paste the token.
- Read the header and payload.
- Check the issued and expiry times.
Example
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMifQ.signature
Header: { "alg": "HS256" }
Payload: { "sub": "123" }Common errors and how to fix them
- It says the token is invalid
- A JWT needs three dot-separated parts. Check that you copied it fully.
Frequently asked questions
How do I decode a JWT?
Paste the token here to see its header, payload and any expiry time.
What is a JWT token?
A JSON Web Token is a compact, signed string often used to carry login or identity information.
How do JWT tokens work?
A server signs a set of claims and gives the token to the client. Later, the server verifies the signature before trusting the token.
How do I verify a JWT?
Verify its signature on your server with a trusted library and the right key, and check claims such as expiry. This tool does not verify signatures.
Is it safe to decode a JWT online?
Decoding here happens on your device, but real tokens are credentials, so prefer test tokens.
How do I generate a JWT secret key?
Use a secure random generator, such as openssl rand -base64 32, and keep the key on your server.
How do I use a JWT in Postman?
Open the Authorization tab, choose Bearer Token, and paste the token.
Can anyone read a JWT?
Yes. A standard signed JWT is encoded rather than encrypted, so never put secrets in its payload.
How do I check if a JWT has expired?
Paste it here and look at the Status figure, which compares the exp claim to the current time.
Is what I paste uploaded?
No. Everything runs in your browser and nothing is sent to Quecko.
More developer tools
Need something built for your business?
Quecko designs and builds AI, Web3 and custom software products.