What's the difference between standard Base64 and Base64URL?
Standard Base64 uses + and / in its alphabet; Base64URL replaces them with - and _ so the output is safe in URLs and filenames. It's the variant used in JWTs and OAuth tokens — toggle URL-safe to switch.