Image Base64 converter
Convert PNG, JPEG and WebP files to base64 data URLs and restore validated raster images locally.
Text, files and images are processed in your browser and are not uploaded.
Result
Run the tool to see the result.
Result text
How to use
Convert a PNG, JPEG or WebP image up to 20 MB and 32 megapixels to a data URL, or paste a canonical base64 data URL to download the original image bytes. The declared MIME type must match the file signature and the image must decode successfully. SVG, external URLs, extra MIME parameters, URL escapes and whitespace inside base64 are rejected. Conversion preserves the original bytes and metadata without re-encoding. Previews show one animation frame. Nothing is uploaded.