Standard versus URL-safe
Standard Base64 uses+ and /, both of which have meaning inside a URL. The URL-safe variant substitutes - and _, and usually drops the = padding. JWTs use the URL-safe form.
Base64 encoding turns bytes into ASCII-safe text. Encode UTF-8 strings, with a URL-safe variant for query parameters and JWTs.
+ and /, both of which have meaning inside a URL. The URL-safe variant substitutes - and _, and usually drops the = padding. JWTs use the URL-safe form.