The common coreutils base64 tool can't encode/decode base64url. The = padding is optional in base64url and the last two characters of its alphabet are - and _.[0][1] What is a simple way to encode and decode base64url using common unix tools?
Context: this question came up while working with JWT (RFC7519).
[0]: https://www.rfc-editor.org/rfc/rfc4648#section-5
[1]: https://en.wikipedia.org/wiki/Base64#Variants_summary_table