This practical how-to covers decoding JWT headers and payloads for debugging. When auth fails, you need to see claims—not guess. A decode-only JWT viewer shows header and payload JSON locally so you can check exp, aud, and custom fields.
This guide explains decoding JWT headers and payloads for debugging in plain language and shows how to apply it with the free JWT Decoder on ProviaTools—processing stays in your browser, so drafts and sample data are not uploaded to a third-party server.
Reading JWT structure quickly
A JWT has header, payload, and signature. The decoder Base64URL-decodes the first two into JSON; the signature remains opaque without keys.
Focus on alg surprises (none/HS vs RS), unexpected claims, and expired exp values.
A safe debugging workflow
Prefer staging tokens. Paste, note claim values, and reproduce the failing request with the same token while comparing middleware expectations.
- Obtain a staging JWT
- Decode header and payload
- Note exp and aud
- Compare to API checks
- Fix issuer config or clocks
After you see the claims
Pretty-print large payloads with the JSON Formatter. Convert exp with the Timestamp Converter. Never paste decoded secrets into tickets without redaction.
If the signature must be validated, use your auth library—not a browser decoder.
How to use the ProviaTools JWT Decoder
Paste the Bearer token (three base64url segments), inspect the decoded header and payload, then compare claims against what your API expects. Do not treat decode success as proof the token is trusted.
Common mistakes to avoid
- Assuming decode equals signature verification
- Pasting production refresh tokens on shared PCs
- Ignoring audience and issuer mismatches
- Forgetting clock skew on exp checks
- Editing payload JSON and expecting the old signature to still work
Another frequent failure mode is “set and forget.” Formats, platform limits, and project conventions change. Recheck cornerstone workflows on a calendar, not only when something breaks loudly enough to trigger a crisis.
Final checklist
- Use a non-production token when possible
- Paste the full three-part JWT
- Read alg and typ in the header
- Verify sub, aud, iss, and exp claims
- Compare against API docs
- Clear the field when finished
Decode-only JWT inspection speeds up auth debugging while keeping signature verification where it belongs—on the server.
Was this article helpful?
Frequently Asked Questions
Decoding is local, but avoid pasting production secrets on shared machines and revoke tokens if unsure.
Readable JSON for the header (alg, typ) and payload claims such as sub, exp, and custom fields.
No. This tool is decode-only for debugging, not a signer.

