Base64 to Image Converter
Paste your Base64 string below (with or without the data URL prefix). The image is previewed automatically.
The preview image will appear here once you paste a Base64 string.
Base64 to Image Converter - Online Decoding Tool
Got a long Base64 string and need to see what image it actually is? This tool decodes Base64 into an image instantly, entirely in your browser — no data is ever sent to a server. Just paste the string (with or without the data URL prefix) and the image appears automatically, along with its real dimensions, format and file size. It supports dropping a .txt file, pasting from the clipboard, a checkerboard backdrop for transparent images, copying the image to your clipboard, and downloading in the original format.
How to Use
Paste it straight into the input box, click 'Paste from Clipboard', or drag and drop a .txt file containing the Base64 string. It works with or without the 'data:image/...' prefix.
No convert button needed — the image is decoded and shown the moment you paste. The format (PNG, JPEG, GIF, WebP, AVIF, SVG) is auto-detected from the string content.
See the true dimensions (width × height), format and file size computed accurately from the decoded data. Transparent images are shown on a checkerboard so you can clearly see transparent areas.
Click 'Download' to save the image in its original format, or 'Copy Image' to place it straight onto your clipboard and paste into Figma, documents, chats and more — no file needed.
Key Features
The image appears automatically the moment you paste a Base64 string, with no extra clicks. Decoding is debounced to stay smooth even with very long strings.
Detects PNG, JPEG, GIF, WebP, AVIF and SVG from the string's signature bytes — even when the string has no data URL prefix.
Transparent PNG/WebP images are shown over a checkerboard pattern, so you can clearly tell transparent areas apart instead of losing them on a white background.
Shows the true image dimensions, the browser-confirmed format and a file size computed from the actual decoded binary data — not a rough estimate.
Have your Base64 stored in a text file? Just drag and drop the .txt onto the input or use the upload button, and the content loads automatically.
One click copies the decoded image to your clipboard as a PNG, ready to paste into Figma, Word, email or any chat box.
The image downloads with the correct extension for its original format (.png, .jpg, .gif, .webp...), preserving the data without any re-compression.
All decoding happens locally in your browser. No string or image is ever uploaded to a server — your data always stays on your device.
Common Use Cases
Quickly restore and inspect images embedded as data URIs in CSS, JSON, API responses or databases.
Verify whether a Base64 string returned from an API or log is actually a valid image, right during development and debugging.
Extract and view images embedded inline as Base64 inside HTML emails or newsletter templates.
Recover images from data URIs embedded in design files, SVGs or exports to keep editing or reuse in a new project.
Decode and inspect Base64-encoded image data during investigations, payload analysis or security testing.
Convert Base64-encoded images back into files when moving content between systems, CMSs or platforms.
Frequently Asked Questions
Is my Base64 string sent to a server?
Not at all. Decoding happens 100% in your browser using JavaScript. No string or image is uploaded to or stored on any server — your data always stays on your device.
Do I need to add the 'data:image/...' prefix?
No, it's optional. You can paste a raw Base64 string and the tool will auto-detect the format from the signature bytes and add the right data URL prefix for you. Of course, pasting a full data URL works fine too.
Which image formats are supported?
All the common formats: PNG, JPEG/JPG, GIF (including animated), WebP, AVIF and SVG. The format is auto-detected and shown in the information panel.
How does the 'Copy Image' button work?
The decoded image is drawn onto a canvas and copied to your clipboard as a PNG, so you can paste it directly into Figma, Word, email or a chat box. Some older browsers may not support this yet.
How is the file size calculated?
Unlike tools that estimate from string length, this one decodes the string into real binary data and reads the exact size from it, so the number matches the actual image file size.
Can I load Base64 from a file?
Yes. Drag and drop a .txt file containing the Base64 string onto the input, or use the 'Upload .txt' button. The file content is loaded into the input and the image is previewed automatically.
Our Base64 to Image converter delivers a fast, smooth experience: instant preview, automatic format detection, accurate information, a checkerboard backdrop for transparent images, .txt file drop, image copying and downloads in the original format. All completely free, 100% private and running directly in your browser.