# JWT Encoder/Decoder

> Decode a JSON Web Token to inspect header, payload, and expiry, or sign test tokens with HS256 and a secret. Tokens never leave your browser.

[bfotkit](/) Runs in your browserCategories ▾[All tools 307](/en/tools/)[Text tools9](/en/tools/text-tools/)[Image tools27](/en/tools/image-tools/)[PDF tools20](/en/tools/pdf-tools/)[Social media tools97](/en/tools/social-media-tools/)[Security tools8](/en/tools/security-tools/)[Coding tools25](/en/tools/coding-tools/)[CSS tools12](/en/tools/css-tools/)[Color tools6](/en/tools/color-tools/)[Miscellaneous tools103](/en/tools/miscellaneous-tools/)

[All tools ↗](/en/tools/)[EN](/en/tools/jwt-encoder-decoder/)[PT](/pt-br/ferramentas/decodificador-jwt/)[DE](/de/werkzeuge/jwt-dekodierer/)[ID](/id/alat/dekoder-jwt/)[RU](/ru/instrumenty/dekodirovshik-jwt/)

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.

JWT to decodeDecode token

Sign a token (HS256)

Claim builder

AlgorithmHS256HS384HS512 Auto-set Issued at (iat)Issued at (iat)Expires in (exp)Not before (nbf)Subject (sub)Issuer (iss)Audience (aud)JWT ID (jti)

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

Header JSON{"alg":"HS256","typ":"JWT"}Payload JSON{"sub":"test-user","exp":4102444800}Secret

Sign with HS256Copy

Clear

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.

[All tools 307](/en/tools/)[Text tools 9](/en/tools/text-tools/)[Image tools 27](/en/tools/image-tools/)[PDF tools 20](/en/tools/pdf-tools/)[Social media tools 97](/en/tools/social-media-tools/)[Security tools 8](/en/tools/security-tools/)[Coding tools 25](/en/tools/coding-tools/)[CSS tools 12](/en/tools/css-tools/)[Color tools 6](/en/tools/color-tools/)[Miscellaneous tools 103](/en/tools/miscellaneous-tools/)

[Security toolsMD5 Encrypt/Decrypt↗](/en/tools/md5-encrypt-decrypt/)[Security toolsSHA1 Encrypt/Decrypt↗](/en/tools/sha1-encrypt-decrypt/)[Security toolsSHA224 Encrypt/Decrypt↗](/en/tools/sha224-encrypt-decrypt/)[Security toolsSHA256 Encrypt/Decrypt↗](/en/tools/sha256-encrypt-decrypt/)[Security toolsSHA384 Encrypt/Decrypt↗](/en/tools/sha384-encrypt-decrypt/)[Security toolsSHA512 Encrypt/Decrypt↗](/en/tools/sha512-encrypt-decrypt/)[Security toolsStrong Random Password Generator↗](/en/tools/strong-random-password-generator/)

[Browse all tools →](/en/tools/)

[bfotkit](/)[All tools](/en/tools/)[Privacy Policy](/en/privacy-policy/)[Terms & Conditions](/en/terms-and-conditions/)[About Us](/en/about-us/)[Contact Us](/en/contact-us/)

Useful tools. No fuss. © 2026 BFOTKit[bfotkit.com ↗](https://bfotkit.com/)
