A super fast CLI tool to decode, encode, and verify JWTs built in Go.
jwt
is a command line tool to help you work with JSON Web Tokens (JWTs). Like most JWT command line tools out there, you can decode almost any JWT header and claims body. Unlike any that I've found, however, jwt
allows you to encode a new JWT with nearly any piece of data you can think of. Custom header values (some), custom claim bodies (as long as it's JSON, it's game), and using any secret you need.
On top of all that, it's written in Go so it's fast and portable (windows, macOS, and linux supported right now).
You can install jwt
using [Homebrew][brew] (macOS or Linux):
brew install duckhue01/duckhue01/jwt
JWT offers Windows binaries for both the x86_64 and arm64 architectures. You can download the latest binaries from GitHub Releases.
For usage info, use the help
command.
# top level help
jwt help
# command specific help
jwt help decode