B64
File / Image to Base64
Convert an image or any file into a Base64 data URI for HTML, CSS or JSON.
File
or drop it here — the file stays on your device.
About File / Image to Base64
Choose or drop a file to get its Base64 encoding as a data URI, plain Base64, a CSS background-image rule or an HTML <img> tag. Images are previewed, and the original and encoded sizes are shown. The file never leaves your device.