Image to Base64 illustration

Image to Base64

Encodes an image as a Base64 data URI for embedding directly in HTML, CSS or JSON, and decodes pasted data URIs back into downloadable images.

Runs 100% in your browser — images never leave your device.

Notes

  • Base64 inflates file size by about a third, so it suits small assets: icons, tracking pixels, tiny previews. Anything above a few kilobytes is usually better as a file.
  • Everything runs locally in your browser; your images are never uploaded to any server.

Explore the idea

This interactive demo needs JavaScript.