Base64 Image Encoder
Convert PNG, JPEG, WebP, GIF and SVG images to Base64 or a complete data URI. Free, instant and private — images never leave your device.
1 Choose an image
Local file access only2 Encoded output
0 BYour file is processed on this device and never uploaded.
How it works
From input to output,
in a few clicks.
Generate embeddable image strings for prototypes, CSS, JSON fixtures and offline documents. Select a local image and copy either the full data URI or only its Base64 payload.
- Select an imageDrop a PNG, JPEG, WebP, GIF or SVG into the upload area, or browse your device.
- Choose the output formatA full data URI includes the MIME type; raw Base64 contains only the encoded payload.
- Copy or save the resultCopy the string to your clipboard or download it as a text file for later use.
Good to know
Frequently asked questions
Which image formats are supported?
Any image format your browser can read as a data URL, including PNG, JPEG, WebP, GIF, AVIF and SVG, can be encoded.
Does Base64 make images smaller?
No. Base64 usually increases binary size by about one third. Use it when embedding is more important than payload size, and optimize images first.
Is there a server-side file size limit?
There is no server and therefore no server upload limit. Practical limits depend on available browser memory, so very large images should be resized before encoding.