JWT Decoder

Decode a JSON Web Token (JWT) into its header and payload (no signature verification — that needs the signing key).

Signature is shown but not verified — verification requires the algorithm's signing key. Treat decoded payloads from untrusted tokens with care.

The three parts of a token

A JSON Web Token is three Base64URL strings joined by dots:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 . eyJzdWIiOiIxMjM0NTY3ODkwIiwiZXhwIjoxNzAwMDAwMDAwfQ . <signature>
└──────────── header ──────────────┘   └─────────────────── payload ──────────────────┘

The first part decodes to the header {"alg":"HS256","typ":"JWT"}. The second decodes to the payload, here {"sub":"1234567890","exp":1700000000}. The third part is the signature over the first two; it is binary and has no readable content.

Header and payload are encoded, not encrypted. Anyone who holds the token can read them, so a token must never carry a password or other secret.

Reading the claims

  • exp, iat, nbf are Unix timestamps in seconds. "exp":1700000000 is 2023-11-14 22:13:20 UTC; after that moment the token is expired. A value with 13 digits is in milliseconds, which is an error in the issuing code.
  • alg names the signature algorithm. HS256 uses one shared secret; RS256 and ES256 use a private key to sign and a public key to verify. A token with "alg":"none" is unsigned and must be rejected by a server.
  • kid names the key that signed the token, for lookup in the issuer's key set.
  • iss, aud, sub state who issued the token, for which service, and about which user. A server must compare aud with its own identifier.

Decoding proves nothing about authenticity: a token with an altered payload decodes just as well. Only the server that holds the key can verify the signature.

Related tools

Monitor JWT Decoder automatically

Decode a JSON Web Token (JWT) into its header and payload (no signature verification — that needs the signing key). NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.

Start monitoring free → See all monitoring products

Frequently Asked Questions

What is a JWT?

A JSON Web Token (JWT) is a compact, URL-safe string used to transmit claims between parties. It has three Base64-encoded parts separated by dots: header.payload.signature. The header specifies the algorithm; the payload carries the claims (user ID, roles, expiry, etc.); the signature proves the token was issued by a trusted party.

Can this tool verify the signature?

No — signature verification requires the secret key (for Hash-based Message Authentication Code (HMAC) algorithms like HS256) or the public key (for Rivest-Shamir-Adleman (RSA)/Elliptic Curve (EC) algorithms like RS256). This tool only decodes the Base64 parts to make the claims readable. Never trust the payload claims without verifying the signature in your application code.

What are the standard JSON Web Token (JWT) claims?
  • sub — subject (usually the user ID).
  • iss — issuer (who created the token).
  • aud — audience (intended recipient).
  • exp — expiry time (Unix timestamp).
  • iat — issued-at time.
  • nbf — not-before time (token is invalid before this).
Is it safe to paste a real JWT here?

A JSON Web Token (JWT)'s payload is only Base64-encoded, not encrypted — anyone who can read the token can read its claims. However, you should still treat JWTs as secrets because a valid token grants access until it expires. When debugging, use a short-lived test token or redact the signature before pasting.