Base64 Encoder and Decoder

Encode text, images, and files to Base64, or decode Base64 back to text and downloadable files

Input

Paste text or a Base64 string, or choose a file to convert

No file selected (optional)

FAQ

What is the difference between Base64 and plain text?

Base64 converts binary data into text made of letters, digits, and a few symbols so it can be embedded in JSON, HTML, CSS, or data URIs. It is not encryption and does not protect sensitive data.

Which files are supported?

Any file type can be selected and encoded as a Base64 data URI, including images, fonts, PDFs, and ZIP archives.

Why does decoding produce a file instead of text?

The tool checks whether the decoded bytes can be read as text. If they can, it shows the text; if binary data is detected, it offers a file download.

Does Base64 make data larger?

Yes. Base64 usually increases the original data size by about 33%, so it is not ideal for very large files.

Are my files uploaded?

No. Text and file encoding/decoding run locally in your browser. Nothing is uploaded.

Why does decoding fail?

The input may contain spaces, line breaks, missing padding, or invalid characters. Remove extra characters and try again, or make sure the full string was copied.