Image to Base64
Convert an image to a Base64 data URI.
Drop an image to encode
or click to choose · nothing is uploaded — runs in your browser
Free online image to Base64 converter. Drop an image to get its Base64 data URI string, ready to embed inline in HTML or CSS, with a one-click copy. Runs entirely in your browser — nothing is uploaded.
How to use the Image to Base64
- 01Drop or choose an image.
- 02Its Base64 data URI is generated instantly.
- 03Copy the data URI to embed the image inline in HTML or CSS.
Frequently asked questions
Is my image uploaded to encode it?
No. The Base64 encoding is done in your browser with the FileReader API, so your image never leaves your device.
When should I use a Base64 image?
Inline Base64 images avoid an extra HTTP request, which suits small icons. For larger images a normal file is usually smaller and faster, since Base64 adds about 33% overhead.