Image to Base64
Encode any image as a Base64 string. Get Data URI, raw Base64, HTML img tag, or CSS background-image output. All processing happens in your browser.
Upload image
or drag and drop here
or paste from clipboard
Ctrl+Enter to runCtrl+Shift+C to copy
Learn More
Image to Base64: Encode Images as Base64 Strings
Learn what Base64 image encoding is, when to use it, and encode any image to a Data URI.
What Is Base64 Image Encoding?
Base64 is a binary-to-text encoding scheme that represents binary data (like an image file) as an ASCII string. When you encode an image to Base64, the result is a long text string that can be embedded directly in HTML, CSS, or JSON — no separate file download required.
4 min readRead full guide