Skip to main content
Koen van Gilst
AboutLabTalksPhotography
←Back to Lab

Decoding a JWT token

October 8, 2022

1 min read

  • snippet
  • security
Edit on GitHub
blueskymastodongithublinkedin
© 2026 Koen van Gilst
v. 9.0.0 | 299bb3d

I know a lot of people just use the jwt.io website for decoding JWT tokens, but to me that always feels unsecure. It's definitely safer to use a command line tool on your own computer for that. I use the following jq command for that.

jq -R 'split(".") | .[1] | @base64d | fromjson' <<< ".... paste token here...."