What Base64 is
Base64 (RFC 4648) writes any bytes using 64 safe characters (A–Z a–z 0–9 + /) so binary data can travel inside text: email attachments, JSON, data URLs, HTTP Basic auth. Every 3 bytes become 4 characters, so the output is about a third bigger. = at the end is padding.
Base64 vs base64url
base64url (RFC 4648 section 5) swaps + for - and / for _ so the result is safe in URLs and file names, and usually drops the padding. JWTs use it. The decoder here accepts both.
Base64 is not encryption
Anyone can decode it. If you find an API key or password in Base64 (for example in an Authorization: Basic header or a Kubernetes secret), treat it as plain text. Decoding a JWT? The JWT security inspector also flags risky settings.
Sources
- RFC 4648: Base16, Base32 and Base64 encodings: www.rfc-editor.org/rfc/rfc4648