JWT Decoder

Paste a JWT and read its header, payload and expiry — instantly.

Processed locally — files never leave your device

Decoding only reads the token — it does not verify the signature. Anyone can decode a JWT; only the secret can verify it.

—Algorithm
—Expires
—Status

Works offline once loaded Uploaded: 0 bytes

A JSON Web Token (JWT) is three base64url parts joined by dots: header, payload, signature. The payload holds claims like the user ID, roles and expiry — but it is only base64-encoded, not encrypted, so anyone can read it. This free decoder shows the header and payload as readable JSON and tells you whether the token has expired.

Paste any token and the tool splits it, decodes both JSON parts, and converts the exp, iat and nbf timestamps into real dates in your time zone (America/New_York by default). It does not verify the signature — decoding is not the same as trusting a token. To verify one, use the JWT Verifier from this same set, and to read encoded data the Base64 Decoder handles single values.

Debugging a 401 error almost always starts here. The server says the token is invalid, and the developer needs to know whether the token is expired, whether it belongs to the wrong user, or whether the signature was never valid at all. Decoding first — reading the claims before touching the code — answers the first two questions in seconds and tells you exactly where to look next.

How to use

  1. Paste a JWT into the box (the three-part token with two dots).
  2. Click “Decode JWT” (or press Ctrl+Enter), or load the sample token.
  3. Read the header and payload as formatted JSON, plus the expiry verdict.
  4. Use Copy to copy the decoded payload, or Clear to start over.

Why use Toolsvine

Decoding a JWT on a server-side site sends your token — often a live session token — to a stranger. Toolsvine decodes entirely in your browser, so tokens never leave your device. It is free, needs no account, and never stores what you paste.

What is inside a JWT, and what can decoding tell me?

A JWT holds a header (the signing algorithm), a payload (the claims, such as the user ID, roles, and expiry), and a signature that proves the first two were not tampered with. Decoding reads the header and payload as JSON and converts the exp, iat, and nbf timestamps into real dates in your time zone.

Because the payload is only encoded, never encrypted, anyone holding the token can read it — which is why passwords and payment details must never go inside a token. Decoding also never proves the token is genuine: a forged payload decodes fine, so always verify the signature on the server before acting on the claims. The Base64 Decoder handles a single token part on its own.

The three parts of a JWT

A JWT has three base64url parts joined by dots: the header, the payload, and the signature. The first two are base64url-encoded JSON that anyone can read, while the third is a cryptographic hash that proves the first two were not changed. Only the header and payload are decoded here; the signature needs the secret to check.

A JWT looks like eyJhbGciOi… .eyJzdWIiOi… .SflKxwR…. The first part is the header (alg and typ), the second is the payload (the claims), and the third is the signature, which proves the first two were not changed. Only the first two are base64url-encoded JSON; the signature is a cryptographic hash that needs the secret or public key to check.

Common JWT claims

ClaimMeaning
subSubject — usually the user ID
issIssuer — who created the token
audAudience — who the token is for
expExpiry time (seconds since 1970-01-01)
iatIssued-at time
nbfNot valid before this time
jtiToken ID, for revocation lists

Because the payload is only encoded, never assume it is secret: never put passwords, credit card numbers or other sensitive data in a JWT. And never trust a decoded token in your own code — always verify its signature and expiry on the server before acting on it.

What does a worked example look like?

Decode the sample token and the header reads {"alg": "HS256", "typ": "JWT"} while the payload reads sub 1234567890, name John Doe, iat 1516239022 — which is 01/18/2018 at 01:02:03 UTC. The token has no exp claim, so the tool reports No expiry, and the diagram below shows the decoded claims.

JWT decoder showing header HS256 and payload with subject 1234567890 and name John Doe
JWT decoder results for the sample token, showing the HS256 header, the subject, the name John Doe, and the issued-at date.

Frequently asked questions

Is a JWT encrypted?

No. A JWT is signed, not encrypted — the payload is only base64url-encoded, so anyone who has the token can read it. Never put secrets, passwords or payment details in a token. If the payload must stay private, use an encrypted token format (JWE) instead. No. A JWT is signed, not encrypted — the payload is only base64url-encoded, so anyone who has the token can read it.

Why does my token say it is expired?

The exp claim is a Unix timestamp in seconds. The decoder converts it to a date in your time zone and compares it with the current time. If it is in the past, the token is expired and your server should reject it, even if the signature is valid. The exp claim is a Unix timestamp in seconds, which the decoder converts to a date in your time zone and compares with the current time.

Does decoding a JWT verify it?

No. Decoding only reads the contents. A token with a forged payload decodes fine — verification means checking the signature against the secret or public key, which this tool does not do. Use the JWT Verifier tool to check a signature. No. Decoding only reads the contents, and a token with a forged payload decodes fine.

What is base64url encoding?

It is base64 with URL-safe characters: + becomes -, / becomes _, and the trailing = padding is dropped. JWT parts use it so tokens survive in URLs and headers. The Base64 Decoder on this site can decode a single part for you. It is base64 with URL-safe characters: plus becomes a hyphen, slash becomes an underscore, and the trailing equals padding is dropped. JWT parts use it so tokens survive in URLs and headers without breaking.

Is it safe to paste a real token here?

Yes — decoding runs entirely in your browser and nothing is sent anywhere. Still, treat tokens like passwords: do not paste a production token into any site you do not trust, and rotate it if you think it leaked. Yes — decoding runs entirely in your browser and nothing is sent anywhere. Even so, treat tokens like passwords: do not paste a production token into any site you do not trust, and rotate it if you think it leaked.