Encode images to Base64 or decode Base64 to images online for free. Generate data URIs for HTML and CSS. No signup required.
First time here? Choose encode or decode mode Your input is processed locally and disappears when you close the tab.
Working with Base64-encoded images means constantly switching between the raw string and the picture it represents. Our free Base64 image encoder decoder handles both directions in one place — turn any image into a Base64 string, or paste a Base64 string and instantly recover the original image.
In encode mode, upload a PNG, JPG, GIF, WebP, BMP, SVG, or ICO and copy the result with or without the data URI prefix, complete with the image's format, dimensions, and character count. In decode mode, this base64 to image online tool accepts strings with or without a data: prefix and even sniffs the true format from the raw bytes, so a mislabeled string still decodes correctly. As a data URI generator it's ideal for embedding assets in stylesheets and email, and as a quick base64 image tool it lets you preview and download the decoded file in a click.
All encoding and decoding happen in your browser — nothing is ever sent to a server. For general text and file conversion, reach for our Base64 Encoder / Decoder; for a code-focused workflow with HTML and CSS snippets, try Image to Base64; and use the Image Compressor to reduce image size before encoding.
Choose encode or decode mode
Upload an image to encode, or paste Base64 to decode
Toggle data URI prefix option if encoding
Copy the Base64 string or download the decoded image
Drop an image or click to upload