JWT Decoder

    Decode and inspect JSON Web Tokens instantly

    Instant Decode

    Real-time JWT parsing as you type

    100% Private

    Token never leaves your browser

    No Signup

    Free tool, no registration required

    Understanding JSON Web Tokens

    A JSON Web Token (JWT) is a compact, URL-safe string used to transmit claims between two parties. Defined in RFC 7519, it consists of three Base64url-encoded sections separated by dots: a header declaring the token type and signing algorithm, a payload carrying the actual claims, and a signature that lets the recipient verify the token hasn't been tampered with. Because the structure is self-contained, a server can verify a JWT without querying a database — the token carries its own authorization data.

    The Three Sections Explained

    The header is a JSON object typically containing two fields: alg (the signing algorithm, e.g., HS256 or RS256) and typ (always "JWT"). The payload holds claims — assertions about an entity and additional metadata. Standard claims include sub (subject), iss (issuer), exp (expiration time in Unix seconds), and iat (issued-at). The signature is computed over the encoded header and payload using the secret or private key — only the party holding the key can produce a valid signature.

    Common Use Cases

    Single-page applications receive a JWT after login and attach it to subsequent API requests in the Authorization: Bearer header. Microservice architectures use JWTs to propagate identity and permissions across service boundaries without a shared session store. Refresh token flows issue short-lived access JWTs (15–60 minutes) alongside a long-lived refresh token, limiting the blast radius of a stolen access token. OAuth 2.0 and OpenID Connect build their ID tokens directly on the JWT format.

    Security Notes

    The payload of a JWT is Base64-encoded, not encrypted — anyone can read it. Never store sensitive secrets (passwords, credit card numbers) in a JWT payload unless you use JWE (JSON Web Encryption). Always verify the signature server-side using the signing key; never trust a decoded payload without first validating the signature. This decoder shows you the raw contents of a token for debugging purposes; it does not verify signatures, as that requires the secret key.

    Frequently Asked Questions