opyebJWTlab
OPYEB · serverless static tool

What a single JWT line actually contains

Paste a token and its header, payload and signature open immediately. Standard claims are explained in plain language, expiry counts down live, and HMAC, RSA, ECDSA and EdDSA signatures are verified with Web Crypto inside this browser only.

One-line answer: JWTlab is a free audit tool that decodes and verifies JWTs locally; tokens and keys are never sent anywhere.

  • 100%runs in the browser
  • 6synthetic sample tokens
  • 14signature algorithms
  • 0input data uploads
    (excl. ad/affiliate widgets)

① Decode the token

Paste a single JWT. A Bearer prefix is fine and line breaks are removed. Decoding runs in your browser as you type.

Local only
Sample tokens
algorithmHS256
typJWT
kiddemo-hs-1
parts3
signature length32 B
expires2030-01-011128d 4h left

alg=HS256 · typ=JWT · kid=demo-hs-1 · parts=3 · sig=32B

exp · expiration2030-01-01T00:00:00Z1128d 4h left
nbf · not before2026-05-28T20:26:40Zvalid

Header · JSON

{
  "alg": "HS256",
  "typ": "JWT",
  "kid": "demo-hs-1"
}

Tree

  • algstring"HS256"
  • typstring"JWT"
  • kidstring"demo-hs-1"

Payload · JSON

{
  "iss": "https://auth.example.com",
  "sub": "user-1042",
  "aud": [
    "https://api.example.com"
  ],
  "scope": "read:orders write:cart",
  "name": "Demo User",
  "email": "demo.user@example.com",
  "iat": 1780000000,
  "nbf": 1780000000,
  "exp": 1893456000,
  "jti": "9f1c2b7e-4a55-4d0e-9c3a-7b1e2d4f6a80"
}

Tree

  • issstring"https://auth.example.com"
  • substring"user-1042"
  • audarray[1]
    • 0string"https://api.example.com"
  • scopestring"read:orders write:cart"
  • namestring"Demo User"
  • emailstring"demo.user@example.com"
  • iatnumber1780000000
  • nbfnumber1780000000
  • expnumber1893456000
  • jtistring"9f1c2b7e-4a55-4d0e-9c3a-7b1e2d4f6a80"

Signature

32 B · 4209a42db6607d812759dd6a552099b21fab3aadb8c964144a446a63c288aa40

The signature bytes, decoded from Base64URL. Verification uses the key in section ②.

③ Claim interpretation

Standard claims are shown with their meaning and verdict; every other claim is listed verbatim.

ClaimValueVerdict
iss · issuerWho issued the token. It must be an issuer on the verifying service's trust list.https://auth.example.compass
sub · subjectThe identifier of the user or service the token is about. Avoid putting an email address or employee number here.user-1042pass
aud · audienceWho must accept this token. Your service should reject it when it is not in this list.["https://api.example.com"]pass
exp · expirationAfter this instant the token must not be accepted. Allow a few minutes of leeway for clock differences.1893456000 2030-01-01T00:00:00Zcare
nbf · not beforeBefore this instant the token is not valid. A future time means it cannot be used yet.1780000000 2026-05-28T20:26:40Zpass
iat · issued atWhen the token was issued. Far in the past suggests a stale token; in the future suggests clock drift.1780000000 2026-05-28T20:26:40Zpass
jti · token IDA unique token ID, used for replay prevention and revocation lists.9f1c2b7e-4a55-4d0e-9c3a-7b1e2d4f6a80pass
emailA custom value, not a registered claim. Validate it according to your service policy.demo.user@example.cominfo
nameA custom value, not a registered claim. Validate it according to your service policy.Demo Userinfo
scopeA custom value, not a registered claim. Validate it according to your service policy.read:orders write:cartinfo

② Verify the signature

The algorithm comes from the header's alg. For HMAC paste the secret; for RSA, ECDSA and EdDSA paste the public key (JWK, PEM or JWKS). Verification also happens only in your browser.

Signature valid

Copy public keys from a JWKS endpoint you trust; this tool never requests one for you (zero API). A token with alg=none has no signature, so it is reported as a risk instead of being verified.

④ Security and claim audit

Fifteen checks cover the algorithm, keys, time claims and personal data. Verdicts are advisory and separate from the signature result.

  • passToken structure (3 parts, Base64URL)3 parts
  • passSignature algorithm (alg)HS256
  • passalg=none rejectedoff
  • passAlgorithm vs key typeoct
  • passHMAC secret strength40B
  • passtyp headerJWT
  • passkid (key ID)demo-hs-1
  • careExpiration (exp)2030-01-01T00:00:00Z
  • passNot before (nbf)2026-05-28T20:26:40Z
  • passIssued at (iat)2026-05-28T20:26:40Z
  • passAudience (aud)["https://api.example.com"]
  • passIssuer (iss)https://auth.example.com
  • passToken ID (jti)9f1c2b7e-4a55-4d0e-9c3a-7b1e2d4f6a80
  • carePersonal data tracesemail x1
  • passSignature verificationvalid

