JWT Decoder

JWT Decoder

Decode and inspect JSON Web Tokens online. View JWT headers, payload claims, timestamps and expiration status directly in your browser.

Local Browser Engine
Browser-local Ctrl/Cmd + Enter decode Esc clear

Paste a compact JWT or a Bearer value.

JWT status
Decode, inspect and verify independently.
Segments
Claims
Expires
Remaining
Verification
⚡

Fast to use

Designed to help you complete the task without unnecessary steps.

◇

Works in your browser

No separate desktop software is needed for this online tool.

✓

Simple workflow

Enter your information, use the tool and work with the result.

What Is a JWT Decoder?

A JWT decoder lets you inspect the readable contents of a JSON Web Token by decoding its Base64URL-encoded header and payload into JSON. JWTs are commonly used to carry claims in authentication and API workflows.

A typical signed JWT contains three dot-separated parts: a header, a payload and a signature. The header describes token metadata, the payload contains claims, and the signature supports cryptographic verification.

Decoding is not the same as verifying a signature. Use this tool to inspect token contents and troubleshoot claims, but never treat successful decoding as proof that a token is authentic.

How to Decode a JWT Token Online

To decode a JWT, paste the complete token into the JWT Decoder and select Decode JWT. A standard signed JWT has three parts separated by periods:

header.payload.signature

The decoder reads the Base64URL-encoded header and payload and displays their contents as JSON. Review the algorithm metadata, claims and time values to understand what the token contains.

If you copied the token from an HTTP authorization header, remove the Bearer prefix and surrounding whitespace before decoding. The prefix is part of the authorization scheme, not the JWT itself.

Understanding the JWT Header, Payload and Signature

A typical signed JSON Web Token consists of three Base64URL-encoded parts separated by periods. Each part serves a different purpose.

  • Header: Metadata such as the signing algorithm in alg and token type in typ.
  • Payload: Registered and custom claims describing the token subject, audience, expiry or application-specific information.
  • Signature: A cryptographic value used to verify that the encoded header and payload have not been altered, when checked with the correct algorithm and key.

Header and payload encoding is not encryption. Anyone who obtains an ordinary signed JWT can generally read these sections, so avoid placing confidential information in them without an appropriate protection mechanism.

JWT Claims Explained

JWT claims are statements carried in the token payload. Common registered claims include iss, sub, aud, exp, nbf, iat and jti.

  • iss: The issuer of the token.
  • sub: The subject represented by the token.
  • aud: The intended audience.
  • exp: The time after which the token must not be accepted.
  • nbf: The time before which the token must not be accepted.
  • iat: The time the token was issued.
  • jti: An identifier that can distinguish one token from another.

Applications may also define custom claims for roles, permissions or tenant identifiers. Whether a claim is trustworthy depends on successful validation and verification, not merely on its presence in decoded JSON.

How to Check JWT Expiration

The JWT exp claim indicates the time after which a token must not be accepted. JWT NumericDate time claims are generally expressed as seconds since the Unix epoch, rather than milliseconds.

This decoder displays supported time claims in a human-readable format so you can inspect expiry and issuance values while troubleshooting. The iat claim records issuance time, while nbf identifies the time before which the token should not be accepted.

When comparing these values with application logs or other timestamps, check the time unit and timezone carefully. A decoded expiry value alone does not validate the token or account for every server-side validation rule.

JWT Decoding vs JWT Signature Verification

JWT decoding and JWT signature verification are separate operations.

Decoding converts the encoded header and payload into readable data. For a typical signed JWT, this does not require a signing secret or public key.

Verification checks the signature using the expected algorithm and appropriate key. A secure validation process may also check issuer, audience, expiry and other application-specific requirements.

A token can decode correctly and still be forged, expired or intended for another application. Never use decoded claims alone to make authentication or authorization decisions.

Can You Decode a JWT Without a Secret?

You can normally decode the header and payload of a signed JWT without knowing its signing secret or private key. These parts use Base64URL encoding, which represents data in a token-friendly format but does not encrypt or conceal it.

The appropriate key is needed for signature verification, depending on the signing algorithm. Reading the claims therefore does not prove who issued the token or whether its contents are authentic.

For a closer look at the encoding format, use the Base64 Encoder & Decoder to explore the difference between encoded data and encryption.

