Skip to content
DeveloperPK

JWT Decoder

Read the header and payload of a JSON Web Token and check its expiry.

Paste the token, with or without the “Bearer ” prefix.

How to use the JWT Decoder

  1. 1

    Paste the token, with or without the "Bearer " prefix.

  2. 2

    Read the decoded header (algorithm and type) and payload (the claims).

  3. 3

    Check the expiry banner and the issued-at and expiry times.

  4. 4

    Copy either part as formatted JSON.

About this tool

A JSON Web Token (JWT) is how many APIs and login systems pass identity around. It has three parts separated by dots: a header that names the signing algorithm, a payload of claims such as the user ID and expiry, and a signature.

The header and payload are only Base64url-encoded, not encrypted, so anyone holding a token can read them. That is exactly what this tool does, which makes it handy for debugging "token expired" and permission errors.

Decoding does not prove a token is genuine. Only the server, with the secret or public key, can verify the signature. Because tokens often grant access, this tool never sends them anywhere.

Frequently Asked Questions

Is it safe to paste a real token here?

The token is decoded in your browser and never sent to a server. Still, treat live tokens like passwords and avoid pasting them into tools you do not trust.

Does this verify the signature?

No. Verifying needs the secret or public key the token was signed with, which should stay on your server. This tool only reads what the token says.

What do exp, iat and nbf mean?

They are times in seconds since 1970: exp is when the token expires, iat is when it was issued, and nbf is the earliest time it may be used.

Why does it say my token is invalid?

A JWT must have exactly three dot-separated parts, and the first two must be Base64url-encoded JSON. Copying only part of the token is the usual cause.

Related Developer tools

JWT Decoder: Decode JSON Web Tokens Online | DeveloperPK