Skip to content

JWT Verifier

Runs in your browser

Paste a token and the secret it should have been signed with. The HMAC is recomputed locally with WebCrypto.

Result

Paste a token and its secret — the verdict shows up here

How this one works

The signature of an HS256 token is an HMAC-SHA256 of header.payload keyed with the secret. This page recomputes it with the browser’s built-in WebCrypto and compares it to the token’s signature in constant time.

Secrets are read as plain text by default. If yours is stored as Base64 (common with generated keys), switch the encoding — the same characters mean different bytes.

Questions

Does my secret get sent anywhere?
No. It’s held in memory in this tab and passed to WebCrypto, which runs in your browser. It isn’t saved to storage either, so closing the tab forgets it.
Why can’t it verify RS256 tokens?
RS, ES and PS algorithms use a key pair: the issuer signs with a private key and you verify with their public key (often published as a JWKS). That needs a different input than a shared secret, so it isn’t supported here yet.
The signature is valid — is the token safe to accept?
Not by itself. Also check exp and nbf, that iss and aud are what you expect, and that the alg is the one your server requires rather than whatever the token claims.

Keyboard shortcuts

Global

  • Show this shortcuts dialogShift?
  • Toggle light / dark themeCtrlShiftL
  • Close dialogsEsc

Formatter & Validator

  • Format JSONCtrlEnter
  • Minify JSONCtrlShiftM
  • Copy outputCtrlShiftC
  • Download output as .jsonCtrlShiftS
  • Clear input and outputCtrlShiftX

Tree Viewer

  • Focus the search box/
  • Expand all nodesCtrlShiftE
  • Collapse all nodesCtrlShiftR

Diff

  • Swap document A and BCtrlShiftS

JSON tools

JSON FormatterPretty-print or minify
JSON ValidatorCheck strict JSON validity
JSON Tree ViewerBrowse JSON as a tree
JSON DiffCompare two documents
JSON Path FinderExplore JSONPath expressions
JSON → CSVFlatten JSON into rows
CSV → JSONTurn rows back into objects

JWT tools

JWT DecoderRead header, payload, claims
JWT VerifierCheck an HMAC signature
JWT Expiry Checkeriat, nbf and exp in local time
JWT GeneratorBuild a signed test token
Base64URL EncoderEncode or decode a segment

Code formatters

SQL FormatterBeautify or minify SQL
HTML FormatterBeautify or minify HTML
CSS FormatterBeautify or minify CSS
JavaScript FormatterBeautify or minify JS
Markdown to HTMLConvert with a live preview

Pages

JSON toolsFormat, validate, compare and convert JSON.
JWT toolsDecode, verify and generate JSON Web Tokens.
Code formattersBeautify and minify SQL, HTML, CSS and JavaScript.
HomePopular tools and categories
All categoriesBrowse tools by category
AboutWhat ToolJar is and why
PrivacyWhat is and is not collected

Theme

Switch to light theme
Switch to dark theme