Converters
Image to Base64 Converter
Upload Image to Convert
Drag and drop or click to upload an image. Supports PNG, JPG, GIF, SVG, WEBP and more.
Drag & Drop or Click to Upload
PNG, JPG, GIF, SVG, WEBP supported
Need to decode Base64 to image? Try our Base64 to Image Converter
Tool features
Fast Encoding
Multiple Formats
File Information
Easy Copy
What is image to Base64 & how it works
Converting an image to Base64 turns its bytes into plain text you can paste directly into HTML, CSS, JSON or an email template as a data URL, so the image loads without a separate file or HTTP request.
That suits small icons, logos in HTML emails and single-file demos. For larger images it is usually a bad trade: the text is about 33% bigger than the file, cannot be cached separately, and delays the page it is embedded in. This tool reads the image in your browser and gives you a complete data URL to copy or download.
How to use this tool
Related tools
Frequently asked questions
<img src="data:image/png;base64,iVBOR…">. In CSS: background-image: url("data:image/png;base64,iVBOR…");. Remove the data:…;base64, prefix if an API expects raw Base64.