Home » Developer » JWT Decoder

JWT Decoder

Paste a compact JWT to decode its readable header and payload and inspect exp, iat, and nbf timestamps. This is a decoder, not a verifier: it never checks the signature, issuer, audience, revocation, or permissions, so a successful decode does not mean the token is authentic or valid.

Developer Updated August 2026 3 min read

Paste JWT Token

⚠️ Decode only — no signature verification. A readable payload can be forged. Never paste private keys or signing secrets; prefer synthetic or non-production tokens.

A JWT Has Three Dot-Separated Segments

The compact form defined by RFC 7519 and handled here is header.payload.signature. Each segment is separated by a literal dot, and the first two are Base64URL-encoded UTF-8 JSON:

Header — what the token says about itself
Usually JSON containing alg (the signing algorithm), typ (often JWT), and sometimes kid for selecting a verification key. The header is guidance supplied by an untrusted party until the signature and application policy confirm it.
Payload — the claims
A JSON object with statements such as sub, iss, aud, exp, iat, nbf, scopes, or application-specific data. Base64URL is reversible encoding, not encryption, so anyone holding the token can read these values.
Signature — evidence that can be checked
Bytes produced by a signer from the exact ASCII string encoded-header.encoded-payload. A verifier recomputes those bytes with an algorithm and key selected from trusted server policy, not blindly from the token's own header. This is a different operation from reading the first two segments.

Some JWT-shaped inputs use the unsecured alg: none form, omit a meaningful signature, or are not JWTs at all. Encrypted JWTs can use the five-part JWE serialization, which this three-segment decoder does not support. For the compact form shown here, the page requires three dot-separated segments and decodes the first two. It does not inspect the algorithm, obtain a key, recompute the signature, or reject none. A readable header and payload therefore establish structure, not authenticity.

Decode Is Not Verify

Decode is a data-reading operation: convert Base64URL to bytes, decode those bytes as UTF-8, and parse the header and payload as JSON. Verify is a cryptographic operation: choose an algorithm from trusted server policy, retrieve the expected key, verify the signature over the exact encoded header and payload, and only then evaluate registered and application claims. This page performs the first operation only.

A successful decode is not a successful authentication. An attacker can invent {"sub":"victim","role":"admin","exp":9999999999}, encode it, append any signature bytes, and make it readable here. If a backend accepts those claims without checking the signature, issuer, audience, time window, token type, and required permissions, it creates an authorization vulnerability. Even a cryptographically valid signature proves integrity under a particular key—not that every claim is appropriate for your API.

The green “Valid until” badge is especially easy to misread. It means only that the decoded payload contains a finite numeric exp whose timestamp is still in the future according to this browser's clock. It does not mean the signature is valid, the issuer is trusted, the audience matches, the token has not been revoked, or the bearer is authorized. A forged payload can display the same badge.

What This Decoder Checks—and What It Omits

The implementation follows a deliberately small pipeline:

  1. Trim the pasted token and split it on .; require exactly three segments.
  2. Convert -/_ to standard Base64 characters, add padding when needed, call atob(), and decode the bytes as UTF-8.
  3. Run JSON.parse() on the first two segments and pretty-print the resulting objects.
  4. When exp, iat, or nbf is a finite number, convert Unix seconds to the browser's local date display.

It does not enforce that the decoded header and payload are objects, validate iss or aud, enforce nbf, apply clock-skew policy, look up revocation, check typ, authorize scopes or roles, validate nested data, confirm that alg is allowed, or verify the third segment. Treat the result as diagnostic visibility into a token you already control—not as a token-validity decision.

Safe Troubleshooting Workflow

Use this page with synthetic tokens, documentation examples, or short-lived credentials in a controlled development environment. For a real incident, first minimize exposure: prefer a revoked or expired test token, redact identifiers before sharing screenshots, and never paste signing secrets or private keys. Access tokens and refresh tokens are bearer credentials, so anyone who obtains an active one may be able to use it until it expires or is revoked.

Production authorization belongs in a trusted backend library such as jsonwebtoken, PyJWT, or a language-provided JOSE library. Follow the JWT Best Current Practices in RFC 8725: configure the expected algorithm and key source rather than trusting whatever alg the token requests. Verify the signature first, then check issuer, audience, expiration, not-before, required token type, scopes or roles, and any revocation state required by the application. The decoder can help answer “what does this token appear to contain?”; only that backend process can answer “may this caller use it?”

Common Claims Need Context

  • sub: identifies the subject, not necessarily the current human at the browser.
  • iss: claims who issued the token; the verifier must compare it with the issuers it trusts.
  • aud: identifies intended recipients and may be a string or array; it must match the protected resource.
  • exp / nbf: define a time window, subject to the verifier's clock-skew policy. The page displays dates but does not enforce access.
  • iat: records an asserted issue time; it does not by itself prove when the issuer actually created the token.

Local decoding reduces one transmission path; it does not make a live token harmless. This script makes no verification request, sends no token to a Rabeekit service, and stores no token history, but the token is present in a live web-page DOM where compromised code, browser extensions, endpoint controls, clipboard tools, or screenshots can still expose it. The wider site may load analytics and advertising resources under its consent controls. Never enter private keys or signing secrets here, and prefer local offline tooling for production credentials.

Frequently Asked Questions

Is my JWT token sent anywhere?

The decoder code has no token-upload or verification request and stores no token history. That does not make a live production credential harmless: the token remains in a web-page DOM and could be exposed by compromised code, extensions, endpoint controls, screenshots, or clipboard tools. Use synthetic or non-production tokens and prefer trusted local tooling for real credentials.

What's the difference between decoding and verifying a JWT?

Decoding converts the readable Base64URL header and payload to JSON. Verifying uses trusted server-side policy and key material to check the signature over the exact encoded header and payload, then evaluates issuer, audience, time, token type, and permissions. This page only decodes; even a successful decode and future exp badge do not authenticate a token.

What do exp, iat, and nbf mean?

These are registered numeric time claims expressed as Unix seconds: exp is the asserted expiration, iat the asserted issue time, and nbf the asserted not-before time. This page converts finite numeric values to local dates for inspection, but it does not verify the signature or enforce the time window.

Why can't I trust the payload data without server-side verification?

Anyone can encode a chosen payload and append arbitrary signature bytes. A backend that trusts decoded claims can therefore be given forged roles, subjects, issuers, or audiences. Verification must pin an expected algorithm and key source, check the signature, and then apply issuer, audience, time, token-type, permission, and revocation policy.

Why does my token fail to decode here?

This decoder requires exactly three dot-separated segments and valid Base64URL-encoded JSON in the first two. A five-part encrypted JWE, corrupted copy, missing segment, or non-JSON header or payload is rejected. Its error means the compact input could not be decoded, not that a signature was checked or found invalid.

Where can I verify a JWT signature?

Use a trusted backend JOSE implementation such as jsonwebtoken, PyJWT, or a language-provided library. Configure the allowed algorithm and key source independently of the untrusted token header, verify the signature, then validate issuer, audience, exp, nbf, token type, permissions, and any required revocation state. Never paste a signing secret or private key into this decoder.