Drop image file here or
Your files are secure
Drop the image, get the string, copy it. Encoding happens locally — the file is never uploaded anywhere.
Drag & drop your image, or click Choose Files to browse — JPG, PNG, GIF and WebP all work.
The Base64 data URI is generated instantly, complete with the correct mime-type prefix.
Copy the full string with one click — ready to paste into HTML, CSS or JSON.
That's it. The encoding happened locally and nothing was uploaded.
Built for speed, privacy and reliability — on any device.
The output includes the data:image prefix, so it drops straight into an img tag, CSS background or JSON payload.
JPG, PNG, GIF and WebP images all encode cleanly, whatever the project needs.
Encoding happens on your device. Proprietary assets never touch a server.
Embedded images skip the network round-trip — handy for small icons and self-contained pages.
Encode as many images as you need at zero cost — no account, no size anxiety, on any device.
Embedding images as text. Base64 data URIs put an image directly inside HTML, CSS or JSON — useful for small icons, email templates and single-file projects.
Yes. The output is a complete data URI, so and CSS background-image both accept it as-is.
None. Base64 encoding is lossless — the string decodes back to the identical image. The string is simply larger than the original file.
No hard limit. Encoding runs locally in your browser, so even large images process quickly — though very big ones make unwieldy strings.
The tool works in all modern browsers including Google Chrome, Mozilla Firefox, Microsoft Edge, Safari and Opera. We recommend keeping your browser up to date for the best experience.
Encode your image as a Base64 string