Base64 guide

Is Base64 Encryption? What It Does—and Does Not—Protect

Base64 changes how bytes are represented so they can travel through text-oriented systems. It uses a public alphabet, has no secret key, and offers no protection for passwords or private messages.

Quick answer

Key points

  • Base64 is a reversible encoding defined by RFC 4648—not encryption.
  • Encode Keyboard applies Base64 to UTF-8 text and validates canonical input.
  • Use it for representation and learning, never to protect sensitive data.
01

The short answer: Base64 is not security

Encryption is designed to make data unreadable without the correct key. Base64 has no key. Its alphabet and conversion rules are public, so any compatible decoder can reverse a valid value immediately.

A Base64 string may look unfamiliar, but appearance is not confidentiality. Do not use it to hide passwords, recovery phrases, access tokens, medical information, or private conversations.

02

How Base64 represents UTF-8 text

Encode Keyboard first converts Unicode text to UTF-8 bytes. Base64 then regroups the bits and maps them to the standard A–Z, a–z, 0–9, +, and / alphabet defined by RFC 4648.

Three source bytes normally become four Base64 characters. One or two = characters may pad the final group when the byte count is not divisible by three.

Example · Standard Base64
HelloSGVsbG8=

The final = is padding. Decoding the value restores the UTF-8 text Hello.

03

Why Encode Keyboard may reject a Base64 value

The app accepts standard, canonical Base64 that decodes to valid UTF-8 text. It removes whitespace, checks the alphabet, group length, padding placement, and canonical re-encoding, then validates the decoded bytes as UTF-8.

A value can be syntactically Base64 yet represent arbitrary binary rather than text. For example, /w== represents the single byte FF, which is not valid UTF-8 by itself, so a text-only decoder should reject it. URL-safe Base64 uses - and _ and is a different variant not accepted by this standard-text flow.

04

When Base64 is the right choice

Base64 is useful when bytes must fit in a text field, when studying data formats, or when you need a reversible representation of non-sensitive UTF-8 text. It usually makes data roughly one third longer, before line wrapping or metadata.

Choose real, reviewed encryption when confidentiality matters. Encode Keyboard deliberately labels Base64 as an exact text round trip while warning that encoding is not encryption.

?

Frequently asked questions

Can Base64 protect a password?

No. Anyone can decode it without a key. Use an appropriate password manager and established security controls instead.

Why is there an = at the end?

It pads the final four-character group when the input byte count is not divisible by three.

Does Encode Keyboard decode files or images?

No. Its Base64 flow is for values that decode to valid UTF-8 text, not arbitrary binary files.

Primary sources

This guide prioritizes documentation from the organizations responsible for the standard or platform.

  1. RFC 4648: Base-N Encodings
  2. RFC 3629: UTF-8, a transformation format of ISO 10646
  3. NIST glossary: Encryption

Encode Keyboard

Use it where you type

Encode Keyboard transforms text on device from the app or its custom iOS keyboard. No Full Access is required.

Download Encode Keyboard on the App Store