IVX
Roman Numeral ConverterEN
ENCODING & DATA FORMATS TOOL • UNIFIED WORKSPACE

JWT Decoder

Instantly decode and inspect JSON Web Token (JWT) headers, payload claims, and expiration timestamps directly in your browser without exposing tokens.

Presets:
Ready
MMXXVI
Copied!

Calculation Breakdown

What is a JSON Web Token (JWT)?

A JSON Web Token (JWT, defined in RFC 7519) is a compact, URL-safe means of representing claims to be transferred between two parties. JWTs are widely used in modern web applications, microservices, and mobile backends for stateless user authentication and authorization.

A JWT consists of three distinct parts separated by dots ("."): the Header (specifying the token type and cryptographic algorithm like HS256 or RS256), the Payload (containing claims such as user ID, role, and expiration timestamp), and the Signature (used to verify that the sender is who it says it is and to ensure that the message wasn't changed along the way).

Important Security Distinction: Decoding a JWT simply unpacks the Base64URL-encoded JSON payload so you can inspect claims. Merely decoding a token DOES NOT verify its cryptographic signature or prove authenticity. True verification requires the secret HMAC key or public RSA/ECDSA key on a trusted server.

How to Use This Tool

  1. Paste your encoded JWT string (e.g. "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...") into the input panel.
  2. The JWT decoder splits the token at the dot separators into Header, Payload, and Signature.
  3. The Header and Payload are Base64URL-decoded into formatted, human-readable JSON.
  4. Inspect claims such as "sub" (subject), "exp" (expiration time), and "iss" (issuer) safely on your local device.

Structure of a JSON Web Token

A standard JWT appears in the compact serialized format: xxxxx.yyyyy.zzzzz

Part 1: Header — Base64URL-encoded JSON containing algorithm (alg) and token type (typ).

Part 2: Payload — Base64URL-encoded JSON containing standard claims (iss, sub, exp, nbf, iat) and custom user metadata.

Part 3: Signature — Cryptographic hash computed by taking the encoded header, encoded payload, a secret key, and passing them through the specified algorithm (e.g., HMACSHA256(base64UrlEncode(header) + "." + base64UrlEncode(payload), secret)).

JWT Decoding Examples

Decoded Header

Algorithm and token type specification.

In:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Out:{ "alg": "HS256", "typ": "JWT" }

Decoded Payload Claims

Standard authentication claims showing user identity and timestamp.

In:eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ
Out:{ "sub": "1234567890", "name": "John Doe", "iat": 1516239022 }

Decoding vs Verification Clarification

  • Decoding vs Verification: Decoding reveals the JSON claims inside a token, but it CANNOT verify whether the token was signed with a legitimate secret key. Never trust an unverified token in a backend security check.
  • All decoding runs 100% locally in browser memory. Sensitive bearer tokens and session keys are never transmitted to any external server.

Frequently Asked Questions

What is a JWT token?
A JWT (JSON Web Token) is an open industry standard (RFC 7519) for securely transmitting information between parties as a compact, self-contained JSON object, commonly used for authorization and single sign-on (SSO).
What is JWT?
JWT stands for JSON Web Token. It is an open format that allows web servers to issue signed credentials that clients can present on subsequent API requests.
What is JWT authentication?
JWT authentication is a stateless authentication mechanism where the server issues a digitally signed token upon successful login. The client includes this token in the Authorization header (Bearer token) of future requests, eliminating the need for server-side database session lookups.
What does JWT stand for?
JWT stands for JSON Web Token.
How does JWT work?
When a user logs in, the authentication server signs a JSON object containing the user's identity and permissions, then returns the encoded token. On subsequent requests, the receiving API checks the cryptographic signature using its secret or public key to grant access without re-querying the user database.
What is JWT used for?
JWTs are primarily used for authorization (granting access to API endpoints and microservices) and information exchange (securely asserting verified user profile claims between services).
Are JWTs still used?
Yes. JWTs remain the dominant industry standard for modern API authorization, Single Sign-On (SSO), OAuth 2.0, OpenID Connect (OIDC), and cloud-native microservice architectures.
What are the three parts of a JWT?
The three parts of a JWT are the Header (identifying the signing algorithm), the Payload (containing user data and expiration claims), and the Signature (ensuring the token has not been tampered with), separated by dots.
Does decoding a JWT verify its signature?
No. Decoding merely unpacks the Base64URL-encoded JSON text so human developers can read the claims. Anyone can decode a JWT, and anyone can generate a fake payload. Verifying a token requires cryptographically checking its signature against the secret HMAC key or public RSA certificate on a secure server.

Related Tools