SECURITY & ENCODING · BFOTKIT

JWT decoder and HS256 signer online.

Decode a JSON Web Token to inspect its header, payload, and expiry, or sign your own header and payload with HS256 and a secret — all locally in your browser.

Sign a token (HS256)
Claim builder

Fill a field to add that claim to the payload JSON.

Decoding and signing happen entirely in this browser tab. Your tokens and secrets are never sent to a server.

GUIDE

How to decode and sign JWTs

Read the token structure

A JWT is three Base64URL segments joined by dots: a header naming the algorithm, a payload with claims such as sub and exp, and a signature. Decoding here shows each part as readable JSON without touching the signature, so you can inspect what a token from your own API or a third-party service actually contains.

Check expiry and claims

The decoded panel highlights the exp claim and states whether the token is expired relative to this device’s clock. Clock differences of a minute or two are common, so treat borderline tokens carefully. Remember decoding proves nothing about validity: only the issuing server’s signature check does that.

Understand what decoding does not do

This tool does not verify signatures, because verification requires the issuer’s secret or public key. A decoded token with plausible claims can still be forged. Use the decoded output for debugging and education; enforce authorization on the server, never on the presence of a decoded payload.

Sign test tokens with HS256

To create a token for local testing, paste minimal header and payload JSON, enter a secret, and the tool produces an HMAC-SHA256 signature exactly as HS256 specifies. Use obvious test secrets only, and never sign tokens with a real production secret in a browser tool.

HELP / FAQ

JWT questions

Does decoding a JWT verify it?

No. Decoding only reads the header and payload, which are plain Base64URL-encoded JSON. Verification recomputes the signature with the issuer’s key and compares it; without that key, a token’s claims prove nothing.

Where is the secret stored?

Nowhere. The secret is used in this tab to compute the HMAC signature and then discarded; it is not saved, logged, or transmitted.

Can I sign RS256 tokens?

This tool supports HS256 because it is the common algorithm for local testing. RS256 needs a private key and is usually handled by your identity provider or a server-side tool.

What does the exp claim mean?

It is the expiration time in Unix seconds set by the issuer. The decoded panel compares it with your device clock and labels the token expired or shows the remaining time; the server’s check at request time is what actually matters.

EXPLORE BY CATEGORY · BFOTKIT

More tools like this

Pick a category to see every tool in it — then open one and discover related tools.

Browse all tools