Convert image to Base64, or decode a Base64 data URL back to an image. Drop, paste or upload PNG, JPG, WebP, GIF or SVG. Free, instant, runs locally in your browser.
Drop image here, paste, or click to browse
JPG, PNG, WebP, GIF, SVG
This is a bidirectional Base64 image converter: it converts an image to Base64 (encode) or decodes a Base64-encoded image string back into a downloadable file (decode). Supported formats for both directions: PNG, JPG, WebP, GIF and SVG. The encoder returns a Base64 data URL that starts with data:image/png;base64, followed by the image bytes as plain text — paste it directly into an HTML <img src="..."> tag, a CSS background-image: url(...) declaration, a CSS variable, or a JSON payload, and the image renders without a separate HTTP request.
Base64 data URLs are roughly 33 % larger than the binary file, so they're best for small images (under ~10 KB). For anything bigger, host the image on your CDN and link to it normally — the tool will warn you when the output is too large to be useful.
background-image, HTML <img> tag, CSS variable, or JSON string.data:image/...;base64,).Every byte of conversion happens locally in your browser via the FileReader API. Your image never leaves your device, so even private screenshots, internal mockups or sensitive design assets are safe to convert here. Nothing is uploaded, logged or cached server-side.