▶ TrainingGet Pro

Base64 Encode

Base64 repackages data as plain letters, digits and a couple of symbols so it can travel safely through text-only systems. This tool encodes your text instantly.

Open the Base64 Encoder ↗

Opens Unscramble Words 4U, our free word-puzzle site, in a new tab. Free, with no sign-up.

What it does

Type in the Text box and the Base64 version appears in the other box. For example, Cat becomes Q2F0 and Classfern becomes Q2xhc3NmZXJu. Your text is turned into UTF-8 bytes first, which means é, Greek letters or emoji come out right and will decode properly elsewhere. Both boxes are linked, so you can also paste Base64 to decode it, and there are copy buttons for each plus a Clear button.

A URL-safe tick box swaps + and / for - and _ and drops the = padding, which suits web addresses and file names. Behind the scenes Base64 works on groups of three bytes. Those 24 bits are cut into four 6-bit pieces, and each piece, a value from 0 to 63, is shown using a 64-character set: A–Z, a–z, 0–9, + and /. That is why the output ends up about a third longer than what you started with. Many web pages use the same trick to tuck small pictures directly into their code, and email uses it to carry attachments.

Screenshot of the Base64 Encode on Unscramble Words 4U, ready to use
The Base64 Encode as it first appears on Unscramble Words 4U.Tip: Base64 hides nothing. Make sure learners understand it is packaging, not protection.

How to use it

  1. Enter your text in the Text box.
  2. Read the Base64 result in the second box.
  3. Tick the URL-safe option if the result is going into a link or file name.
  4. Press Copy base64 to copy it, or Clear to empty both boxes.
Screenshot of the Base64 Encode showing results for the example “Hello class”
Example: we entered “Hello class” to show the kind of result you get.Tip: Show the length change: count characters before and after encoding and compare with the 4-for-3 rule.

More tips

Ideas for the classroom and homeschool

Questions

Why does the output grow?

Every three bytes become four characters, so it grows by about a third.

What do the = signs mean?

They are padding, added so the character count divides by four when the bytes do not split into threes.

Can I encode a whole file?

No. This tool handles text only.

Is Base64 a kind of encryption?

No. Anyone can decode it in a second, so never use it for passwords or private details.

Open the Base64 Encoder ↗

Opens Unscramble Words 4U, our free word-puzzle site, in a new tab. Free, with no sign-up.

Base64 is an encoding, not encryption. It offers no security at all.

Related

← All word games and codes