Code

Runs in your browser. Your text never leaves your device.

Base64 Text Encoder and Decoder

Base64 (base-64 encoding) writes any data with 64 safe characters: A-Z, a-z, 0-9, + and /.

base64.encode
Text
Recent

Nothing yet. Your last 10 conversions, across every cipher, appear here. They are kept on this device only.

Base64 Text at a glance

Type
Encoding (no key)
Key space
None
Directions
Encode and decode: Text to Base64 and back
Example
HELLO → SEVMTE8=
Privacy
Runs in your browser, nothing is uploaded

It is how binary data travels intact through systems that expect plain text, like email attachments. Encode text to Base64 or decode it back here.

This is the friendly, learn-by-doing view of Base64. Everything happens in your browser, so paste freely.

How the Base64 Text works

The input is treated as bytes, then those bytes are regrouped into six-bit chunks. Each six-bit chunk maps to one of 64 characters, which is where the name comes from.

Because three bytes become four characters, Base64 output is about a third longer than the input. Padding with equals signs keeps the length a clean multiple of four.

Examples

Hi
SGk=
CipherPad
Q2lwaGVyUGFk
SGVsbG8=
Hello
Decoding Base64 back to text.

History and origins

Base64 emerged with early email standards, when messages could only carry a limited set of characters reliably. Encoding binary as Base64 let images and files travel through text-only channels intact.

It is not encryption and never was: anyone can decode it in a second. It is an encoding, a way to move data through a text-only channel without corrupting it, not a way to hide it. Treating Base64 as a security measure is a common and serious mistake.

Frequently asked questions

Is Base64 a form of encryption? #

No. Base64 is an encoding, not encryption. It hides nothing, since anyone can decode it instantly and no key is involved at any point. Its job is to carry data through text-only systems without corrupting it. If you need to protect something, use real encryption such as the Web Crypto API.

Why is Base64 output longer than the input? #

Base64 turns every three bytes into four characters, so the result is roughly 33 percent larger. Equals signs at the end are padding to keep the length tidy.

Learn more

Go deeper on the ideas behind this tool.

Not sure this is the right tool?

If you have a message and you are not certain what it is, the cipher identifier reads the character set and the letter statistics and tells you which scheme it most likely uses, and why. It covers every code and cipher on this site.

Related translators

Reference this tool

Mention this page in homework, a write-up or an article with this line:

Base64 Text Encoder and Decoder on CipherPad, retrieved on the date of your visit, https://cipherpad.dev/translate/base64

The text on this page is licensed CC BY 4.0: you may share and adapt it, also commercially, as long as you credit CipherPad and link to the page.