Image to Base64 Converter
Encode an image as Base64 text for embedding in code or data.
Quick answer: enter your details below and click Encode Image — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
I
Image & Design
Enter your details below.
How to use
- Upload an image
- Choose Data URL or raw Base64
- Copy the encoded text
About this tool
Upload an image and get its Base64 representation, either as a full data URL ready to paste into HTML or CSS, or as raw Base64 text. Encoding happens locally in your browser. Keep in mind that Base64 text is roughly a third larger than the original file, so it suits small icons better than large photos.
Frequently asked questions
What is a data URL?
It is a Base64 string prefixed with the image type, so a browser can render it without a separate file.
Why is the text so long?
Base64 uses text characters to represent binary data, which expands the size by about a third.