JWT decoder
Paste a JSON Web Token to read its header and claims, see exactly when it was issued and when it expires, and check its signature - without sending the token to anyone.
- 1Select
- 2Configure
- 3Process
- 4Download
Your text, files and tokens are processed in your browser and never uploaded.
Accepts Text, files, tokensPaste text, or open a file up to 25 MB for Base64 and 500 MB for hashesResult
Everything happens in your browser - nothing you paste or open is sent anywhere.
What's inside a JWT
A JSON Web Token is three Base64URL parts joined by dots. The header names the signing algorithm, such as HS256 or RS256, and often a key ID. The payload holds the claims: who the token is about (sub), who issued it (iss), who it's for (aud), and any roles or details the application added. The third part is the signature over the first two.
Times are written as NumericDate: whole seconds since 1 January 1970, in UTC. That's why exp looks like 1767225600. The decoder turns iat, nbf and exp into dates in your own time zone and in UTC, and works out whether the token is valid right now.
Checking the signature
Anyone can decode a token and anyone can write one, so the claims mean nothing until the signature is checked. The decoder verifies it in your browser with Web Crypto.
- HS256, HS384, HS512: paste the shared secret. If your system stores it Base64-encoded, tick the Base64 option.
- RS, PS and ES algorithms: paste the public key as a PEM block beginning -----BEGIN PUBLIC KEY-----, or as a JWK.
- A JWK set: paste the whole set from the provider's JWKS address; the key with the token's kid is used.
- alg: none means the token isn't signed at all, and its claims shouldn't be trusted.
Common reasons a token is rejected
An expired exp is the usual culprit, and clocks matter: if a server's clock runs fast, a token can look expired there while it's still valid here. A not-before time in the future, an audience that doesn't match the API, or an issuer from the wrong environment are the next things to compare.
If the signature fails, check that the secret or key belongs to the same environment and that it hasn't been rotated. Tokens with five parts are encrypted (JWE): their contents can only be read with the private key, so this decoder explains that instead of showing a payload.
How to decode a JWT
- Paste the token. It can start with “Bearer”, as copied from an Authorization header.
- Read the status line: valid with the time left, expired and how long ago, or not valid yet.
- Look through the header and the payload, with the issued, not-before and expiry times shown as dates.
- To check the signature, paste the secret (for HS256 and similar) or the public key (for RS256, ES256 and similar).
How your files stay private
The Encoder & Decoder runs entirely in your browser. Text, files, tokens, secrets and keys stay in your device's memory: Base64, URL and HTML conversions are plain JavaScript, and signatures and SHA hashes use the browser's built-in Web Crypto. The page can only connect to this site and to Google Analytics, which counts visits and never receives what you enter. Close the tab and it's gone.
Limits
- Base64 files up to 25 MB, and files up to 500 MB for hashes; very large files can be slow on older phones
- JWT signatures can be checked for HS, RS, PS and ES algorithms and EdDSA; encrypted tokens (JWE) can't be read
- Public keys must be a PEM public key or a JWK; for a certificate, paste the public key it contains
- Named HTML entities are decoded by your browser, so the list it knows is the one the HTML standard defines
Questions
Is this JWT decoder free?
Yes - free and without registration.
Is my token sent to a server?
No. Decoding and signature checks run in your browser, so tokens, secrets and keys never leave your device.
Does decoding verify the token?
No. Decoding only reads it. A token is trustworthy only when its signature matches the key of the party that issued it.
Why does it say the token expired when it still works?
Servers often allow a little clock skew, and some don't check exp at all. The status here compares exp strictly with your device's clock.
Can it read encrypted tokens?
No. A JWE needs the private key to decrypt, and that key should never be pasted into a web page.
Is it safe to paste a token or an API key here?
It doesn't leave your device: decoding, signature checks and hashing all happen in this page. Still, treat live production tokens with care anywhere, and prefer expired or test tokens when you only need to see the layout.
Other tools you might need
Compress PDF
Reduce the size of image-heavy PDFs and scanned documents.PDF Maker
Photos and PDFs into one PDF - arrange, number and fit a size limit in one go.JSON Workbench
Format, validate, repair and compare JSON, convert it to YAML, CSV or XML, or to code.Timestamp Converter
Unix time to date and back, time zones, date differences, log timestamps and cron schedules.