# JWT Decoder

> Decode and inspect JSON Web Tokens to see the header, payload, and claims. Client-side only -- your tokens stay private.

- Open the tool: https://overtooled.com/jwt-decoder
- Category: Developer
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: jwt, token, decode, header, payload, auth

## In short

Decode and inspect JWT token headers, payloads, and claims.

## Overview

Decodes a JSON Web Token into its header and payload JSON and shows the signature segment, live as you paste. Also shows whether the token is expired based on its exp claim. For debugging auth tokens; it does not verify signatures.

## Features

- Splits the token on dots and Base64URL-decodes the header and payload as UTF-8 JSON
- Header and payload shown as pretty-printed JSON, each with Copy and Pipeline buttons
- Signature segment shown as-is (still Base64URL) with Copy and Pipeline buttons
- Expiration banner from the exp claim: red "Expired 3 days ago" or green "Expires in 45 minutes" (largest whole unit: years, days, hours or minutes), plus the ISO 8601 UTC date
- A pasted "Bearer " or "Authorization: Bearer " prefix is ignored
- The payload is shown and copied exactly as decoded; readable ISO 8601 UTC dates for the iat, nbf, and exp claims are listed separately below it
- Load Sample button inserts an example HS256 token; Clear button empties the input

## How to use it

1. Paste a JWT into the JWT Token box (or click Load Sample)
2. Read the header, payload, and expiration banner
3. Copy whichever section you need

## Inputs

- A compact-serialized JWS/JWT: exactly three Base64URL segments separated by dots (header.payload.signature)

## Outputs

- Header JSON, payload JSON, raw signature string, and expiration status
- Copy or Pipeline for each section

## Limits and notes

- Signature is not verified; there is no key or secret input
- Tokens with other than 3 parts (such as 5-part JWE encrypted tokens) are rejected with "JWT must have 3 parts separated by dots"
- Header and payload are re-formatted as pretty-printed JSON (same keys and values, different whitespace); integers beyond 2^53 lose precision when parsed
- Expiry time is computed once when the token changes (it does not count down live)
- If the signature segment is empty (alg "none" tokens), the signature section is hidden
- Nothing is saved to localStorage; the token is decoded in the browser and never uploaded

## Questions and answers

### How does the JWT Decoder work?

A JWT is three Base64URL segments separated by dots: header, payload, and signature. The tool splits on the dots, decodes the header and payload from Base64URL to UTF-8 text, parses them as JSON, and shows them exactly as decoded (pretty-printed, nothing added). The signature is shown as-is. If the payload has an exp claim, a banner shows whether the token is expired, and readable ISO dates for the iat, nbf and exp claims are listed separately below the payload. No key is needed because the header and payload are encoded, not encrypted.

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

Yes. The decoding happens entirely in your browser. Your token is never sent to any server. JWTs are base64-encoded (not encrypted), so decoding does not require any secret key.

### What information can I see in a JWT?

The header (algorithm and token type), the payload (claims like user ID, email, expiration time, roles), and the signature. The tool formats each section as readable JSON.

### Does this verify the JWT signature?

No. The tool decodes and displays the header, payload, and signature, but it does not check the signature. Verification needs the signing secret (for HMAC algorithms like HS256) or the public key (for RS256, ES256, and similar), and this tool has no key input.

## Related tools

- [Base64 Encode/Decode](https://overtooled.com/base64.md): Encode text to Base64 or decode Base64 strings instantly
- [HTML Entity Encoder/Decoder](https://overtooled.com/html-entities.md): Encode special characters to HTML entities and decode them back
- [URL Encode/Decode](https://overtooled.com/url-encode.md): Encode and decode URLs, query parameters, and special characters
- [Barcode Generator](https://overtooled.com/barcode-generator.md): Generate single or bulk barcodes (EAN-13, UPC-A, Code 128, Code 39). Download as PNG or ZIP.

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