Is a JWT Encrypted?

Not every JWT is encrypted. A common signed JWT uses the JSON Web Signature (JWS) format, with a header, payload and signature. The header and payload are Base64URL-encoded, not hidden through encryption.

Encrypted JWTs can use the JSON Web Encryption (JWE) format, which has a different structure and requires the appropriate decryption key to read protected content. A standard three-part signed token should not be assumed to provide confidentiality.

Do not put passwords, private keys or other confidential values in an ordinary JWT payload. Use an appropriate security design when data confidentiality is required.

JWT Decoder for API and Authentication Debugging

JWT decoding is useful when debugging API authentication, access tokens and identity-provider integrations. Inspect the header and payload to check expected claims, the declared signing algorithm and timestamps such as iat, nbf and exp.

Common troubleshooting clues include a missing audience, an unexpected issuer, an expired token, a not-yet-valid token or a claim whose value differs from what the application expects. For JSON readability, the JSON Formatter & Validator can also help you inspect structured JSON data.

These checks help diagnose configuration issues but do not replace server-side signature verification and validation of the claims required by your application.

JWT Decoder and Browser-Based Processing

AabiTech processes JWT decoding in your browser with client-side JavaScript. The decoding operation does not need to send the token to AabiTech servers or an external decoding API.

Local processing reduces unnecessary transmission, but it does not make every token safe to share. Live JWTs may act as bearer credentials or reveal sensitive claims, so avoid posting them publicly, sending them to others or exposing them in screenshots.

For production troubleshooting, use test tokens where possible and follow your organization’s credential-handling rules. Decoding reveals token contents; it does not confirm that the token is valid or safe to use.

Questions & answers

Frequently Asked Questions

What is a JWT decoder?
A JWT decoder converts the Base64URL-encoded header and payload of a JSON Web Token into readable JSON so you can inspect the token structure and claims.
How do I decode a JWT token online?
Paste the complete JWT into the decoder and select Decode JWT. The tool separates the header, payload and signature, then displays the decoded header and payload as formatted JSON.
Can I decode a JWT without the secret?
Yes. Decoding the header and payload does not require the signing secret or private key because those sections are Base64URL-encoded rather than encrypted.
Does decoding a JWT verify its signature?
No. Decoding only reveals the encoded contents. Signature verification requires the appropriate cryptographic algorithm and verification key.
What are the three parts of a JWT?
A typical JWT contains a header, payload and signature separated by periods: header.payload.signature.
What does the JWT exp claim mean?
The exp claim specifies the expiration time of a JWT. It is normally represented as a NumericDate based on Unix time in seconds.
What do iat and nbf mean in a JWT?
iat commonly represents the time when the token was issued, while nbf specifies the time before which the token should not be accepted.
What do iss, sub and aud mean in a JWT?
iss identifies the issuer, sub identifies the subject, and aud identifies the intended audience of the token.
Is a JWT encrypted or just encoded?
A typical signed JWT uses Base64URL encoding for its header and payload. Encoding is not encryption, so those sections can normally be decoded without a secret.
Can I decode a Bearer token with a JWT decoder?
Yes. A Bearer token is an HTTP authentication scheme. Once the Bearer prefix is removed, the JWT itself can be decoded as a three-part token.
What algorithms can this JWT decoder read?
JWT decoding does not require cryptographic verification of the algorithm. The decoder reads the alg value from the header and can display it regardless of whether the token uses HS256, HS384, HS512, RS256, ES256 or another JWT algorithm identifier.
Does the AabiTech JWT Decoder upload my token?
The JWT decoding operation runs locally in your browser, so the token does not need to be uploaded to AabiTech or sent to an external decoding API.
Can a decoded JWT be trusted?
A successful decode does not prove that a JWT is authentic. The token must be verified using the appropriate signature algorithm and trusted verification key before its claims are relied upon for security decisions.
Can I use the JWT decoder to debug an API authentication problem?
Yes. Inspecting the header, claims and time values can help identify missing claims, unexpected algorithms, expired tokens and not-yet-valid tokens during API and authentication debugging.

Explore more AabiTech tools

Browse the complete collection of practical online tools for development, text, design, calculations and everyday digital work.