டெவலப்பர் கருவிகள்
JWT டிகோடர்
JSON Web Token ஐ டிகோட் செய்து அதன் தலைப்பு மற்றும் கிளெய்ம்களைப் படிக்கவும், எப்போது காலாவதியாகும் என்பதை எளிய தேதிகளில் பார்க்கவும், ரகசிய அல்லது பொது விசையால் கையொப்பத்தைச் சரிபார்க்கவும்.
What is a JWT?
A JSON Web Token (JWT, said "jot") is a small signed message that websites and apps use to say who you are. After you sign in, the server gives your browser or app a token, and every request after that carries it, usually in an Authorization: Bearer header. The server checks the signature instead of looking you up in a database each time. Sign in with Google, Firebase, Auth0, AWS Cognito and most modern APIs use JWTs.
What you can do with the JWT Decoder
- Header and claims: Coloured JSON, with each claim explained.
- Expiry countdown: exp, iat and nbf as real dates.
- Verify signatures: HS, RS, PS and ES algorithms.
Reading the claims
The payload holds claims. Standard ones are sub (the user it is about), iss (who issued it), aud (which app it is for), exp (when it expires), iat (when it was issued) and nbf (not valid before). Apps add their own, like email, name, roles or scope. The tool lists the common ones in plain words and shows the times in Indian Standard Time on your phone, with a live countdown to expiry.
Checking the signature
Decoding only reads the token; anyone can do that. To know the token is genuine, the signature must be checked. For HS256 tokens, paste the shared secret (tick Base64 if your secret is stored that way). For RS256, PS256 and ES256 tokens, paste the public key in PEM format, starting with -----BEGIN PUBLIC KEY-----. The tool says Signature verified, or Invalid signature if the key is wrong or the token was changed.
பொதுவான தவறுகள்
A JWT is not encrypted, so never put passwords, card numbers or Aadhaar numbers in the payload. Always check the signature on the server and never accept alg "none". Keep expiry times short (minutes to hours) and use refresh tokens for longer sessions. If a token "expires too early", check that the server clock is right and that exp is in seconds, not milliseconds.
The three parts of a token
Header: which algorithm (alg) and type (typ), like {"alg":"HS256","typ":"JWT"}. Payload: the claims. Signature: the header and payload signed with the key. Each part is Base64URL text, which uses - and _ instead of + and / and drops the = padding, so the token can go safely in a web address.
HS256 or RS256?
HS256 uses one shared secret to sign and to check, so every service that checks tokens must know the secret. RS256 and ES256 sign with a private key and check with a public key, so services can check tokens without being able to make new ones. Big sign-in providers publish their public keys at a JWKS address.
Related tools
நிஜ வாழ்க்கை உதாரணங்கள்
Why does the app say "session expired"?
Copy the token from the app's storage and paste it here. The Times box shows when it was issued and when it expires, in your own time. If the expiry is in the past, the login really has ended and a fresh sign-in will fix it.
What is inside a login token?
Paste a token from your test server. The header shows the algorithm, like HS256, and the payload shows the user id, roles and times. Anyone can read these parts, so a token should never hold a password or card number.
Check a token with your secret
For HS256 tokens, type the secret in Verify. A green tick says the token was signed with that secret and was not changed. Use a test secret here, not the one from your live server.
Frequently Asked Questions
Is it safe to paste my token here?
Yes. The token is decoded on your device and never sent to us or anyone else, unlike some online decoders. Still, a token is like a temporary password: do not share live production tokens in chats or screenshots, and sign out (or revoke the token) if you think one has leaked.
Why does it say the token has expired?
The exp claim is earlier than the time on your device. Get a new token by signing in again or using your refresh token. If tokens seem to expire straight away, check the server and device clocks, and make sure exp is set in seconds (10 digits), not milliseconds (13 digits).
Can I see what is inside without the secret?
Yes. The header and payload are only Base64URL encoded, so anyone can read them without a key. The secret or public key is only needed to check the signature, which proves the token was made by the real server and not changed.
Which algorithms can it verify?
HS256, HS384 and HS512 with a shared secret; RS256, RS384 and RS512 and PS256, PS384 and PS512 with an RSA public key; and ES256, ES384 and ES512 with an elliptic-curve public key. Encrypted tokens (JWE, with five parts) cannot be read without the private key.
Is what I paste sent anywhere?
No. Tokens, secrets and keys are worked on in your browser. Everything runs in your browser on your own phone or computer, and nothing is sent to our servers or saved.
Is the JWT Decoder free?
Yes. There is no sign-up, no limit and nothing to install. It also works offline once the page has loaded.
What is the difference between a JWT and a session cookie?
A session cookie holds a random ID that the server looks up in its database. A JWT carries the user details and expiry inside itself, signed, so the server can check it without a database. JWTs are handy for APIs and mobile apps, but are harder to cancel before they expire.
Where is the JWT stored in my browser?
Usually in localStorage, sessionStorage or a cookie set by the site. In Chrome, open developer tools, then Application to see them, or Network to see the Authorization: Bearer header on each request.
What does "invalid signature" mean?
The secret or public key you pasted is not the one that signed the token, or the token was changed after it was signed. Check that you used the right key for the right environment (test or live), and that no spaces were added when copying.
What are exp and iat?
exp is the expiry time and iat the time the token was issued, both in seconds since 1 January 1970 UTC (Unix time). The tool shows them as dates in your own time and says how long is left. Use our Unix Timestamp Converter for other times.
More developer tools
- URL குறியாக்கி & குறிவிலக்கி: Percent-encode text so it is safe inside a URL or query string, or decode %20-style URLs back to readable text.
- HTML எண்டிட்டி குறியாக்கி & குறிவிலக்கி: Escape < > & and quotes into HTML entities so they display as text, or unescape entities back to characters.
- உரை வேறுபாடு சரிபார்ப்பி: Compare two versions of a text line by line or word by word, see what was added or removed, and how similar they are.
- JSON வடிவமைப்பி & சரிபார்ப்பி: Format, validate and minify JSON, spot syntax errors and turn messy JSON into readable, indented text or a compact single line.
- UUID ஜெனரேட்டர்: Generate random version-4 UUIDs (GUIDs) for databases, APIs and software development.
- நிற வடிவ மாற்றி: Convert colours between HEX, RGB and HSL formats in either direction, with a live colour preview.