Skip to content
Toolbento

Image to Base64

Encode an image as a Base64 data URI, ready to paste into HTML or CSS.

Everything stays on this device

Image to Base64 runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Image

Base64

  • Data URI
    Choose an image
  • Base64 only
    Choose an image
  • HTML
    Choose an image
  • CSS
    Choose an image

Missing a feature or found a bug in Image to Base64? Tell me on X (@_andrewtran) or by email.

How to use Image to Base64

  1. Drop an image on the page, or choose one from your device.
  2. Pick the form you need: data URI, plain Base64, HTML or CSS.
  3. Copy it with the Copy button.

Questions and answers

Is my image uploaded?

No. The image is read by your browser, on this device. Nothing is sent to a server.

When should I inline an image?

For small icons and backgrounds, where saving a request matters. Base64 is about a third larger than the file, so large images are better kept as files.

Which formats work?

Any image your browser can open, including PNG, JPG, GIF, WebP, AVIF and SVG.

Esc

Loading tools