Skip to content

Security

JWT decoder

Read the header and claims of a JSON Web Token and see whether it has expired.

Private Everything on these pages runs in your browser. What you type is never sent to a server and nothing is stored.

Tokens are decoded locally. Even so, avoid pasting live production tokens into any website.

How to use it

  1. Paste the token (three parts separated by dots).
  2. Read the decoded header and payload.
  3. Check the expiry: exp, nbf and iat are shown as dates.

Example

Input

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Result

Header: {"alg":"HS256","typ":"JWT"}
Payload: {"sub":"1234567890","name":"John Doe","iat":1516239022}

Frequently asked questions

Does this verify the signature?

No. It only decodes the header and payload, which are Base64URL text anyone can read. Verifying a signature needs the key and must be done by your server.

Is it safe to paste a real token?

The token is decoded in your browser and not sent anywhere. Still, treat a live token like a password: prefer expired or test tokens.

Related articles