Image to Base64
Convert images to Base64 data URLs with HTML and CSS code snippets.
Advertisement
Upload Image
🖼️
Drop image here or click to upload File name —
MIME type —
Dimensions —
Original size —
Base64 size —
Overhead —
Advertisement
How to Convert an Image to Base64
- Upload an image using the dropzone or file picker.
- The Base64 data URL, HTML img tag, and CSS snippet are generated instantly.
- Click Copy next to any snippet to copy it to your clipboard.
- Use Save .txt to download the data URL as a text file.
Base64 encoding increases file size by ~33%. It's best used for small images like icons to avoid extra HTTP requests.