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.
Encode text or files to Base64 and decode Base64 strings back to text or original file data.
Drag and drop a file here, or select one
Supports all file types
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.
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.
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 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.