Skip to content
Free Image LabFree Image Lab

Loading…

    Base64 to Image Decoder

    New

    Paste base64 or a data URI and see the image, then download it as the format it really is. Line breaks, img tags and CSS wrappers are all handled, and it runs in your browser.

    Runs entirely in your browser. Your images are never uploaded to a server.

    How it works

    1. Paste the base64 into the box, or use Paste from clipboard.
    2. It is decoded as you paste, and the image appears with its format, size and dimensions.
    3. Download it, or send it to another tool to resize or convert it.

    Common use cases

    Frequently asked questions

    How do I convert base64 to an image?
    Paste the base64 into the box. It is decoded straight away and the image appears underneath, with a button to download it. You can paste a full data URI, the bare base64 on its own, or a whole HTML img tag or CSS rule; the base64 inside is found for you.
    What format will the image be?
    Whatever format the data really is: PNG, JPG, GIF, WebP, AVIF, BMP, ICO or SVG. It is read from the decoded bytes rather than from the type written in the data URI, which is sometimes wrong, and the tool tells you when the two disagree.
    Why does my base64 not decode?
    Usually because it was cut off when it was copied, since base64 strings are long and easy to truncate, or because something that is not base64 got mixed in. The message under the box says which. Line breaks and spaces are fine and are ignored.
    Does it work with URL-safe base64?
    Yes. URL-safe base64 uses - and _ in place of + and /, and often drops the = padding at the end. Both are converted back automatically.
    Is my data uploaded?
    No. Decoding happens in your browser, so nothing you paste leaves your device.

    ← All convert tools