Base64 to Image Converter

Your files never leave your browser — everything runs on your device.

Paste the full string, with or without the data:image/...;base64, prefix.

Turn a base64 string back into a picture — paste the text you got from an email, a code file or another tool, preview the image, and download it as a PNG, JPG or GIF. The decoding happens in your browser; nothing is sent anywhere.

Frequently asked questions

What is a base64 image string?

It is an image stored as plain text, usually starting with data:image/png;base64, followed by a long string of letters, digits, + and /. It is used to embed pictures inside HTML, CSS and code.

Do I need the data:image/... prefix?

No. Paste the string with or without the prefix — the tool detects the image type from the prefix when it is there, and assumes PNG when it is not.

Why does it say my base64 is invalid?

Base64 only uses letters, digits, + and /, with up to two = signs at the end, and the total length must be a multiple of 4. A missing chunk or a stray character breaks it.

Is my data uploaded anywhere?

No. Decoding runs entirely in your browser on your device.