Image to Base64
Drop or select an image to instantly encode it as a Base64 data URL right in your browser — nothing is uploaded. Preview the image, see file size and encoded length, and copy the data URL, an image tag, or a CSS background snippet.
Examples
logo.png (12 KB)
data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...
How it works
The file is read in your browser and its bytes are written out as Base64 inside a data URL. The image is not recompressed or changed, so decoding the string gives back the identical file.
data:image/png;base64,iVBORw0KGgo… <img src="data:image/png;base64,iVBORw0KGgo…" alt="logo"> background-image: url(data:image/png;base64,iVBORw0KGgo…);
Base64 text is about a third larger than the file, so a 12 KB icon becomes roughly 16 KB of text. Embedding works well for small icons and logos, because it saves a separate request. For large photos it is a poor trade: the page or stylesheet grows and the image can no longer be cached on its own.
How to use Image to Base64
Why use this tool
Frequently asked questions
No. Encoding happens entirely in your browser using the FileReader API.
You can copy the data URL, a ready image tag, or a CSS background-image rule.
Found a bug or have an idea?
ToolOrbit is actively developed — feedback directly shapes what gets built next.
Send feedback