Base64 Encoder / Decoder
Encode text or files to Base64 and back. Supports images, PDFs, and any binary file. All processing in your browser.
About Base64 Encoding
Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It's widely used for embedding images in HTML/CSS (data URIs), sending binary data in JSON APIs, encoding email attachments (MIME), and storing binary content in text-based formats.
Text mode encodes and decodes UTF-8 strings to and from Base64. File mode lets you drag & drop any file — images, PDFs, fonts, audio — to get its Base64 representation, ready to paste into your code. You can also decode a Base64 string back to a downloadable file.
Everything runs locally in your browser using the FileReader API. No data is uploaded to any server.