JWT Decoder

Decode JWT tokens online, inspect headers and payload claims, and check expiration details. All decoding happens locally in your browser.

Decoding is not verification

Decoding does not verify a token's signature or prove it is trustworthy. Your token is decoded in this browser and is never transmitted to a server.

JWT Token

Paste a compact JWT to decode its header and payload.

Your JWT token is processed locally in your browser. We do not store, collect, transmit, or share your token or decoded data. Nothing is saved on our servers.

Important: Decoding is not verification

This tool decodes JWT headers and payloads but does not verify signatures, issuer, audience or token authenticity. Never trust a decoded token without validating its signature on your backend.

What Is a JSON Web Token (JWT)?

JSON Web Token (JWT) is an open standard (RFC 7519) used to securely represent information between two parties. JWTs are commonly used in web applications for authentication, authorization and information exchange.

A JWT is a compact, URL-safe token containing encoded information. In its commonly used signed compact form, it consists of three sections: Header, Payload and Signature.

Header

Contains metadata such as the signing algorithm and token type.

Payload

Contains claims such as user ID, issuer, audience and expiration.

Signature

Allows the recipient to verify token integrity and authenticity using the appropriate key.

JWT structure

Header.Payload.Signature

These three sections are separated by dots in a standard signed compact JWT.

Common JWT Claims Explained

JWT payloads contain claims that communicate information about the token and its intended use. Some claims are standardized, while others are application-specific.

ClaimDescription
subSubject – identifies the user or entity represented by the token.
issIssuer – identifies who issued the token.
audAudience – identifies the intended recipient of the token.
iatIssued At – timestamp indicating when the token was issued.
expExpiration – timestamp indicating when the token expires.
nbfNot Before – timestamp before which the token must not be accepted.

These claims are not mandatory in every JWT. Their presence and validation requirements depend on the application and token issuer.

JWT Decoding vs JWT Verification

Decoding and verification are two different operations. Understanding this distinction is important when debugging authentication and authorization issues.

JWT Decoding

  • Reads the header and payload.
  • Does not require a secret key.
  • Helps inspect claims and expiration.
  • Does not establish authenticity.

JWT Verification

  • Validates the cryptographic signature.
  • Requires the appropriate key.
  • Can validate issuer and audience.
  • Can validate expiration and other claims.

How to Decode a JWT Token Online

You can inspect a JWT in a few simple steps using this online JWT decoder.

  1. Copy your JWT: Obtain the token from your application's authentication response, API request or debugging environment.
  2. Paste the token: Enter the complete token into the JWT decoder input field.
  3. Decode the token: Click the Decode Token button to inspect its contents.
  4. Inspect the claims: Review the header, payload, timestamps and other available information.

Avoid sharing production access tokens or sensitive authentication credentials. Even when decoding happens locally, the token itself may grant access to protected resources.

Is It Safe to Decode JWT Tokens Online?

JWTs may contain user identifiers, permissions and other application data. Although a signed JWT is generally readable by anyone who possesses it, its signature helps protect its integrity.

This decoder processes tokens locally in your browser without sending them to our application servers. Nevertheless, avoid using public or shared devices for inspecting sensitive production tokens.

Remember that Base64URL encoding is not encryption. Never include passwords, private keys or other confidential information in JWT payloads.

Related Developer Tools

Explore other utilities that can help with development, debugging and everyday programming tasks.

FAQs on JWT Decoder

What is a JWT Decoder?
A JWT Decoder is an online tool that reads and displays the header and payload of a JSON Web Token. It helps developers inspect authentication claims, understand token data and check expiration timestamps without manually decoding Base64URL-encoded content.
How do I decode a JWT token online?
Paste your JWT token into the decoder and click Decode Token. The tool extracts the header and payload and displays them as readable JSON, including available claims such as subject, issuer and expiration.
Does decoding a JWT verify its signature?
No. Decoding only extracts the header and payload. It does not verify the cryptographic signature or establish the token's authenticity. Verification requires the appropriate secret or public key and a trusted verification process.
Can I decode a JWT without a secret key?
Yes. The header and payload of a standard JWT are Base64URL-encoded rather than encrypted. You can decode these sections without a secret key. However, verifying the signature requires the appropriate secret or public key.
What information can I see in a decoded JWT?
A decoded JWT typically contains a header with information such as the signing algorithm and token type, and a payload containing claims such as sub, iss, aud, iat and exp. The actual claims depend on the token.
How do I check whether a JWT token is expired?
Inspect the exp claim in the decoded payload. It represents the expiration time as a Unix timestamp in seconds. Compare it with the current time to determine whether the token has expired. This does not establish token authenticity.
Is my JWT token stored or sent to a server?
JWT decoding is performed entirely in your browser. The tool does not transmit the token to or store it on our servers, and does not intentionally persist JWT data in browser storage.
Why does my JWT token show an invalid format error?
A standard compact JWT contains three Base64URL-encoded sections separated by two dots. Missing sections, malformed Base64URL content or a payload that is not valid JSON can cause decoding errors.
What is the difference between JWT decoding and JWT verification?
JWT decoding reads the header and payload without checking authenticity. JWT verification validates the cryptographic signature using the appropriate secret or public key and can also validate claims such as issuer, audience and expiration.
What are JWT header and payload claims?
The JWT header contains metadata such as the signing algorithm (alg) and token type (typ). The payload contains claims describing the token's subject, issuer, audience, expiration and other application-specific information.