About this tool
Encode any image as a Base64 data URI entirely in your browser — the file never leaves your device.
Choose or drop a JPEG, PNG, WebP, GIF, BMP or SVG file of up to 25 MB, 16 megapixels and 8,192 pixels per side. The file is first opened as an image to confirm it is one, then its original bytes are encoded with no resizing or recompression, so a GIF stays animated and an SVG stays vector. A file that fails the check shows an error and no data URI.
The stats show the file size and the data URI length in characters, including the data: prefix. The URI sits in a read-only box and Copy copies the full string. Nothing is uploaded.