WeUtils.uk

Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 data locally in your browser.

Base64 encoder and decoder online

This tool encodes text to Base64 and decodes Base64 back to text instantly in your browser. Base64 represents binary data using only safe text characters, so it’s used to embed images in CSS/HTML (data URIs), email attachments and credentials in headers.

How Base64 works

Base64 takes bytes three at a time (24 bits) and splits them into four 6-bit characters drawn from a 64-symbol alphabet: A-Z, a-z, 0-9, + and /. When the bytes aren’t a multiple of three, it pads with the = sign. That’s why the encoded text is roughly 33% longer than the original.

Base64 is not encryption

Encoding is not encrypting: Base64 is reversible by anyone and protects nothing. It only changes how data is represented so it can travel over text-only channels. Never use it to "hide" passwords or sensitive data.

Vocabulary

Frequently asked questions

What is Base64 for? Carrying binary data over text-only media: data URIs, JSON, email or HTTP headers.

Is it safe to store passwords in Base64? No; it decodes instantly. Use hashing or real encryption.

Why are there = signs at the end? That’s padding when the data isn’t a multiple of three bytes.