Blog
Image Tools
Crop Image
Resize Image
Rotate & Flip
Compress Image
Photo Filters
Meme Generator
GIF Maker
Collage Maker
Watermark Image
Blur Image
Convert
JPG to PNG
PNG to JPG
HEIC to JPG
DNG to JPG
Image Converter
PDF to JPG
JPG to PDF
Merge PDF
Compress PDF
MP4 to MP3
Video to GIF
MOV to MP4
MP3 Converter
Video & Audio
Trim Video
Crop Video
Remove Audio
Text to Speech
Audio Cutter
MP3 Compressor
Design & Editor
Resume Builder
Design Editor
Add Text to Photo
Social Media Resizer
QR Code Generator
Signature Generator
More Tools
Word Counter
Password Generator
Random Picker
Dice Roller
Spinner Wheel
Favicon Generator
Barcode Generator
Browse All Tools

Base64 to Image Converter

Paste Base64 or a data:image address and see the picture straight away. The format and dimensions are detected automatically, and you can download the image as a normal file with the right extension.

100% Free
No Sign-up
Instant Preview
Format Detection
Browser-Based · Private
Base64 to Image
Decoded File
Characters—
Image Size—
Dimensions—
Format—
Base64—
Image—
Size—
Settings forYour Base64
Paste Base64
File Name
.bin
The type and extension are detected from the data.

How to Convert Base64 to an Image

Quick answer: paste the Base64 or data URI on the right; the image appears in the middle. Press Download Image.

  1. 1

    Paste the Base64

    Or a data:image address.

  2. 2

    See the image

    With size and format.

  3. 3

    Name the file

    The extension is added for you.

  4. 4

    Download

    Save the image.

What You Get

Instant Preview
See the picture
Format Detection
PNG, JPG, GIF, WebP
Dimensions
Width and height
Any Input
Data URIs too
100% Private
Nothing is uploaded
Any Device
Computer or phone

See the Image Behind the Code

Images embedded in HTML, CSS, emails, JSON and logs appear as long Base64 strings that are impossible to read. Paste one here and the picture appears immediately, together with its width, height and format. It is the quickest way to check what an embedded image actually shows, or to rescue it as a normal file.

Formats and Detection

The decoder recognises PNG, JPG, GIF, WebP, BMP, ICO and SVG images from their signatures, and also uses the type written in a data:image address. Animated GIFs and WebPs are shown animated. If the Base64 does not contain an image, a message says so, and Base64 to File can handle other file types.

What You Can Paste

Paste plain Base64, a full data:image/png;base64,… address, or even an entire CSS line or HTML attribute value as long as you remove the surrounding code. Spaces and line breaks are ignored, and URL-safe Base64 with - and _ works too. You can also open a .txt file that contains the Base64.

Example

A colleague's email template shows a broken logo. In its HTML you find src="data:image/png;base64,iVBORw0…". Copy everything after src=" up to the closing quote, paste it here, and the logo appears with its size, for example 240 × 80, so you can check it and download a clean PNG.

Who Decodes Base64 Images?

Web developers checking embedded icons and backgrounds, email designers inspecting templates, testers checking images stored by an app, support teams viewing screenshots sent as text, and anyone who received an image as a long string of characters.

Tips

If the image looks cut off or does not appear, the Base64 was probably copied incompletely; copy it again including the final characters. To create Base64 from an image, use Image to Base64. To make the downloaded image smaller, try Compress Image.

Good to Know

The image is decoded byte for byte, so the downloaded file is exactly the image that was encoded, at its original quality. SVG images are shown as images and are never run as code on this page. The file name gets today's date by default; change it on the right before downloading.

Everyday Scenarios

A developer finds an unfamiliar data URI in a style sheet and pastes it here to see which icon it is. An email designer recovers the original logo from an old template where the image file was lost. A tester checks that profile pictures stored as Base64 by an app are complete and the right size. A support agent receives a screenshot as text from a customer's system and views it in a second without any software. The dimensions shown help confirm the image is the expected size before using it.

Download it as a normal image file to reuse it in documents, websites or design tools.

Private, Free and Unlimited

Decoding happens entirely on your device. There is no sign-up, no watermark and no daily limit. Files are processed by your own browser and never leave your device, which makes the tool safe for contracts, photos, ID scans, client work and anything confidential. Close the tab and everything is cleared from memory. It works in current versions of the major browsers on Windows, Mac, Linux and Chromebooks, and on iPhone and Android for smaller files.

Turning a Base64 String Back Into a Picture

Developers meet pictures as Base64 text all the time: in data URLs inside HTML and CSS, in JSON responses from APIs, and in email source. The text begins with something like data:image/png;base64, followed by a very long string. Decoding converts it back to a file you can view and save.

How to tell the image type

The prefix names the type, such as image/jpeg, image/png or image/webp. If your string has no prefix, the first few characters give it away: iVBOR is the start of a PNG, /9j/ is a JPG, R0lGOD is a GIF and UklGR is a WebP.

Troubleshooting

  • Remove line breaks and spaces added by email or logging.
  • Check for missing padding at the end; Base64 length must be a multiple of four, filled with = signs.
  • If the preview is blank, the string may be truncated or may not hold an image at all.

To go the other way, use image to Base64.

Frequently Asked Questions

Questions about Base64 to image

How do I convert Base64 to an image?

Paste the Base64 or data URI. The image appears straight away; press Download Image to save it.

Which formats are supported?

PNG, JPG, GIF, WebP, BMP, ICO and SVG.

Can I paste a data:image address?

Yes. The prefix is read and removed automatically.

Why does the image not appear?

The text may be incomplete or not an image. Copy it again in full.

Is the quality changed?

No. The file is exactly the image that was encoded.

Are my files uploaded?

No. Everything happens in your browser on your own device. Your files are never sent to a server or stored.