Image to Base64
Convert an image to a Base64 data URL or raw Base64 text locally, retaining the original encoded file bytes.
Decode Base64 or an image data URL into a locally validated PNG, JPG, WebP, GIF, BMP or ICO image.
Recover a supported image from an image data URL or raw Base64. The decoded bytes must actually form a supported image; changing the MIME label alone does not convert its format.
Example: Paste Base64 previously exported from a PNG by Image to Base64; decoding it reconstructs an image from those original file bytes.
How it works: The tool decodes Base64 to bytes and validates the image with the browser decoder. Raw data is checked for supported image signatures; a data URL supplies its MIME type.
A full supported image Data URL provides the media type. With raw Base64 the tool attempts to identify supported image signatures before validating the decoded image.
A PNG Data URL begins data:image/png;base64, followed by its encoded bytes. A valid download should decode into the same image pixels as those bytes.
Guidance updated . Methods and corrections
References: rfc-editor.org
Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.
Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.