Image to Base64 Converter
Drag and drop any image to encode it as Base64. Get the data URI, CSS background, HTML img tag or raw Base64 string.
Frequently Asked Questions
What is Base64 image encoding?
Base64 encoding converts binary image data into a text string using 64 safe ASCII characters. This lets you embed images directly into HTML, CSS, JSON or send them in APIs without needing separate file uploads.
Does the image leave my device?
No. All encoding and decoding happens entirely in your browser using JavaScript. Your image is never uploaded to any server.
Why is Base64 larger than the original?
Base64 encoding increases file size by approximately 33% because it uses 4 ASCII characters to represent every 3 bytes of binary data.