DuckyTools
Home Image Image to Base64

Image to Base64 Image

Turn an image into a data URI you can paste straight into CSS or HTML.

Image to Base64 is a free online tool that turn an image into a data URI you can paste straight into CSS or HTML. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.

Price
Free — no account, no quota, no watermark
Category
Image
Where it runs
In your browser, on your device
Files uploaded
None
Technology
plain JavaScript
Settings
None — it just works
Works offline
Yes, after the first visit

About Image to Base64

Data URIs embed an image directly in your markup, saving a network request — worth it for small icons, wasteful for anything large, since Base64 adds roughly 33% to the file size.

How to use it

  1. Everything image to base64 needs is on this page.
  2. Your input is processed locally and discarded when you close the tab.

Under the hood

Runs onplain JavaScript — runs the whole thing

Questions

Which browsers does this work in?

It relies on plain JavaScript, supported in current versions of Chrome, Edge, Firefox and Safari. Features needing camera, microphone or screen access will ask permission first, and that prompt comes from your browser rather than from this page.