A simple command-line utility for decoding and debugging JSON Web Tokens (JWTs).
# Install via Homebrew
brew install rselbach/tap/jwtdebug
# Or install the latest source with Cargo
cargo install --git https://github.com/rselbach/jwtdebug --locked
# Try it now with this sample token:
jwtdebug eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
# Decode a token
jwtdebug eyJhbGciOiJIUzI1NiIs...
# Decode from clipboard (macOS)
pbpaste | jwtdebug
# Show everything
jwtdebug -a eyJhbGciOiJIUzI1NiIs...
# Verify signature with an explicitly trusted algorithm
jwtdebug -V -k public.pem --algorithm RS256 eyJhbGciOiJIUzI1NiIs...
# Pipe claims to jq
jwtdebug --raw-claims token | jq '.sub'The repository pins the required Rust toolchain in rust-toolchain.toml.
make test
make build
./build/jwtdebug --versionOther available targets are make format-check, make lint, make install,
and make clean.