JWT Decoder & Inspector
Decode a JSON Web Token to see the user, roles, scopes and expiry, check it for security problems, and verify its signature with a secret, PEM key or JWKS.
Decode a JSON Web Token to see the user, roles, scopes and expiry, check it for security problems, and verify its signature with a secret, PEM key or JWKS.
Used JWT Decoder & Inspector? Share how it went to help others.
About this tool
JWT Decoder & Inspector shows what is inside a JSON Web Token. Paste a token, or a whole "Authorization: Bearer …" header, and it is split into its header and payload and shown as formatted JSON that you can copy. A status bar tells you whether the token has expired, is not valid yet (from its nbf claim) or is still within its lifetime, with the exact time and how long ago or how soon that is. A “Who is this token for?” card picks out the username, name, email, user ID, client app and tenant, with the roles, groups and scopes the token carries, from the claims used by common identity servers such as Keycloak, Auth0, Microsoft Entra ID and Amazon Cognito. A security check points out problems such as no expiry, a very long lifetime, times written in milliseconds, a missing audience or issuer, secrets in the payload, or a short HMAC secret. You also get ready code to read the username claim in JavaScript, Node.js, Python and PHP. The standard claims are listed in plain words: issuer (iss), subject (sub), audience (aud), expiry (exp), not-before (nbf), issued-at (iat) and token ID (jti), with Unix timestamps turned into readable dates in your time zone. Decoding alone does not prove a token is genuine, because anyone can create one, so the inspector can also verify the signature: for HS256, HS384 and HS512 enter the shared secret, as plain text or Base64; for RS256-512, PS256-512 and ES256-512 paste the PEM public key, a JWK, or a whole JWKS, and the key named by the token’s kid is used. The result says "Signature verified" or "Invalid signature" immediately. Tokens with "alg": "none" are flagged as unsigned. Encrypted tokens (JWE, five parts) and opaque access tokens, such as those from Google or GitHub, are recognised and explained. Everything, including your token and key, is processed in your browser with the Web Crypto API and never sent to a server, so it is safe to inspect tokens from your own apps. Still, avoid pasting live production tokens for other people’s accounts anywhere.

Paste a JWT or a full "Bearer …" header. It is decoded as you paste.
See if it is expired or not yet valid, with readable issue and expiry times.
Standard claims are explained; header and payload are shown as JSON.
Optional: enter the secret or public key to confirm the token was not changed.
HS, RS, PS and ES algorithms with a secret, PEM key, JWK or JWKS.
exp, iat and nbf shown as dates and "in 2 hours" / "3 days ago".
Username, email, roles and permissions picked out and ready to copy.
Accepts the bare token or a whole Authorization header.
Debug auth without guesswork
Find out why an API rejects a request.
ExampleThe status bar shows the token expired 12 minutes ago, so the refresh flow is broken.
Check which user and permissions a token carries.
ExampleThe payload shows "role": "viewer" instead of "admin".
Confirm the token was issued for the right API.
Exampleaud is "web-app" but the API expects "orders-api".
Make sure your backend signs tokens with the expected key.
ExampleA token from staging fails verification with the production public key, as it should.
Spot tokens issued in the future because of server clock drift.
Exampleiat is "in 3 minutes", so the auth server’s clock is ahead.
See what a real ID token or access token contains.
ExampleAn ID token shows iss, sub, aud, email and exp side by side.
Safer tokens, faster debugging
Anyone can create a token with any payload. Servers must always verify the signature; use the key field here to check it yourself.
JWT payloads are only Base64URL-encoded, not encrypted. Never put passwords or secrets in them.
An unsigned token must never be accepted. Make your server allow only the algorithm you expect.
Short expiry times (minutes, not days) limit damage if a token leaks; use refresh tokens for long sessions.
Create HMAC-SHA signatures for any message to compare with your backend.
Open HMAC GeneratorEach JWT part is Base64URL. Decode any single part to see raw bytes.
Open Base64 Encode/DecodeSenior Software Engineer · Developer of Toolyconvert
Hemant developed JWT Decoder & Inspector and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 24 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.