Image to Base64

Convert an image to Base64 data URL.

Image

About Image to Base64

Upload an image from your device and get a base64-encoded data URL. Use it in HTML img tags, CSS background-image, or anywhere you need an inline image. No server upload — everything runs in your browser.

Frequently Asked Questions

Is my image uploaded to a server?
No. The image is read entirely in your browser using the FileReader API. Nothing is sent to our servers.
What is a data URL?
A data URL (e.g. data:image/png;base64,…) contains the file content encoded in base64. You can use it in img src, CSS background-url, or in JSON/APIs.
What image formats are supported?
Any format the browser can decode: JPEG, PNG, GIF, WebP, BMP. The output data URL will use the same media type.