JWT Decoder — Decode JSON Web Tokens Instantly

On this page


     


    A JSON Web Token (JWT) is the long string your app sends in an Authorization header after you sign in. It looks like random characters, but it is not encrypted. Anyone holding it can read what is inside. This page decodes a token in your browser so you can see the header, the claims, and exactly when it expires. It does not check the signature, and the sections below explain why that matters.

    eyJhbGci… . eyJzdWIi… . SflKxw… headerpayloadsignature Decode a JWT in your browser
    A JWT is three Base64URL parts joined by dots.

    Try it

    Paste a token. A leading Bearer is removed automatically. Nothing is sent anywhere, but still avoid pasting live production tokens (see the safety section below).

    Paste a token and press Decode.
    Header
    Payload
    Standard claims found
    Signature

    Decoding is not verifying

    The header and payload are only Base64URL-encoded, which is a way of writing bytes as text. It hides nothing. The security of a JWT comes from the signature, which the server checks using a secret or a public key. This tool never sees that key, so it can show you what a token claims but cannot prove the token is genuine.

    Two practical consequences follow. First, never put passwords or private data in a JWT payload, because every holder can read it. Second, never trust a token because it decodes cleanly. Your server must verify the signature and the claims on every request.

    The claims you will see most often

    ClaimMeaningFormat
    issIssuer: who created the tokenString or URL
    subSubject: who the token is about, often a user IDString
    audAudience: which service should accept itString or list
    expExpiry: the token must be rejected after this timeSeconds since 1 Jan 1970 (UTC)
    nbfNot before: the token is not valid until this timeSeconds since 1970
    iatIssued at: when it was createdSeconds since 1970
    jtiToken ID, useful for revocation listsString

    Other names, such as email or role, are defined by the application or listed in the IANA JWT claims registry. If you need to inspect the JSON itself more closely, the JSON validator and formatter can pretty-print or sort it.

    When is a token valid? nbfiatnowexp not valid beforeissuedexpires The token is accepted only inside the green window.
    After exp the server must reject the token, even if the signature is correct.

    Problems you may run into

    • "Expired" but you just logged in. Compare the clock on the machine that issued the token with the one that checks it. Servers usually allow a small tolerance, often a few minutes. Also check whether exp is in seconds: a 13-digit value is milliseconds, and the tool warns you about it.
    • "Not valid Base64URL". A pasted token may contain quotes, line breaks, or the word Bearer. The tool strips whitespace and Bearer, but quotes from a JSON response must be removed by hand.
    • Five parts instead of three. That is an encrypted token (JWE). Its contents are not readable without the key, so no browser tool can decode it.
    • Algorithm "none". A token that declares no signature should never be accepted by a server. The tool flags it so you can spot a misconfiguration.

    Safety when working with real tokens

    A valid access token works like a temporary password. If you pasted one into a chat, a ticket, or a web page you do not control, treat it as exposed: sign out to revoke it, or wait for it to expire. For debugging, prefer tokens from a test environment. The OAuth best-practice document RFC 8725 lists the checks a server must perform, and our guide to API security in cloud architecture covers where tokens fit in the bigger picture. If you generate identifiers for token IDs or test data, the UUID generator can help.

    Further reading

    Post a Comment

    0 Comments
    * Please Don't Spam Here. All the Comments are Reviewed by Admin.

    In-Article Ad (Long Posts Only)