# JWT Decoder & Security Auditor

Decode JWT header and payload, verify HS256 or RS256 signatures, and flag algorithm, expiry, and sensitive-claim security risks

> Canonical page: https://test.elysiatools.com/en/tools/jwt-decoder-security-auditor

- **Category:** Security

- **Keywords:** jwt, decoder, security, token, hs256, rs256, auth, claims

## Overview

Paste a JWT and optionally provide an HMAC secret or RSA public key to verify the signature, inspect claims, and review practical token security findings plus claim simulation scenarios.

## Inputs

- **JWT Token** (textarea): eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
- **HMAC Secret (Optional)** (text): my-shared-secret
- **RSA Public Key PEM (Optional)** (textarea): -----BEGIN PUBLIC KEY-----

## When to use

- Debugging authentication failures or unexpected authorization behaviors in web applications.
- Auditing third-party or internally generated JWTs for security misconfigurations like missing expiration dates.
- Verifying token signatures during API development using HMAC secrets or RSA public keys.

## How it works

- Paste your encoded JWT into the primary input field.
- Optionally, provide an HMAC secret or RSA public key to enable cryptographic signature verification.
- The tool decodes the token's header and payload into readable JSON formats.
- It automatically scans the claims to flag security risks, such as expired tokens, weak algorithms, or exposed sensitive data.

## Use cases

- Full-stack developers troubleshooting login flows and inspecting user roles embedded in token payloads.
- Security engineers performing penetration testing to check if an application accepts tokens with the 'none' algorithm.
- API integrators validating that identity providers are issuing tokens with correct issuer (iss) and audience (aud) claims.

## Frequently asked questions

### Does this tool store my JWTs or secret keys?

No, all decoding and auditing processes happen locally in your browser. Your tokens and keys are never sent to a server.

### Which signature algorithms are supported for verification?

The tool currently supports verifying signatures for HS256 (using an HMAC secret) and RS256 (using an RSA public key).

### Can I decode a JWT without providing a secret key?

Yes. You can decode the header and payload without a key, but signature verification requires the corresponding secret or public key.

### What kind of security risks does the auditor flag?

It checks for missing or past expiration dates (exp), weak or 'none' algorithms in the header, and potentially sensitive information stored in plaintext claims.

### Why is my RS256 signature verification failing?

Ensure you are pasting the complete RSA public key in PEM format, including the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- tags.

## Related tools

- [X.509 Certificate Decoder](https://test.elysiatools.com/en/tools/certificate-decoder): Parse an X.509 SSL/TLS certificate (paste PEM or upload .pem/.crt) and inspect subject, issuer, validity period with expiry status, public key, signature algorithm, serial, SANs, key usage and fingerprint. Like openssl x509 -text, visualised. Runs locally.
- [JWT Inspector & Verifier](https://test.elysiatools.com/en/tools/jwt-inspector-verifier): Decode a JWT (header + payload) with syntax highlighting, diagnose standard claims, and verify the signature with HS*/RS*/PS*/ES*/EdDSA keys — plus a tampered-token forgery demo
- [JWT Decoder](https://test.elysiatools.com/en/tools/jwt-decoder): Decode JWT tokens
- [Distributed Trace Decoder & Waterfall Visualizer](https://test.elysiatools.com/en/tools/distributed-trace-decoder-waterfall-visualizer): Decode Jaeger, Zipkin, or OpenTelemetry trace JSON and render span timing, dependencies, and error hotspots as an interactive waterfall report
- [Leetspeak Decoder & Detector](https://test.elysiatools.com/en/tools/leetspeak-decoder-detector): Decode leetspeak (1337) to plain text and score how plausibly leet an input is — for password-policy bypass screening, profanity-filter evasion, and log-noise filtering.
- [MIDI 1.0 / MIDI 2.0 UMP Universal MIDI Packet, Channel Voice 2.0, SysEx 7/8-bit Wire-Protocol Decoder & Byte Counter](https://test.elysiatools.com/en/tools/midi-1-0-midi-2-0-ump-universal-midi-packet-cib-channel-voice-2-0-sysex-7-bit-8-bit-byte-counter): Decode a MIDI 1.0 bytestream (status bytes, running status, System Common / Real Time, System Exclusive) or a MIDI 2.0 Universal MIDI Packet stream — message types 0x0 Utility, 0x1 System, 0x2 MIDI 1.0 Channel Voice, 0x3 SysEx 7-bit, 0x4 MIDI 2.0 Channel Voice with 16-bit velocity and the 7.9 pitch attribute, 0x5 SysEx 8-bit / Mixed Data, 0xD Flex Data, 0xF UMP Stream — with per-packet field tables, byte/word/packet counts, reserved-field validation, SysEx continuation state machines, and MIDI 1.0 ⇄ UMP translation.
- [MVT Mapbox Vector Tile PMTiles Google MVT Projection and Tilelive Encoding Auditor](https://test.elysiatools.com/en/tools/mvt-mapbox-vector-tile-pmtiles-google-mvt-projection-and-tilelive-encoding-auditor): Audit .mvt/.pbf vector tiles and PMTiles v3 archives against the Mapbox Vector Tile Specification 2.x: protobuf Layer/Feature/Value decoding, MoveTo/LineTo/ClosePath command-stream validation, ring winding and tag indexes, Web Mercator Google-tile XYZ bounds, PMTiles v3 directory decoding and tile-size vs feature-count budgets.
- [PCIe Link Training LTSSM & Lane Margining Eye Decoder](https://test.elysiatools.com/en/tools/pcie-link-training-linkstate-and-lane-margining-eye-decode): Decode a PCIe link training log (LTSSM state sequence plus TS1/TS2 ordered sets) into the full Gen1-Gen6 state timeline: negotiated speed and width, rate identifier bits, lane reversal, polarity inversion, equalization phases and Detect/Recovery restart diagnostics. Also grades a lane margining report (pcilmr CSV or key=value) against the PCIe Base Spec Rev 5.0 §8.4.2 eye minimums per generation and renders a per-lane eye-margin heatmap SVG.

## Samples

- [JWT Samples](https://test.elysiatools.com/en/samples/jwt-samples): Comprehensive JWT examples from basic token structure to advanced security implementations
- [Network Security and SSL/TLS Configuration](https://test.elysiatools.com/en/samples/network-security): Comprehensive network security examples including SSL/TLS configuration, firewall rules, VPN setup, and network scanning protection
- [Android Image Processing Java Samples](https://test.elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://test.elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [JWT Construction and Security Review](https://test.elysiatools.com/en/hubs/jwt-construction-and-security-review): Build a controlled JWT fixture or inspect an authorized sample, then review claims, algorithms, expiry, sensitive fields, and signature evidence without confusing decoding with verification.
- [Authorized JWT, OTP, TOTP, and Session Test Workflow](https://test.elysiatools.com/en/hubs/token-session-and-2fa-workflows): Build sanitized auth fixtures, separate token generation from decoding and verification, test OTP/TOTP timing, and audit JWT and session evidence without exposing real secrets.
- [PII Detection and Log Redaction Review](https://test.elysiatools.com/en/hubs/pii-log-redaction): Find likely personal data in logs, text, and PDFs, redact review copies, validate identifier patterns, and require human approval before sharing.
- [Credential and JWT Security Workflow](https://test.elysiatools.com/en/hubs/auth-token-security): Generate or validate password credentials and inspect JWT security signals without treating key pairs as passwords.
