Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to plain text.
Convert an image to a Base64 (Data URI) string, or decode a Base64 string back into an image.
This tool converts an image file into a Base64 string (Data URI), or decodes a Base64 string back into an image. A Data URI lets you embed image data directly inside HTML or CSS without hosting a separate image file.
Keep in mind that Base64 encoding increases the file size by roughly 33% compared to the original. This makes it best suited for small images like icons, rather than large photos.
Yes, it is completely free to use.
No. All processing happens in your browser. Images are never uploaded to a server.
A Data URI, like "data:image/png;base64,...", lets you embed image data directly as a string inside HTML or CSS.
PNG, JPEG, WebP, GIF, SVG, and other common formats that browsers can display are all supported.