JWT Decoder & Encoder Online

What is a JWT?

A JSON Web Token (JWT) is a compact, URL-safe string used to represent claims between two parties. It's made of three Base64-encoded parts separated by dots: header.payload.signature. The header declares the algorithm, the payload carries the actual data (claims), and the signature proves the token hasn't been tampered with.

JWTs are stateless: the server doesn't need to store session data, because all the information is in the token itself. This makes them ideal for distributed systems, microservices, and mobile apps.

🔑 Why Are JWTs Used?

The two main use cases are:

📦 Common Claims in the Payload

ClaimMeaning
subSubject — usually the user ID
iatIssued at — when the token was created (Unix timestamp)
expExpiration — when the token expires (Unix timestamp)
issIssuer — who created the token (e.g. your auth server)
audAudience — who the token is intended for

🔐 Signing Algorithms

The signature prevents tampering. The most common algorithms:

⚠️ What JWTs Are NOT

The payload is only Base64-encoded, not encrypted. Anyone with the token can read the claims — don't put passwords, credit card numbers, or sensitive PII in the payload unless you use JWE (JSON Web Encryption). Also, JWTs can't be revoked before expiry unless you implement a token blacklist, which defeats part of the stateless benefit.

🛠️ When to Use This Tool

Everything runs in your browser — your tokens and secrets never leave your device.

Related Tools