图片 → Base64
Base64 → 图片
Description
Image Base64 tool converts image files to Base64 encoded strings and vice versa, with preview and download functionality.
Use Cases
Web embedding: Embed images directly in HTML/CSS
Email attachments: Encode images for email transport
Data storage: Store images as text in databases
API transmission: Send images via text-based APIs
Offline usage: Bundle images with web applications
Instructions
Click "Upload Image" or drag and drop an image file
View the Base64 encoded string in the output area
Click "Copy" to copy the Base64 string
Paste Base64 string to decode and preview the image
Click "Download" to save the converted image
Notes
- Base64 encoding increases file size by approximately 33%
- Supported formats: JPEG, PNG, GIF, WebP
- All processing is done locally in the browser
FAQ
Why is the Base64 string so long?
Base64 encoding converts binary data to text, resulting in approximately 33% size increase.
Which image formats are supported?
JPEG, PNG, GIF, WebP, and BMP formats are supported.