NewPlus, API and MCP are live — run 175 tools from your own stack.
100www

Tool 208 · C03 · Encoding / Dev · Updated Nov 2026

JWT Decoder & Generator

Decode a JWT, inspect claims and expiry, or sign a test HS256 token locally.

Browser Free No sign-up
How it works
100www.dev/tools/jwt-decoder
Decoded token
HEADER
{
  "alg": "HS256",
  "typ": "JWT"
}

PAYLOAD
{
  "sub": "1234567890",
  "name": "John Doe",
  "iat": 1516239022
}

Issued at: 2018-01-18T01:30:22.000Z (3242 day(s) ago)

Signature: 3 characters (not verified here)
Decoded locally. A decoded JWT is not a trusted JWT until the signature and issuer are verified.

What it does

A JSON Web Token is three base64url segments separated by dots: a header, a payload and a signature. Decoding shows what a service will read; verifying proves the token was signed by a trusted key. This tool does the first by default and can sign a test token with a shared secret.

How it works

The header names the algorithm and key ID. The payload carries claims: iss, sub, aud, exp, nbf, iat and any application-specific fields. The signature covers the first two segments, encoded exactly as they appear.

Base64url differs from standard Base64: - and _ replace + and /, and padding is omitted. Decoding a JWT by hand often fails because the padding was stripped or a standard Base64 decoder was used.

Decoding is not verification. Anyone can craft a token with any claims. Only a service that checks the signature with the right key can trust it. This tool will happily display a forged token, and that is the point of separating the two steps.

exp is a NumericDate in seconds, not milliseconds. Compare it with the current time, and allow a small clock skew. nbf means not before; iat is issued-at and is not enforced by every library.

Common JWT mistakes: accepting alg: none, trusting the header's key ID without checking it against a known key, using HS256 with a weak shared secret, or storing tokens in localStorage where XSS can read them. Prefer short lifetimes and refresh tokens.

When to use it

  • Inspect the claims in a token issued by an identity provider.
  • Check whether a token is expired or not yet valid.
  • Sign a test HS256 token for a local integration.
  • Compare the header of two tokens after a key rotation.

Glossary

JWT
A compact token format defined by RFC 7519, usually signed with JWS.
Claim
A field in the payload, such as sub or exp.
HS256
HMAC-SHA256, a shared-secret signing algorithm.
RS256
RSA-SHA256, an asymmetric signing algorithm.
alg: none
An unsigned token mode that must never be accepted outside tests.

Frequently asked questions

Can I decode a JWT without the key?+

Yes. The payload is only encoded, not encrypted. That is why you should never put secrets in a JWT.

Does decoding verify the signature?+

No. Verification requires the key and the exact algorithm. A decoded token can be completely forged.

Why does my token show as expired immediately?+

exp is in seconds, and the issuer's clock may differ. Check the timestamp in UTC and allow for a small skew.

Is it safe to paste a real token here?+

Processing is local, but a real token is a credential. Redact it, or use a test token. Anyone with the token can act as the subject until it expires.

Should I store JWTs in localStorage?+

It is readable by any script on the page, so XSS steals it. HttpOnly cookies with CSRF protection are often safer, depending on the architecture.

API & MCP

No API endpoint

This tool runs entirely in your browser. It is not available over the REST API or MCP.

Shareable result

https://100www.dev/tools/jwt-decoder?v=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.signature

100www

100www engineering

Editorial

Reviewed by Steve · · Report an error

Tested from the 100www probe network; results vary by location and network.