Base64 Encode/Decode
Quickly encode files to base64 or decode base64 strings. Image preview supported.
Encode
Decode
How to Use Base64 Encoder/Decoder?
To Encode:
- Select a file using the File input under the Encode section.
- Click Encode to convert your file to Base64.
- The Base64 string will appear in the text area.
- Click Copy to copy the Base64 string to your clipboard.
To Decode:
- Paste your Base64 string into the text area under the Decode section.
- Optionally enter a filename for the decoded file.
- Click Decode & Download to convert and download the file.
Base64 Encoding & Decoding Made Simple
Encode any file to Base64 format or decode Base64 strings back to files. Essential tool for developers working with data URIs, email attachments, and embedded resources.
Common Use Cases
- Embed Images in HTML/CSS - Convert images to data URIs for inline embedding
- API Development - Encode files for JSON payloads
- Email Attachments - Prepare files for MIME encoding
- Data Transfer - Safely transmit binary data as text
Features
- Automatic MIME type detection
- Data URI generation for web use
- Image preview for decoded images
- Copy to clipboard functionality
- Supports all file types