Skip to content

Decode a JWT

Paste a JSON Web Token to read its header and claims, and see at a glance when it was issued and whether it has expired.

  • Runs in your browser
  • Nothing is sent
  • Works offline

Token

What's inside a JWT

A JSON Web Token has three parts separated by dots: a header saying how it's signed, a payload of claims such as the user ID and expiry time, and a signature. The header and payload are just Base64URL-encoded JSON, so anyone holding the token can read them.

Decoding is useful when debugging sign-in problems: you can check which user a token belongs to, which permissions it carries and whether it has expired.

  • exp: when the token expires. Expired tokens are rejected by servers.
  • iat: when the token was issued.
  • sub: the subject, usually the user ID.

How to decode a JWT

  1. 01

    Paste the token

    Paste a JWT, with or without the word Bearer in front.

  2. 02

    Read the claims

    The header and payload appear as formatted JSON, with issued, not-before and expiry times converted to readable dates.

  3. 03

    Copy what you need

    Copy the header or payload JSON with one click.

Features

JSON formatter

Pretty-print, validate, sort and minify JSON, with the exact location of any error.

Base64

Encode and decode text and files, including URL-safe Base64 and data URLs.

URL encoding

Percent-encode and decode text, and break any URL into its parts and parameters.

JWT decoder

Read token headers and claims with readable issued and expiry times.

Instant

Results update as you type, with no buttons to press and no waiting for a server.

Private

Nothing you paste leaves your browser, so it's safe for API keys, logs and customer data.

Frequently asked questions

Is my data sent anywhere?

No. Everything runs in your browser, so API responses, tokens and config files never leave your device. It also works offline once the page has loaded.

Is it safe to paste a real token here?

Decoding happens entirely in your browser and the token isn't saved, even in this browser. Still, treat live tokens like passwords and prefer expired or test tokens when you can.

Does this verify the signature?

No. Verifying needs the signing secret or public key, which you should never paste into a website. Use your server or a library for verification.

Why does it say Expired?

The exp claim is a time in seconds. If it's earlier than now, the token has expired and servers will reject it.

More free tools