Image to Base64
Convert an image into a Base64 string or data URI that can be pasted into HTML, CSS or JSON.
Drop your image here
or paste from the clipboard
JPG, PNG, WebP, GIF, BMP or AVIF · max. 25 MB per file
Your image is ready
Questions and answers
What is the difference between a data URI and plain Base64?
A data URI starts with a short prefix such as data:image/png;base64, and can be used directly as an image address in HTML or CSS. Plain Base64 is only the encoded data.
Is the image changed or re-compressed?
No. The file's bytes are encoded exactly as they are, so decoding the text gives back the identical file.
Why is the text larger than my file?
Base64 uses four characters for every three bytes, so the text is about a third larger than the original file.