Image to Base64
Encode a photo as base64 text.
Drop files here
or click to browse
Upload an image
About converting images to Base64
The tool encodes an image as a base64 data URI and gives it to you as a text file. You can paste that text directly into CSS, HTML, or JSON to embed the image without a separate file.
Base64 makes the data about a third larger than the original, so it suits small images such as icons rather than large photos.
How it works
- 1
Upload your file
- 2
Run the tool
- 3
Download your result
FAQ
Paste the data URI directly into a CSS background-image, an HTML img src, or anywhere else a self-contained image string is useful.
Related tools
Need multiple steps?
Describe the whole task in plain English and let ailovespdf chain the right tools for you.