This report was produced in your browser only. The token and key were not sent anywhere.

⑤ Export the audit report

Copy or download the decode and audit result as a Markdown table or JSON. Files are built in the browser and never uploaded.

Markdown preview

# JWTlab audit report

- **algorithm**: `HS256`
- **typ**: `JWT`
- **kid**: `demo-hs-1`
- **parts**: 3
- **signature length**: 32 B
- **signature**: valid

## Claim interpretation

| Claim | Value | Verdict |
| --- | --- | --- |
| `iss` | `https://auth.example.com` | pass |
| `sub` | `user-1042` | pass |
| `aud` | `["https://api.example.com"]` | pass |
| `exp` | `1893456000` | care |
| `nbf` | `1780000000` | pass |
| `iat` | `1780000000` | pass |
| `jti` | `9f1c2b7e-4a55-4d0e-9c3a-7b1e2d4f6a80` | pass |
| `email` | `demo.user@example.com` | info |
| `name` | `Demo User` | info |
| `scope` | `read:orders write:cart` | info |

## Security and claim audit

| Check | Verdict | Value |
| --- | --- | --- |
| Token structure (3 parts, Base64URL) | pass | `3 parts` |
| Signature algorithm (alg) | pass | `HS256` |
| alg=none rejected | pass | `off` |
| Algorithm vs key type | pass | `oct` |
| HMAC secret strength | pass | `40B` |
| typ header | pass | `JWT` |
| kid (key ID) | pass | `demo-hs-1` |
| Expiration (exp) | care | `2030-01-01T00:00:00Z` |
| Not before (nbf) | pass | `2026-05-28T20:26:40Z` |
| Issued at (iat) | pass | `2026-05-28T20:26:40Z` |
| Audience (aud) | pass | `["https://api.example.com"]` |
| Issuer (iss) | pass | `https://auth.example.com` |
| Token ID (jti) | pass | `9f1c2b7e-4a55-4d0e-9c3a-7b1e2d4f6a80` |
| Personal data traces | care | `email x1` |
| Signature verification | pass | `valid` |

> This report was produced in your browser only. The token and key were not sent anywhere.

How it works

It follows the order set by RFC 7519 and RFC 7515, and every computation stays inside the browser.

Split the tokenSplit header.payload.signature on . and Base64URL-decode each part. Padding is optional; a Bearer prefix and line breaks are removed first.
Read header and payloadRead alg, typ and kid from the header to pick the algorithm, then interpret the standard payload claims by meaning and by time.
Verify the signatureImport a Web Crypto key for the given alg and verify the signature over the header.payload bytes: the secret for HMAC, a public key for everything else.
Audit and exportCheck alg=none, key-type mismatches, weak secrets, time claims and personal data, then export the report as Markdown or JSON.

Frequently asked questions

Is the token I paste sent to a server?

No. This site has no server code, no API and no accounts. Decoding and verification run only in your browser with JavaScript and Web Crypto, and the token and key are not stored in localStorage either. Closing the page clears them. The only outbound request is the advertising loader.

What does signature verification actually check?

It verifies the signature over the exact `header.payload` bytes with the key you provide. HMAC recomputes the tag with the shared secret; RSA, ECDSA and EdDSA verify with the public key. A valid signature does not make a token safe, so read the claim audit as well.

Why is a warning shown when exp is in the future?

A token whose expiry is more than a year away, or whose lifetime from iat exceeds 30 days, is flagged. Access tokens are usually issued for minutes or hours; long-lived credentials belong in a refresh token that can be revoked.

Why is alg=none dangerous?

alg=none means the token has no signature. If a verifier trusts the header's alg without pinning it, anyone can rewrite the payload and be accepted. JWTlab marks alg=none as a risk and does not attempt verification.

What is an algorithm confusion attack?

An attacker changes an RS256 token to HS256 and makes the verifier use the public RSA key as the HMAC secret. Because the public key is public, the attacker can then produce a valid tag. JWTlab refuses to verify when the algorithm family and the key type disagree.

Where do I get a JWKS?

From the JWKS endpoint your identity provider publishes, for example `https://id.example.com/.well-known/jwks.json`, pasted into the key box. JWTlab is zero-API and will not fetch it for you. When the set holds several keys, the header's kid selects the right one.

Should I use HS256 or RS256?

Use an asymmetric algorithm (RS256, ES256, EdDSA) when several services verify the same token and verifiers must not hold the signing secret. HS256 is fine when issuer and verifier live in one process with solid secret management, but the secret must be a random value of at least 32 bytes.

Does it work on mobile?

Decoding and the audit work the same in mobile browsers with no horizontal scrolling down to 320px. Signature verification needs Web Crypto; EdDSA works in current Chromium and Safari. An unsupported algorithm is reported as not verifiable rather than guessed.

JWT and JWS field guides

From token structure to algorithm confusion, claim validation and key rotation, in the order you meet them.