About this tool
Base64 turns an image's bytes into text, which lets you embed it inside an HTML or CSS file without a separate file.
The resulting text is about a third larger than the image, so it's best used only for small images, like icons.
Get the Base64 code of an image, ready to paste into your HTML, CSS, or JSON.
No sign-up and nothing uploaded to a server: everything happens in your browser. See for yourself.
No. Everything is processed inside your browser, and your files never leave your device.
It's the image written as text, in the format data:image/png;base64,… , which the browser can display directly.
With the “Base64 to Image” tool.
Base64 turns an image's bytes into text, which lets you embed it inside an HTML or CSS file without a separate file.
The resulting text is about a third larger than the image, so it's best used only for small images, like icons.