# Base64 to Image

> Decode Base64 or a data URL back to a file. Runs entirely in your browser — your image is never uploaded.

Source: https://toffeekit.com/tools/base64-to-image

**Category:** [Images](https://toffeekit.com/category/images) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/base64-to-image

**Also useful for:** base64, decode, data url

## How it works

1. Paste your Base64 text or a data URL into the box. It can start with data:image/png;base64, or be the raw text.
2. The decoded picture appears on the right, with its file type and size below.
3. If you see an error, check that the text was copied fully and has no extra characters.
4. Click Download to save the image. Use Clear to start again.

## FAQ

### How do I convert Base64 to an image?

Paste the string into the box. The image shows up straight away, and Download saves it as a file.

### Do I need to include the data:image prefix?

No. The tool accepts a full data URL or just the raw Base64, and works out the image type from the data.

### Why does it say that isn't valid Base64?

The text probably has a missing or extra character, or it is not Base64 at all. Make sure you copied the whole string.

### Why does it say decoded but not a valid image?

The text is valid Base64, but the data inside is not an image the browser can read. It may be a different kind of file, or a cut-off string.

### What file types does it support?

Any image your browser can display, such as PNG, JPG, WebP, GIF and SVG. The file extension is chosen from the detected type.

### Is Base64 to Image free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so your files are processed on your device and never uploaded. It works on phones and computers alike.

## Privacy

Base64 to Image runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Image Compressor](https://toffeekit.com/tools/image-compressor) — Shrink JPG, PNG and WebP files without visible loss.
- [Image Resizer](https://toffeekit.com/tools/image-resizer) — Resize by pixels, percent or longest side.
- [Image Cropper](https://toffeekit.com/tools/image-cropper) — Crop freely or to 1:1, 4:5, 16:9 and more.
- [Rotate Image](https://toffeekit.com/tools/image-rotator) — Rotate by 90° steps or any angle.
- [Flip Image](https://toffeekit.com/tools/flip-image) — Mirror an image horizontally or vertically.
- [Image Converter](https://toffeekit.com/tools/image-converter) — Convert between JPG, PNG and WebP.

