Home › Developer & Design › Base64 to Image

Base64 to Image Decoder

Paste encoded text to preview and download the picture inside it.

    How to decode

    1. Paste a data URL or Base64 text.
    2. Press Decode.
    3. Check the preview and download the file.

    Accepted input

    A full data URL or only the encoded part both work. Spaces and line breaks are ignored. The tool recognises PNG, JPG, GIF, WebP, BMP and SVG by looking at the data itself, then gives the download a matching extension.

    How to spot the type

    Text often starts withLikely type
    iVBORw0KGgoPNG
    /9j/JPG
    R0lGODGIF
    UklGRRIFF file, such as WebP

    If decoding fails

    • Copy the whole string, including its end.
    • Remove quotation marks, brackets or code around it.
    • Check for a URL-safe variant that uses - and _ ; this tool expects standard Base64.
    • Confirm the data is an image and not a document or compressed text.

    Where such strings appear

    Developers find them in stylesheets, HTML pages, API responses and email source. Decoding lets you view what is inside.

    A safety habit

    Treat data from unknown sources with care, particularly SVG files, which can contain code. Do not open a downloaded file you do not trust, and do not paste secrets into any tool unnecessarily.

    Reading the result

    If a preview appears, the browser was able to open the data as an image. That does not prove where it came from or that the picture is genuine. Check the downloaded file size and dimensions if you expected a particular asset. When the text came from an application error log, share only the part needed to diagnose the problem.

    Frequently Asked Questions

    Does the downloaded file match the original?

    It contains exactly the decoded bytes.

    Is my text sent to a server?

    No. Decoding runs in your browser.