Convert images to Base64 strings and decode Base64 back to images
Upload Image
or drag and drop here
Max file size: 10MB (10.00 MB)
Resize images to custom dimensions with aspect ratio lock
Apply CSS filters like brightness, contrast, grayscale, and more
Convert images between PNG, JPEG, and WebP formats
Crop images with an interactive drag interface
Image to Base64 is a free online tool that converts images to Base64-encoded strings and decodes Base64 strings back to images, directly in your browser. Base64 encoding represents binary data as ASCII text, allowing you to embed images directly in HTML, CSS, JSON, or any text-based format without needing separate image files. In Encode mode, upload any image to instantly generate its Base64 data URI string, which you can copy and paste into your code. In Decode mode, paste a Base64 image string to preview the image and download it as a file. The tool displays file type and size information for both operations. Base64-encoded images are commonly used in email HTML templates, CSS backgrounds for small icons, API responses, and configuration files. While Base64 encoding increases the data size by about 33%, it eliminates the need for additional HTTP requests, which can improve performance for small images. All processing happens in your browser — no data is sent to any server.