Toolantern
Home › Image to Base64
Private: your images never leave this page. No sign-up.

Image to Base64

Turn images into base64 data URIs and back. Free, no sign-up, files never leave your device.

Encode: image to base64

Decode: base64 to image

What it does

Upload an image to get its base64 data URI, a long text string you can paste directly into CSS (as a background) or an HTML img src, no separate image file needed. Paste a data URI in the second section to preview it and download it back as an image.

When to use it

Small icons and decorative images you want baked into a stylesheet, single-file HTML emails, or quick prototypes where you do not want to manage asset files.

Private by design

Encoding and decoding happen locally with the FileReader API. Nothing is uploaded.

Planning estimate only. Results use the list prices shown and may differ from your actual bill. Terms

Frequently asked questions

What is a data URI?

A URL like data:image/png;base64,... that contains the image data itself, so the browser needs no separate file.

Does base64 make files bigger?

Yes, roughly 33 percent larger than the original binary. Best for small images, not large photos.

Are my images uploaded anywhere?

No. Everything happens in your browser.

More free tools