Image to Base64
Pick an image file to encode.
Base64 to image
Paste a Base64 string or data URL to preview and download it.
Decoded preview appears here.
Convert an image to a Base64 data URL for embedding in HTML or CSS, or paste Base64 to decode it back into a downloadable image.
Pick an image file to encode.
Paste a Base64 string or data URL to preview and download it.
Decoded preview appears here.
Base64 turns binary image data into plain text, which lets you embed small images directly inside HTML, CSS, or JSON without separate files. That removes extra HTTP requests, which is handy for icons, email templates, and single-file pages.
The trade-off is size: Base64 text is about 33% larger than the original file, so it suits small images, not full photo galleries.
Paste any Base64 string, with or without the data URL prefix, and the tool rebuilds the image for preview and download. The file type is detected from the data URL header automatically.
Everything runs locally, so even sensitive images never leave your browser.