Switch to the "Image to Base64" tab and upload a PNG, JPEG, GIF, or WebP file. The tool reads it locally and shows the full data:image/...;base64,... URI, ready to copy into HTML, CSS, or an API payload.
Switch to the "Base64 to Image" tab and paste the Base64 string or data URI, then click Preview image. The decoder detects whether it's a PNG, JPEG, GIF, or WebP file from its bytes and shows an inline preview with a Download button.
Yes, uploads and decoded images are limited to 10 MB.
PNG, JPEG, GIF, and WebP in both directions. Other formats (such as SVG or AVIF) aren't currently detected by the decoder.
No. Both encoding and decoding happen entirely in your browser using the File and Base64 APIs. Your image never leaves your device.
A data URI embeds the image bytes directly in HTML, CSS, or JSON (for example as a CSS background-image or an <img src="data:image/png;base64,...">) instead of linking to a separate file — useful for small icons or inlining an image with no extra network request.