# JWT Decoder

> JWT decoder: view a token's header and payload as JSON, read exp, iat and nbf as dates and see whether it has expired. The token is not sent anywhere.

Source: https://widgetpantry.com/en/jwt-decoder · Türkçe: https://widgetpantry.com/tr/jwt-cozucu

Paste a JSON Web Token to see its header and payload as JSON, and its exp, iat and nbf times as readable dates. The token never leaves your browser, and we never ask for a secret.

Runs in your browser: files and text are not uploaded. [Use the tool](https://widgetpantry.com/en/jwt-decoder)

## How to use it

1. Paste the token; a leading “Bearer ” is skipped.
2. The header, payload and times appear straight away.
3. Copy the part you need as JSON.

## What's inside a JWT?

A JWT is three parts separated by dots: the header (algorithm and type), the payload (user id, roles, times and other claims) and the signature. The first two are only Base64URL-encoded, not encrypted, so anyone can read them. Never put secrets in a token.

exp is when the token stops being valid, iat when it was issued and nbf when it starts being valid, all in seconds since 1970 (Unix time). We show them in your local time and in UTC.

The signature is not verified: that needs the secret or public key, and a secret should not be pasted into a web page. Encrypted tokens (JWE, five parts) cannot be read without the key.

## Frequently asked questions

### Is it safe to paste my token here?

The token is decoded in your browser; it isn't sent to our server or stored. A live token still works like a session key, though, so clear the field or close the page when you're done.

### Does it verify the signature?

No. Verifying needs the secret or public key; the decoder only reads the contents. To be sure a token hasn't been tampered with, verify it on your own server.

### It says “Expired”. What does that mean?

The exp time in the payload has passed. Servers reject expired tokens, so you'll need a new one.

### Why won't a five-part token decode?

A token with five parts is an encrypted JWT (JWE). Its contents can't be read without the key.

## Related tools

- [Base64 Encode/Decode](https://widgetpantry.com/en/base64-encode-decode): Base64 encode and decode online: turn text into Base64 or Base64 back into text. UTF-8, emoji and base64url support. Runs in your browser.
- [JSON Formatter](https://widgetpantry.com/en/json-formatter): Online JSON formatter and validator: pretty-print, validate and minify JSON. Line and column for errors, 2/4-space or tab indentation, one-click copy.
- [Hash Generator](https://widgetpantry.com/en/hash-generator): Generate MD5, SHA-256, SHA-1, SHA-384 and SHA-512 hashes of text or files, copy them and compare against an expected checksum. No upload, runs in your browser.
