Toolinho Back to Home
🔐

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text

About Base64 Encoder Decoder

Base64 encodes binary data as plain ASCII text so it can travel through channels that only handle text — email bodies, JSON fields, data URIs, HTTP headers. Encoding and decoding both run here in your browser.

How the encoding works

Base64 reads your input three bytes at a time and re-expresses each group as four characters drawn from a 64-character alphabet (A–Z, a–z, 0–9, plus + and /). Because 3 bytes become 4 characters, encoded output is always about 33% larger than the input. When the input length is not a multiple of three, = padding is added to complete the final group.

Worked example: the 8-byte string Toolinho encodes to VG9vbGluaG8= — 12 characters, with one = because 8 is not divisible by 3.

Is Base64 a form of encryption?

No, and this matters. Base64 is an encoding, not a cipher — there is no key and anyone can reverse it instantly. Never use it to hide passwords, tokens or personal data. Its purpose is transport compatibility, not secrecy.

Why does my output end in one or two equals signs?

The = characters are padding. One = means the final group held two bytes, two == means it held one. Some systems strip padding; if a decoder rejects your string, adding the padding back usually fixes it.

Try our other free tools: hash generator, URL encoder, and JSON formatter.