Base64 vs Encryption

Why Base64 is encoding and not encryption, and what each is actually for.

Base64 changes representation so bytes survive text transport. Encryption changes representation so only the holder of a key can read the data. Only one of them provides confidentiality.

01Choose by purpose

  • Need data to survive a text-only channel: Base64.
  • Need to keep data secret: encryption.
  • Need to detect tampering: a message authentication code, not Base64.

Sources

  1. RFC 4648: The Base16, Base32, and Base64 Data Encodings — IETF (accessed 2026-09-01)