APIs
JWT Decoder & Token Analyzer
Client-side JWT parser, token analyzer, and claim inspector. Perform instant token checks: decode JOSE headers, review issuer/subject claims, analyze payload structures, and convert expiration (exp) timestamps into UTC dates. 100% private.
Decoding a JWT does not verify that the token is authentic or secure. Signatures are not checked. Do not paste live production tokens if your policy forbids it — processing still happens locally.
How it works
A JSON Web Token (RFC 7519) consists of three period-delimited ASCII strings: Header, Payload, and Signature. Each part is encoded using URL-safe Base64 (RFC 4648 §5), which replaces '+' with '-' and '/' with '_', and omits trailing '=' padding. This tool splits the string by '.', applies character substitutions, restores padding, and decodes the resulting binary string into UTF-8 JSON. Standard temporal claims like 'exp' (expiration time) and 'iat' (issued at) are converted from UNIX epoch seconds into formatted ISO-8601 strings, highlighting whether the token is currently valid or expired.
How to use it
- Paste your encoded JSON Web Token (encoded as header.payload.signature) into the input box.
- The tool splits the token into its three base64url segments.
- Inspect the decoded JOSE header to see the signing algorithm (e.g. RS256, HS256).
- Review standard payload claims (sub, iss, exp, iat) alongside calculated human-readable UTC expiration dates.
Worked Examples
Example 1: Inspecting an Auth0 / Okta Access Token
Worked ExampleVerifying whether an OAuth 2.0 bearer token includes the required API scopes and audience claims.
Input Payload
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhdXRoLnBhbG1hdGUuY29tIiwic3ViIjoidXNyXzg4MiIsImF1ZCI6ImFwaS5wYWxtYXRlLmNvbSIsInNjb3BlIjoicmVhZDp1c2VycyB3cml0ZTpjYXJ0cyJ9.sig
Output / Result
Header: {"alg":"RS256","typ":"JWT"}
Payload: {"iss":"auth.palmate.com","sub":"usr_882","aud":"api.palmate.com","scope":"read:users write:carts"}Why this happens: Reveals that the token was signed with RS256 and carries granted scopes ('read:users write:carts') for the target API audience without needing backend logs.
Example 2: Diagnosing an Expired Token (HTTP 401 Unauthorized)
Worked ExampleA client application is receiving 401 errors from a microservice and you need to confirm if the token elapsed.
Input Payload
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTYiLCJleHAiOjE1MTYyMzkwMjJ9.sig
Output / Result
Status: EXPIRED Expiry Date: 2018-01-18T05:30:22.000Z Expired: ~8 years ago
Why this happens: The exp claim (1516239022) is in the past. The tool flags the expired status immediately, explaining why authentication rejected the request.
Example 3: Verifying Custom Tenant Metadata Claims
Worked ExampleConfirming that a user's multi-tenant organization ID and role attributes were properly injected into the JWT.
Input Payload
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJyb2JpbiIsIm9yZ19pZCI6Im9yZ185OTkiLCJyb2xlcyI6WyJhZG1pbiIsImF1ZGl0Il19.sig
Output / Result
Payload: {
"sub": "robin",
"org_id": "org_999",
"roles": ["admin", "audit"]
}Why this happens: Allows developers to visually verify custom claims before writing downstream role-based authorization guards.
Edge Cases & Failure Modes
Decoding vs. Cryptographic Verification
Decoding a JWT merely extracts the Base64URL text. It does NOT verify that the signature matches the public key or shared secret.
Handling: Never trust decoded claims in production backend code without verifying the cryptographic signature using your identity provider's JWKS public keys.
Missing Base64URL Padding
Standard atob() functions in browsers fail when Base64URL strings omit '=' padding characters.
Handling: Our decoder automatically calculates length % 4 and appends appropriate '=' padding before Base64 decoding.
Non-ASCII UTF-8 Claim Encoding
Names or addresses containing non-ASCII characters (e.g. accents, Devanagari, emoji) can corrupt when decoded via naive window.atob.
Handling: The tool decodes raw bytes through decodeURIComponent(escape(atob(str))) or TextDecoder to ensure proper multibyte character rendering.
Privacy & Local Execution Guarantee
JWT decoding runs strictly in your browser using base64url string translation. Tokens and claims are never dispatched to any server, database, or analytics endpoint. It is air-gapped safe for production debugging.
Frequently Asked Questions
Does decoding a JWT verify that it is valid and untampered?
No. Decoding only reads the claims stored in the Base64URL-encoded payload. To verify that a token was authentically signed and has not been forged, your backend must validate the signature using the issuer's public key or shared secret.
Is it safe to paste production bearer tokens into this tool?
Yes. This tool runs 100% locally in your browser. No tokens are sent over the network, saved in cookies, or stored in server logs. However, as a security best practice, never share production bearer tokens over insecure channels.
Why does JWT use Base64URL instead of standard Base64?
Standard Base64 contains '+' and '/' characters, which have special syntactic meaning in URLs and HTTP query parameters. Base64URL replaces '+' with '-' and '/' with '_', and strips trailing '=' padding so tokens can safely pass in HTTP headers and query strings.
What are standard JWT claims like sub, iss, and aud?
'iss' (Issuer) identifies the authority that created the token; 'sub' (Subject) identifies the user or service; 'aud' (Audience) identifies the intended recipient API; and 'exp' (Expiration Time) defines when the token becomes invalid.
Can a JWT be decoded if the signature is invalid?
Yes. The header and payload are independent Base64URL strings. Anyone with access to a JWT can read its contents unless the token was encrypted using JWE (JSON Web Encryption).
Related articles
Related tools
Related services
Custom API & Niche ERP Integrations
Connecting complex legacy ERPs (SAP, NetSuite, Epicor), payment gateways, or building zero-trust OAuth 2.0 / mTLS microservices?
- Direct legacy ERP connector engineering
- Statutory security & token validation audits
- Fixed-price scoping & SLA-backed delivery
Next step
Need production-grade systems, resilient APIs, or cloud infrastructure?
Our senior software architects design, build, and optimize mission-critical software systems on deterministic timelines.
