A JSON Web Token (JWT) is three chunks of Base64url text joined by dots: header.payload.signature. Decoding it means turning the first two chunks back into the JSON they came from, so you can read who the token is for, who issued it and when it expires.
The JWT Decoder on BISCS India does this instantly in your browser, converts timestamps like exp and iat into readable IST dates, and warns about expired tokens and unsafe algorithms. One thing it deliberately does not do is verify the signature, and understanding why is the most important part of working with JWTs.
What is inside a JWT?
Here is a token split onto three lines for readability:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
.eyJzdWIiOiJ1c2VyXzEwMjQiLCJuYW1lIjoiUHJpeWEgU2hhcm1hIiwiZXhwIjoxNzk4NzM1NDAwfQ
.k3X1oQ...signature...
The first part decodes to the header, which says how the token was signed:
{ "alg": "HS256", "typ": "JWT" }
The second part decodes to the payload, a set of claims:
{ "sub": "user_1024", "name": "Priya Sharma", "exp": 1798735400 }
The third part is the signature, binary data created from the first two parts and a key. It is what makes the token trustworthy, but only to someone who checks it with the right key.
Decoding is not verifying
Anyone can decode a JWT. There is no secret involved; it is just Base64url. That has two consequences every developer should remember:
- The payload is public. Never put secrets, passwords or sensitive personal data in it. Anyone who intercepts or is given the token can read it.
- The payload proves nothing on its own. An attacker can write any JSON they like, encode it, and attach a fake signature. A decoder will happily show
"role": "admin". Only signature verification on the server reveals the forgery.
So use a decoder for debugging and inspection, and let your backend library, such as jsonwebtoken in Node.js, PyJWT in Python or your framework’s built-in middleware, verify every token before trusting it. Verification should check the signature, the algorithm you expect, and the exp, nbf, iss and aud claims.
How to decode a JWT with BISCS India
- Open the JWT Decoder.
- Paste the token into the JSON Web Token box. A leading
Bearercopied from anAuthorizationheader is stripped automatically. - The token is shown colour-coded by part, and the Status card shows whether it has expired, when it expires relative to now, and the signing algorithm.
- Read the Header and Payload cards. Standard claims are labelled in plain English, and time claims (
exp,nbf,iat) are shown as IST dates with a relative time, alongside the raw number. - Use Copy JSON on either card to grab the decoded content for a bug report or test.
Click Sample to load an example token if you just want to explore.
The standard claims, explained
| Claim | Name | Meaning |
|---|---|---|
iss |
Issuer | Who created the token, often your auth server’s URL |
sub |
Subject | Who the token is about, usually a user ID |
aud |
Audience | Which application the token is meant for |
exp |
Expires | Time after which the token must be rejected |
nbf |
Not before | Time before which the token is not valid |
iat |
Issued at | When the token was created |
jti |
Token ID | Unique ID, useful for revocation lists |
The time claims are Unix timestamps in seconds, not milliseconds. JavaScript’s Date.now() returns milliseconds, so a common bug is writing exp: Date.now() + 3600 instead of Math.floor(Date.now() / 1000) + 3600. If you need to convert a timestamp by hand, the Unix Timestamp Converter shows it in IST and UTC.
Warnings the decoder shows
- Expired. The
exptime is in the past. Your server should reject this token; the client should refresh it. - No expiry (exp) claim. A token that never expires is a long-lived key. If it leaks, it works forever unless you rotate the signing secret.
- alg: none. The token claims to be unsigned. A correct server must never accept it.
- Five parts instead of three. That is an encrypted JWE token. Its payload cannot be read without the decryption key, and the tool tells you so.
- Wrong number of parts or invalid Base64. Often a token truncated when copied from logs or a terminal.
Common mistakes when working with JWTs
- Storing sensitive data in claims. Keep payloads to IDs, roles and expiry. Look everything else up on the server.
- Trusting decoded claims in the front end for security decisions. Hiding an admin button based on a decoded
roleis fine for convenience, but the API must enforce permissions itself. - Long expiry with no revocation. Use short-lived access tokens, for example 15 minutes to an hour, plus refresh tokens.
- Accepting any algorithm. Configure your verifier with an explicit list such as
["RS256"], so an attacker cannot switch tononeor swap an asymmetric algorithm for a symmetric one. - Sharing live tokens in tickets and chats. A pasted bearer token is a working credential until it expires.
How the decoding actually works
If you want to decode a payload in code, it is a few lines, which shows how little protection encoding provides:
const payload = JSON.parse(
new TextDecoder().decode(
Uint8Array.from(atob(token.split('.')[1].replace(/-/g, '+').replace(/_/g, '/')), c => c.charCodeAt(0))
)
);
atob needs standard Base64, so the URL-safe - and _ characters are converted back first. Using TextDecoder keeps names in Hindi or other scripts intact. For decoding arbitrary Base64 strings rather than tokens, use the Base64 Encode / Decode tool.
Privacy
A JWT can be a live credential, so where you paste it matters. This decoder runs entirely in your browser; the token is never sent to a server or stored. If you are building tokens for a test environment, generating random user IDs with the UUID Generator keeps test data realistic without touching real accounts.