JWT Decoder
Paste a JSON Web Token to read its header and claims, see when it expires, and verify an HMAC signature with your secret.
Header
Payload
Claims
Verify signature
For HS256, HS384 and HS512 tokens. The sample token’s secret is toolgu-demo-secret.
Key facts
- Privacy
- Runs in your browser: your files and text are never uploaded
- Last updated
What is inside a JWT
A JSON Web Token has three Base64URL parts separated by dots. The header names the signing algorithm. The payload holds claims such as the user ID (sub), the issuer (iss) and the expiry time (exp). The signature proves the first two parts weren’t changed.
Paste a token to read it, check the expiry against your clock, and confirm an HMAC signature with the shared secret.
Frequently asked questions
Is it safe to paste a real token here?
Decoding and verification run entirely in your browser; the token is never sent anywhere. Still, treat production tokens like passwords and prefer expired or test tokens when you can.
Does decoding prove a token is valid?
No. Anyone can read a JWT’s payload, because it is only Base64URL-encoded. Only checking the signature with the right key proves it wasn’t changed.
Can it verify RS256 or ES256 tokens?
Not yet. Those use public-key signatures; this tool verifies HMAC tokens (HS256, HS384, HS512) with a shared secret, and decodes every type.
What are the three parts of a JWT?
The header, the payload and the signature, each Base64url-encoded and separated by dots. The header names the signing algorithm, the payload holds the claims, and the signature proves the first two weren’t changed.
What do exp, iat and nbf mean?
They are times in Unix seconds. exp is when the token expires, iat is when it was issued, and nbf (not before) is when it starts being valid. The decoder shows them as readable dates.
Sources
The rules and figures this tool uses come from:
Related tools
- JSON FormatterPretty-print, validate and minify JSON
- Regex TesterTest patterns with live match highlights
- Unix Timestamp ConverterEpoch time to dates and back
- Binary ConverterBinary, decimal, hex and octal, two’s complement and text to binary
- Base64 Encode / DecodeText and files to and from Base64
- URL Encode / DecodePercent-encode text and inspect URLs
- Hash GeneratorMD5, SHA-1, SHA-256 and SHA-512 for text and files
- Bottleneck CalculatorCheck if your CPU or GPU holds back gaming performance