Follow the steps below to convert your image file to base64. All the images shown here are base64 encoded (of course!).
Step 1: Select an image: (Required)
You can click the field shown above to select an image file (or just drag-and-drop a file into that field). You need to make sure that the file is less than 10MB in size, and is a valid image file.
Currently, 19 image formats are fully supported. That means they can be converted to base64, resized and maybe optimized conversion. The formats that are fully supported are: BMP, DIB, EPS, GIF, ICNS, ICO, IM, JPEG, JPEG 2000, MSP, PCX, PNG, PPM, SGI, SPIDER, TGA, TIFF, WebP, and XBM. Conversion of images inside an archive and conversion of multiple images at the same time is not supported yet.
You can't use every image format on the web. Formats that are widely supported by web browsers are: APNG (.apng), AVIF (.avif), GIF (.gif), JPEG (.jpg, .jpeg, .jfif, .pjpeg, .pjp), PNG (.png), SVG (.svg), and WebP (.webp). Other formats such as BMP (.bmp), ICO (.ico, .cur) and TIFF (.tif, .tiff) are also supported by some browsers, but should be avoided because they don't have wide browser support.
Step 2: Enter an email address: (Optional)
You can enter you email address in this field. The converted file will be emailed to you at this address as an attachment. It will be a TXT file in a GZip archive. You can use software like PeaZip, 7-zip and WinZip to open it.
Step 3: Resize image: (Optional)
You can also resize your image before converting it to base64. Enter you desired width and height (in pixels) in the given field. Additionally you can turn your image into a thumbnail. To do that, either enter the desired width or height of the image (in pixels), and it will be resized maintaining the aspect ratio of the original image.
Step 4: Optimize image: (Optional)
You can optimize you JPEG, PNG and GIF images before conversion. It can potentially reduce the size of the resultant image without any visible degradation in quality. Here is an example showing how optimization can reduce the size of the final image (and as a result, the base64 string length). It's a whopping 70% reduction in base64 string length for the following image, which can vary for different image sizes and types. The size of the original image is 23.6kB and the final image is 7.3kB (70% reduction).