⚡
usefultools.dev
JWT

JWT Decoder & HS256 Verifier

NEW

JWT decoder that shows the header and payload as readable JSON, explains each claim, converts exp/iat to dates and verifies HS256 signatures. Token stays local.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Decoding is not verifying: anyone can read and edit a JWT payload; only a valid signature proves who issued it. The token never leaves your browser.

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkphbmUgRG9lIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzYzNDI0MDAwLCJleHAiOjIwMDAwMDAwMDB9.OI3UzZ-DCRc13IDN1c29G32Gs1rj5Yu4jeyqKcyMI_o

Header

{
  "alg": "HS256",
  "typ": "JWT"
}
  • alg: HS256 — Signing algorithm (HMAC with SHA-256 (shared secret))
  • typ: JWT — Token type, usually JWT

Payload (claims)

{
  "sub": "1234567890",
  "name": "Jane Doe",
  "role": "admin",
  "iat": 1763424000,
  "exp": 2000000000
}
ClaimValueMeaning
sub1234567890Subject: the user or entity the token is about
nameJane DoeFull name of the user
roleadminCustom claim
iat1763424000
2025-11-18 00:00:00 UTC
Issued at: when the token was created
exp2000000000
2033-05-18 03:33:20 UTC
Expiration time: the token must be rejected after this

Signature

32 bytes

⚡

Quick Examples

Typical inputs and the results this tool produces.

Header
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
{"alg":"HS256","typ":"JWT"}
exp
"exp": 2000000000
2033-05-18 03:33:20 UTC
iat
"iat": 1700000000
2023-11-14 22:13:20 UTC
HS256
Sample token, secret my-secret-key
Signature verified
Error
header.payload
A JWT has 3 parts…
📖

Overview

A JSON Web Token (JWT) is three base64url-encoded parts joined by dots: a header that names the signing algorithm, a payload of claims such as the user ID and expiry time, and a signature. This JWT decoder splits a token, decodes the header and payload into formatted JSON and explains the standard claims like iss, sub, aud, exp, nbf and iat.

Time claims are shown as UTC dates, and a live status tells you whether the token is expired, not yet valid, or how long it remains valid. For tokens signed with HS256, HS384 or HS512 you can enter the shared secret and check the signature with the Web Crypto API. Remember that decoding is not verifying: anyone can read or change a payload, and only the signature proves the token is genuine.

Tokens and secrets are processed in your browser only and are never sent to a server, which matters for production tokens.

Why use this tool?

  • Read token claims without writing code
  • See at a glance if a token expired
  • Verify HMAC signatures with your secret
  • Explains every registered claim
  • Tokens never leave your browser
⭐

Features

🧩

Header and payload

Both parts decoded from base64url and pretty-printed, with a copy button each.

📖

Claim explanations

Registered and common OpenID Connect claims are described next to their values.

⏰

Expiry status

exp, nbf and iat are shown as dates with a live expired / valid-for message.

🔏

HMAC verification

Check HS256, HS384 and HS512 signatures with a text or Base64 secret.

⚠️

Clear errors

Wrong part count, bad base64url characters and invalid JSON are reported per part.

🔐

JWE detection

Encrypted five-part tokens are recognised and their header is still decoded.

🛠️

How to Use

1

Paste the token

Paste a JWT, with or without the "Bearer " prefix.

2

Read the claims

Check the decoded header, payload table and expiry status.

3

Verify (optional)

For HS256/384/512, enter the secret and click Verify signature.

4

Copy JSON

Copy the header or payload JSON for your notes or tests.

🤔

Frequently Asked Questions