🔤 Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings.

Related Tools

Complete Guide to Base64 Encoding and Decoding

Base64 is a text encoding that represents binary data using only 64 printable ASCII characters. It is used wherever binary blobs need to travel through text-only channels — email, URLs, JSON payloads, and inline images in HTML and CSS. Our Base64 tool encodes and decodes text directly in your browser.

What Base64 Encoding Does

Base64 takes a byte stream and groups it three bytes at a time, then re-encodes each 24-bit group as four 6-bit symbols drawn from the alphabet A–Z, a–z, 0–9, plus "+" and "/". Padding "=" characters round the output to a multiple of four. The result is roughly 33 percent larger than the original but consists only of safe printable characters.

How to Use the Tool

Paste or type your text into the input box and pick Encode or Decode. The result appears below and can be copied to the clipboard with one click. The page never sends your data to any server, which makes it safe for sensitive tokens.

Common Use Cases

Inline images in CSS and HTML (data:image URLs). Embedding binary attachments in MIME email. Encoding API keys in HTTP Basic Auth. Storing small blobs inside JSON. Wherever a text-only protocol must carry arbitrary bytes, Base64 is the default choice.

Frequently Asked Questions

Is Base64 encryption?

No. Base64 is encoding, not encryption. Anyone can decode it. Never use Base64 to hide passwords or secrets.

Why does my Base64 string have "=" at the end?

The equal signs are padding so the encoded length is a multiple of four characters. Decoders use the padding to determine how many bytes of original data the string represents.

Are there URL-safe variants?

Yes. URL-safe Base64 replaces "+" with "-" and "/" with "_" to avoid percent-escaping when the string appears in a URL.