Skip to content

JWT Decoder

Runs in your browser

Paste a JWT to see its header, payload and claims. Decoding happens as you type, in this tab.

Header

Payload

How this one works

A JWT is three Base64URL strings joined by dots: a header saying how it was signed, a payload of claims, and a signature. The first two are just encoded JSON — anyone holding the token can read them, which is exactly what this page does, without a network request.

Times such as exp and iat are seconds since 1970; they’re shown in your local time zone and the expiry badge counts down live. A leading Bearer or surrounding quotes are stripped automatically.

Questions

Is it safe to paste a real token here?
Nothing you paste leaves the tab: decoding is plain JavaScript and there is no server to send it to. Still, a live token pasted anywhere is worth treating as exposed — rotate it if it grants real access.
Does decoding prove the token is genuine?
No. The header and payload are only encoded, not encrypted, so anyone can write a token that decodes cleanly. Only a valid signature shows the claims came from whoever holds the key — use the JWT Verifier for that.
Why does it say my token has five parts?
Five dot-separated parts means a JWE — an encrypted token. Its payload can only be read with the decryption key, so it can’t be decoded here.

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