Image to Base64
Free image to base64 converter. Turn any image into a base64 data URI for embedding in HTML or CSS.
PNG, JPEG, WebP or GIF. Runs locally.
Add an image to generate a base64 data URI.
Processed locally in your browser. Nothing you type is uploaded to a server.
About Image to Base64
Convert a PNG, JPEG or WebP into a base64 data URI you can paste into CSS or HTML. The conversion runs locally.
How to use it
- 1Choose an image.
- 2Pick the output format.
- 3Copy the data URI.
Examples
Logo
Input
logo.pngResult
data:image/png;base64,iVBOR…Frequently asked questions
Does embedding base64 reduce file size?
Base64 is about 33% larger than raw bytes. Prefer it for tiny icons; use image files for large photos.