Image → Base64
ImagesNewDrop an image and instantly get a Base64 data URI, raw Base64, CSS background, or HTML img tag. Copy the output and embed it anywhere.
Frequently asked questions
How do I convert an image to a Base64 data URI?
Drop an image file and the Base64 data URI is generated immediately, ready to copy. You can also get the raw Base64 string alone, a CSS background-image declaration, or a full HTML img tag.
What image formats does this Base64 encoder support?
It supports PNG, JPG, SVG, and WebP images, encoding each into a correctly tagged data URI that browsers recognize for that file type.
Is there a file size limit for converting an image to Base64?
Base64 encoding increases the data size by roughly a third, so very large images produce long strings. The tool works for typical web assets like icons, logos, and small photos without issue.
Why would I embed an image as Base64 instead of linking to a file?
Embedding as Base64 lets you inline an image directly inside HTML, CSS, or JSON without a separate file request, which is useful for small icons, email templates, or self-contained API responses.