JWT Decoder
Decode a JSON Web Token header and payload, convert iat, nbf and exp to readable dates, and see whether it has expired. Tokens stay on your device.
Runs on your device
Result
Results appear here as you type.
What it does
When an API returns 401, the token is often expired or carries the wrong audience. Paste the token to read its claims. Decoding happens locally because tokens are credentials; avoid pasting production tokens into server side decoders.
How to use it
- Paste the token (with or without the "Bearer " prefix).
- Read the header, payload and time claims.
- Check the expiry status.
Example
The example fills in realistic values and runs the tool. Select Try an example above to see it.
When it helps
- Debugging authentication errors.
- Confirming which scopes or roles a token carries.
- Checking token lifetime settings.
Questions
Does this verify the signature?
No. Verifying needs the secret or public key, which should not be pasted into a web page. Treat decoded claims as unverified.
Is the token sent anywhere?
No. Decoding is a Base64URL and JSON operation done in your browser.
More developer tools
See all 25- UUID v4 Generator Generate up to 1,000 random version 4 UUIDs at once using a cryptographically secure random source, in lowercase, uppercase or without hyphens.
- Regex Tester Test JavaScript regular expressions against sample text and list every match with its position and capture groups.
- Unix Timestamp Converter Convert Unix timestamps in seconds or milliseconds to ISO 8601, UTC and local time, or turn a date string back into a timestamp.
- JSON to CSV Converter Convert a JSON array of objects into a CSV file. Nested objects become dot notation columns and formula like cells are neutralised for spreadsheets.
- CSV to JSON Converter Parse CSV (quoted fields, embedded commas and line breaks included) into a JSON array, using the header row as keys and optional type inference.
- HTML Entity Encoder & Decoder Escape text for safe use inside HTML, encode every non-ASCII character as a numeric entity, or decode named and numeric entities back to text.
People also use
Browse all 200 tools- Random Number Generator Generate random numbers in any range, one or many at a time, with no repeats if you need them. Uses a cryptographically secure random source. Quick utilities
- US Paycheck Calculator (Take Home Pay) Estimate take home pay per paycheck after 2026 federal income tax, Social Security, Medicare, 401(k) and your state income tax rate. Personal finance
- Meta Tag & Open Graph Generator Generate title, meta description, canonical, Open Graph and Twitter Card tags for a page, with length warnings based on how search results display. SEO
- Online Timer A free countdown timer with one click presets from 1 minute to 1 hour, a loud alarm, fullscreen view and keyboard shortcuts. No sign up or install. Time & productivity