Text and file support Data URI Local processing

Base64 Encoder & Decoder Online (Text & File)

Encode text or files to Base64 and decode Base64 strings back to text or original file data.

Related tools File Hash Checker Bulk Text & CSV Cleaner JWT Decoder & Verification Tool URL Encoder, Decoder & Parser JSON/XML Formatter
Processing limit: text 32 MB · files up to 64 MB on mobile and 128 MB on PC (may be lower depending on device memory)
0 Bytes
-
Conversion mode
0 Bytes
Original size
0 Bytes
Output size
Ready
Conversion status

What to Know Before Using Base64

Base64 is not a security mechanism; it is an encoding that represents binary data as text. Understanding where it belongs and how it expands data prevents common mistakes in APIs, Data URIs, and file conversion.

Encoding is not encryption

Anyone can decode a Base64 string without a password. Do not use it to protect tokens or secrets; use it when binary data must travel through a text-oriented format or channel.

Why size grows by about 33%

Base64 represents every 3 bytes as 4 text characters, so the encoded payload is roughly 4/3 the original size. Padding on the final block and a Data URI prefix can add a little more, which is why Base64 is not a compression method.

Text, file, and Data URI modes

Text mode encodes the UTF-8 bytes of the text; file mode encodes the original binary bytes. Use data:MIME;base64,... only when embedding a small resource directly in web content. Large resources are usually more efficient as separate files.

Before converting

Helpful information