1. Select an image
The file signature is checked so obvious non-image input is rejected.
Turn a local screenshot or icon into raw Base64 or a complete data URL. Choose the text format your app needs.

JavaScript reads or writes the image bytes and Base64 text in your browser.
The tool loads its interface and processing files from the site. This workflow handles the contents you select or enter in the browser.
File picker filter: image/jpeg, image/png, image/webp, image/gif, image/vnd.microsoft.icon, .jpg, .jpeg, .png, .webp, .gif, .ico. The selected file must also pass this tool’s content and decoder checks.
Limits are safeguards, not a guarantee every file below them will process. Complex files and device memory can require a smaller input.
Encode the exact image file bytes as Base64; no image re-encoding occurs.
or choose it from your device
The file signature is checked so obvious non-image input is rejected.
The original file bytes are converted to Base64 without changing pixels or metadata.
Raw Base64 excludes the MIME prefix; the Data URL includes it.
Base64 is a text encoding of bytes. Image dimensions and quality are not modified.
A Data URL adds a media type and ;base64, prefix before the encoded data.
The tool limits input to 15 MB because Base64 text is larger than the source binary and lives in browser memory.
No. Base64 normally increases the textual representation because binary bytes are encoded into text.
No. The original file bytes are encoded exactly.
A Data URL includes the MIME-type prefix; raw Base64 contains only the encoded byte text.
FileReader.readAsDataURL() produces a data: URL containing Base64-encoded file data. MDN FileReader.readAsDataURL().