Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

JWT Token Inspector & Payload Viewer

Paste a JWT token to instantly decode the header, payload, and inspect the signature structure

Your files never leave your browser
JWT Token Input0 chars
Decoded Output
Ready·

Paste any JWT and instantly see the decoded header, payload claims, and signature — with expiration flags and human-readable timestamps baked in. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste JWT
➡
Split & Base64-Decode
➡
Display Header + Payload

A JWT has three parts separated by dots: header, payload, and signature. The inspector splits the token on those dots, runs Base64URL decoding on the first two parts, and parses the resulting JSON. Timestamps like exp, iat, and nbf get converted to human-readable dates. The signature part is shown as-is — verification would need the secret key, which you shouldn't paste into a web tool anyway.

Examples

Checking if a token expired

Your API returns 401 and you want to see if the token's exp claim is in the past.

INPUT
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiZXhwIjoxNjE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
OUTPUT
Header: {"alg":"HS256","typ":"JWT"} Payload: { "sub": "1234567890", "exp": 1616239022 } ⚠ Expired: Mar 20, 2021

Reading user roles from a token payload

A frontend dev needs to check which roles the auth server assigned before the protected route renders.

INPUT
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzQ0MiIsInJvbGVzIjpbImFkbWluIiwiZWRpdG9yIl0sImlzcyI6ImF1dGgubXlhcHAuY29tIiwiZXhwIjoxNzMzMDAwMDAwfQ.placeholder-sig
OUTPUT
Header: {"alg":"RS256","typ":"JWT"} Payload: { "sub": "user_442", "roles": ["admin","editor"], "iss": "auth.myapp.com", "exp": 1733000000 }

Debugging an OAuth token from a third-party provider

You're integrating with an external identity provider and the login flow keeps failing. The ID token should tell you what claims are actually being sent back — audience, issuer, scopes, the works.

INPUT
eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYy1rZXktMSJ9.eyJpc3MiOiJodHRwczovL2lkcC5leGFtcGxlLmNvbSIsImF1ZCI6Im15LWFwcC1pZCIsInN1YiI6InVzZXJfOTk5Iiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBlbWFpbCIsImlhdCI6MTcwMDAwMDAwMCwiZXhwIjoxNzAwMDAzNjAwfQ.fake-signature
OUTPUT
Header: { "alg": "RS256", "kid": "public-key-1" } Payload: { "iss": "https://idp.example.com", "aud": "my-app-id", "sub": "user_999", "scope": "openid profile email", "iat": 1700000000, "exp": 1700003600 }

Who Uses This

👨‍💻 Backend Developers

Debugging auth failures by checking token claims, expiration times, and issuer mismatches during API development.

🛡️ Security Engineers

Reviewing token structure during penetration tests and security audits without sending tokens to external servers.

🎨 Frontend Developers

Checking what roles and permissions are inside the access token before conditionally rendering UI elements.

📞 DevOps / SRE

Quickly inspecting tokens from logs or incident reports to confirm expiration or issuer problems during outages.

Common Mistakes

Pasting the token with "Bearer " prefix

If you copy from an HTTP header, the string starts with Bearer eyJ.... Strip that prefix first — the decoder expects only the token itself, not the auth scheme.

Confusing decoding with verification

Decoding a JWT shows you the contents. It does not confirm the signature is valid. A decoded payload proves nothing about authenticity — you'd need the signing key for that, and you should never paste your secret key into a browser tool.

Assuming the payload is encrypted

Standard JWTs (JWS) are signed but not encrypted. Anyone with the token can decode the payload — that's by design. If you need encrypted tokens, look into JWE. Don't put passwords, credit card numbers, or secrets in a regular JWT payload.

Technical Details

Frequently Asked Questions

Is it safe to paste my JWT token here?

Yes. The entire decoding process happens in your browser using JavaScript. No network requests are made, and the token is never sent to any server. You can verify this by opening your browser's network tab while using the tool — you'll see zero outbound requests.

Can this tool verify a JWT signature?

No, and that's intentional. Verifying a signature requires the secret key (for HMAC) or the public key (for RSA/EC). You should not paste signing keys into web tools. This inspector only decodes and displays the header and payload — use your backend code for actual verification.

What is the difference between JWT, JWS, and JWE?

JWT is the umbrella term. JWS (JSON Web Signature) is a signed token — the kind you see most often, with three Base64 segments. JWE (JSON Web Encryption) is an encrypted token where the payload is actually hidden. Most "JWT" tokens in the wild are technically JWS tokens. This tool handles JWS format.

Why does my JWT show as expired even though I just created it?

Most likely a clock skew issue. The exp timestamp in the token is compared to your local system clock. If the server that issued the token has a different time than your machine, the token might appear expired. Check that your system clock is accurate, or account for a few seconds of drift in your validation logic.

How do I decode a JWT in code instead of using a tool?

Split the token on dots, take the first two parts, and Base64URL-decode them. In JavaScript: JSON.parse(atob(token.split('.')[1])) gives you the payload. For production code, use a proper library like jsonwebtoken (Node) or PyJWT (Python) that also validates signatures and expiration.

Share: