Base64 Encoder/Decoder
Features
🔄
Text & Image Dual Mode
Supports text Base64 encode/decode and image file encoding conversion for various scenarios
📝
Full UTF-8 Support
Perfect support for Chinese, Japanese, Korean and other multilingual character encoding/decoding
🖼️
Data URL & Pure Base64
Image encoding outputs both Data URL and pure Base64 formats with independent copy buttons
📤
Drag & Drop Upload
Drag and drop image files onto the upload area for quick and convenient operation
How to Use
- 1
Select the Text or Image tab
- 2
Enter text or upload an image file
- 3
Click Encode or Decode to see the result
FAQ
What is Base64 encoding?
Base64 is an encoding scheme that converts binary data into ASCII strings, commonly used for transmitting binary data in text-based protocols. It encodes every 3 bytes into 4 printable characters.
When should I use Base64 encoding?
Base64 is commonly used for Data URLs (embedding images in HTML/CSS), API data transfer (sending binary data in JSON), email attachments (MIME), and more.
What's the difference between Data URL and pure Base64?
Data URL includes the MIME type prefix (e.g., data:image/png;base64,), which can be used directly as an image src attribute. Pure Base64 is the encoded string without the prefix.
What image formats are supported?
Supports PNG, JPG, JPEG, GIF, SVG, WebP and other common image formats. MIME types are automatically detected upon upload.