Base64 Encoder & Decoder
Encode and decode Base64 strings instantly. Supports text and file conversion.
Text to Encode
Base64 Output
Input: 0 B Output: 0 B Ratio: 0%
Privacy First: All encoding/decoding happens locally in your browser. Your data never leaves your device.
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into an ASCII string format. It's commonly used to encode data that needs to be transmitted over media that are designed to deal with text, such as email attachments, embedding images in HTML/CSS, storing complex data in JSON, and passing data through URLs.
How to Use This Base64 Encoder
- Encode text: Paste or type text in the input field and it will be automatically converted to Base64
- Decode Base64: Switch to Decode mode, paste your Base64 string, and get the original text
- Encode files: Use the File to Base64 tab to convert images, PDFs, or any file to Base64 format
- URL-safe encoding: Enable this option for Base64 strings that will be used in URLs
Common Base64 Use Cases
- Embedding images in CSS using data URIs
- Encoding API authentication credentials
- Transmitting binary data in JSON APIs
- Email attachments (MIME encoding)
- Storing small images in databases
Related Utilities
Explore our other free developer tools: JSON Formatter, URL Encoder/Decoder, UUID Generator, and Password Generator.