Image to Base64
Convert any image to a Base64 data URI for embedding in HTML or CSS, or paste a Base64 string to decode it back into an image. See the MIME type, character count, and file size at a glance. Copy the result with one click.
Drop an image here or click to browse
Any image format
Your images never leave your browser — everything is processed locally.
How it works
The encoder converts your image file into a Base64 text string. This string includes a
format prefix (like data:image/png;base64,) followed by the encoded image data.
Base64 encoding increases the data size by roughly 33% compared to the original binary, but it lets you embed images directly in HTML, CSS, or JSON without separate file requests. This is particularly useful for small icons, sprites, or images in email templates.
In decode mode, the tool reads the Base64 string and renders it back as a visible image. If you paste raw Base64 without the data prefix, it assumes PNG format automatically.