Base64 Encoder / Decoder
Encode text or files to Base64, or decode Base64 back to text.
About Base64 Encoding
What is Base64?
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It is commonly used to embed images in HTML/CSS, transmit binary data in JSON/XML, encode email attachments (MIME), and store data in URLs or cookies where binary is not allowed.
How to Encode and Decode Base64
Type or paste text in the input field, select Encode mode, and get the Base64 representation instantly. To decode, switch to Decode mode and paste a Base64 string. The tool handles Unicode characters, emojis, and special characters correctly.
Base64 Use Cases
Common uses include data URIs for inline images (data:image/png;base64,...), encoding binary files for API transmission, storing complex data in cookies or localStorage, and encoding credentials in HTTP Basic Authentication headers.
qevro