Image to Base64 / Base64 to Image
Encode an image as a Base64 data URI or decode Base64 back into a downloadable image.
Runs entirely in your browser. Your files are never uploaded.
About the image to base64 / base64 to image
Embed small images directly in HTML, CSS or JSON, or recover an image from a Base64 string. Encode any image to a data URI with one click, or paste Base64 to preview and download the picture.
How to use it
- Choose Image to Base64 or Base64 to Image.
- Upload an image or paste the Base64 text.
- Copy the result or download the decoded image.
Frequently asked questions
Does Base64 make files smaller?
No. Base64 increases size by about 33%. It is useful for tiny inline assets, not for large images.
Do I need the data: prefix to decode?
No. Paste either a full data URI or just the Base64 body. The tool detects the image type from its content.
Related tools
Base64 Encoder / Decoder
Encode or decode Base64 text with full Unicode and URL-safe support.
Image Format Converter
Convert between JPG, PNG and WebP in bulk.
Image Compressor
Shrink JPG, PNG and WebP images with a live quality slider and size comparison.
URL Encoder / Decoder
Percent-encode or decode URLs and query strings, component or full URI.