Web Tools
JWT Decoder
Decode JWT headers and payloads locally. Free online tool — no sign-up required.
See how to use this toolJWT Decoder
Decode JWT headers and payloads locally without signature verification.
Privacy: this tool processes input locally in your browser without server upload.
About JWT Decoder
ToolConv's JWT decoder parses a JSON Web Token (JWS, the signed form used by almost every modern auth system) into its three base64url-encoded parts — header, payload, signature — and displays each as decoded JSON. It handles the standard JOSE algorithms (HS256, RS256, ES256, EdDSA) and reports the algorithm, key ID (kid), token type, issuer (iss), subject (sub), expiry (exp), and not-before (nbf) claims in a structured panel.
Everything runs locally in your browser using the Web Crypto API and atob decoding — no token is ever transmitted, which matters because JWTs frequently carry the user's identity, session scope, and sometimes email. The decoder does not verify the signature (that requires the secret/public key, which it never asks for), but it does flag an expired exp, a not-yet-valid nbf, and malformed base64url segments that would cause a server to reject the token. It also renders the iat (issued-at) and exp as human-readable timestamps.
How to use it
- 1Paste the JWT (three dot-separated base64url segments) into the input.
- 2The tool decodes the header and payload locally and renders each as JSON.
- 3Review the algorithm, kid, iss, sub, exp, nbf, and iat claims in the structured panel.
- 4Check the validation warnings for expired exp or not-yet-valid nbf.
- 5Copy a decoded claim value, or view the signature segment as hex.
When to use it
- ✓Debugging why a user's session token is rejected by an API (expired exp or wrong aud).
- ✓Inspecting the claims inside an OAuth/OIDC ID token during login integration.
- ✓Confirming a JWT uses RS256 (asymmetric) rather than HS256 before wiring up verification.
- ✓Checking the kid header to route token verification to the correct public key.
Features
- •Decodes all three JWT segments: header, payload, signature (as hex).
- •Supports HS256, RS256, ES256, EdDSA and other JOSE algorithms.
- •Structural claim panel: iss, sub, aud, exp, nbf, iat, kid, rendered as readable timestamps.
- •Flags expired exp, not-yet-valid nbf, and malformed base64url segments.
- •100% local via Web Crypto API — tokens never leave your browser.
Related tools
Hash Generator
Generate SHA-256, SHA-384, or SHA-512 hashes. Free online tool — no sign-up required.
UUID Generator
Generate secure UUID v4 identifiers. Free online tool — no sign-up required.
IP/Subnet Calculator
Calculate IPv4 network, broadcast, and host range. Free online tool — no sign-up required.
Meta Tag Generator
Generate title, description, and social metadata. Free online tool — no sign-up required.
HTTP Header Checker
Check the status and response headers of a public web page, including the final URL after redirects.
DNS Lookup
Look up public A, AAAA, CNAME, and MX records for a hostname. Enter a domain or a full public URL.
Hreflang Generator
Generate hreflang tags for multilingual pages. Free online tool — no sign-up required.
Open Graph Preview
Preview social cards and generate OG tags. Free online tool — no sign-up required.
FAQ
What are the three parts of a JWT?
A JWT (JWS form) has three base64url-encoded segments separated by dots: the header (JOSE metadata like alg and kid), the payload (the claims such as iss, sub, exp), and the signature (the cryptographic signature over header.payload using the algorithm in the header). The decoder splits and decodes each independently.
Does the decoder verify the signature?
No. Verifying a signature requires the secret (for HMAC) or public key (for RSA/ECDSA/EdDSA), and the tool never asks you to paste a key. It only decodes and inspects. To verify a token, use your application's verification routine with the appropriate key — never paste a production secret into a web tool.
Is the JWT I paste sent anywhere?
No. Decoding is pure client-side base64url parsing via atob and the Web Crypto API. No token, claim, or pasted content is transmitted. Because JWTs often carry identity and session scope, keeping them local is a security requirement, not just a privacy nicety.
What is the difference between exp and nbf?
exp (expiration time) is the timestamp after which the token must be rejected; nbf (not before) is the timestamp before which the token is not yet valid. A token is valid only in the window nbf <= now < exp. The decoder renders both as human-readable times and flags violations of that window.
Why does my payload decode to gibberish?
JWT uses base64url encoding (using - and _ instead of + and /, with no padding). If you copied the token from a system that converted it to standard base64, or if a segment was truncated, atob will produce garbage or fail. The decoder normalizes base64url to base64 internally and reports a clear error if a segment is still malformed.
Can the decoder handle encrypted JWE tokens?
Not fully. A JWE (encrypted JWT) has five segments, not three, and its payload cannot be decoded without the decryption key. The decoder detects a five-segment token and explains that it is a JWE requiring the recipient key; it can still decode the unprotected header for inspection.