Developer

JWT Decoder

Decode a JSON Web Token to read its header, payload, claims, and expiry date.

Processed entirely in your browser. Nothing is uploaded.

Input

Output

Header and payload appear here

Paste a JWT to decode it.

About

About this tool

A JSON Web Token, or JWT, is a compact string that apps use to prove who a user is. It has three parts separated by dots: a header, a payload with claims, and a signature.

This tool decodes the header and payload so you can read them, and shows whether the token has expired. It does not verify the signature, because that needs your secret or public key. Everything stays in your browser.

Quick guide

How to use

  1. Paste the JWT into the box, or select Use sample token.
  2. Read the header, payload, claims, and expiry status.
  3. Copy the payload if you need it, and use test tokens when you can.
Ideas

When to use it

  • Check what claims a token contains while debugging login
  • See when a token expires
  • Confirm the algorithm named in the header
  • Learn how JWTs are structured
Common questions

Frequently asked questions

Does this verify the signature?

No. It only decodes the token so you can read it. Checking a signature needs your secret or public key and should happen on your server.

Is it safe to paste a real token?

The token is decoded in this browser tab and never sent anywhere. Even so, treat production tokens as secrets and prefer test tokens when you can.

Why does my token say it is invalid?

A JWT has three parts separated by dots, and the first two must be valid Base64URL-encoded JSON. Check that you copied the whole token without extra characters.

Learn more

Read the guide

What Is a JWT? How to Read a JSON Web Token Safely