What is Base64 image encoding?
Base64 encoding turns binary image data into plain text that can be embedded directly in HTML, CSS, JSON or emails. It's commonly used to inline small icons, avoid extra HTTP requests, or include images in templates that can't link to external files.
Drop any image above and we'll generate four ready-to-paste outputs: the raw Base64 string, a full data URI, an HTML <img> tag, and a CSS background-image snippet โ all encoded entirely in your browser.
Need to decode Base64?
If you're a developer looking to decode Base64, format JSON or test regex, head over to our sister site XpressDevTools.