Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

JWT Decoder, Verifier & Signer

Decode a JSON Web Token to inspect its header and payload with readable expiry times, verify an HS256 signature, or sign a brand-new HS256 token from a JSON payload. Everything runs in your browser — tokens and secrets never leave this page.

Paste a token. Decoding does not require the secret.


        

Decode

A JWT has three dot-separated parts — header, payload, signature — each Base64URL-encoded. This tool decodes the header and payload to readable JSON and converts exp, iat and nbf timestamps into human dates so you can see when a token was issued and when it expires.

Verify (HS256)

Decoding never needs the secret — anyone can read a JWT's contents. To confirm a token is authentic, enter the shared secret and verify: the tool recomputes the HMAC-SHA256 signature with the Web Crypto API and compares it. RS/ES (asymmetric) algorithms aren't verified here.

Sign (HS256)

Switch to Sign to build a new token: enter a JSON payload and a secret, and the tool creates the {"alg":"HS256","typ":"JWT"} header, Base64URL-encodes both parts, and signs them with HMAC-SHA256. Tick the boxes to add standard iat (issued-at) and exp (one hour) claims automatically. Handy for testing an API locally — paste the result straight into an Authorization: Bearer header. Only HS256 (shared-secret) signing is supported; RS/ES tokens need a private key and aren't generated here.

Privacy

The token and secret stay in your browser — never uploaded. Still, don't paste production secrets into a machine you don't trust.

Frequently asked questions

Does decoding a JWT prove it's genuine?

No. Decoding only reads the unencrypted header and payload. Use the HS256 verify option with the shared secret to confirm the signature.

Is it safe to paste a token here?

The token and secret stay in your browser and are never uploaded. Still, avoid pasting long-lived production secrets on a machine you don't fully trust.

Related tools