Slice 2 Copy
Super Dev Resources
Image to Base64 Encoder
Convert image (jpg, png, svg) to base64 string online for use in HTML img tag and in CSS files as data URI.
How to use?
Base64 Encoded Image
Drag and Drop image anywhere or Click here
How to use Image to Base64 Encoder?
Drag and drop image from your local system to the canvas above for converting to Base64.
string will appear above once the image is loaded.
Base64 encoding is done as data:image/png for png images.
For all other image types such as .jpg, .ico, .svg, .gif, .bpm etc. encoding is done as data:image/jpeg.
It is recommended to convert only small size images to Base64 string.
Note that Internet Explorer 8 has a limit of 32 KB for
. Earlier versions have no support for it.
If you need to crop the image before converting then use the
We do not store any of your images as everything is done client side.
More Image Tools
Online tool for cropping images. Download cropped image in JPG or PNG format.
Generate Linear and Radial Gradient CSS code and Background Images.
Text on Image
Online tool to add text on Images and save it in JPG or PNG format.