Design & MediaLive๐Ÿ”’ Private

Base64 Image Viewer

Decode and preview Base64-encoded images instantly. Free online Base64 image viewer. No signup, no upload to server, 100% private browser tool.

Paste base64 data to preview image.

How it works

The Base64 Image Viewer decodes Base64-encoded image strings and renders them as visible images โ€” useful when debugging API responses, data URIs, or any context where an image is stored or transmitted as a Base64 string rather than a URL.

Images are frequently Base64-encoded in: API responses that return images as JSON strings, HTML email attachments, data URIs in CSS, embedded images in SVG files, and screenshot payloads from testing frameworks like Selenium and Playwright. This tool makes any of those viewable without writing any code.

How to use it: paste a Base64 string โ€” with or without the data:image/...;base64, prefix. The tool attempts to decode and render it as an image. If it renders successfully, you can see the image and download it as a file.

Auto-detect prefix: the tool recognizes bare Base64 (the encoded content without a data URI prefix) and attempts to render it as the most common image types (PNG first, then JPG, GIF, WebP) until one renders correctly.

Playwright/Selenium use case: when a test captures a screenshot, frameworks often return it as a Base64 string. Paste it here to see what the test was looking at โ€” much faster than writing a script to write the file and open it.

Frequently Asked Questions

What image formats can be rendered?
PNG, JPG, GIF (including animated), WebP, AVIF, SVG, ICO, and BMP. The tool attempts to render any Base64 content as an image. If the content is not an image or is corrupt, the render will fail with an error.
Do I need the data URI prefix?
No. Paste bare Base64 image content and the tool auto-detects the image type. If you have the full data URI (data:image/png;base64,...) you can paste that too โ€” the prefix is recognized and handled correctly.
Can I use this to extract screenshots from Playwright test output?
Yes. Playwright's page.screenshot({ encoding: 'base64' }) returns a Base64 string. Paste it directly to see what the test captured. This is faster than writing the screenshot to a file and opening it.
Is there a file size limit?
The tool processes the Base64 string entirely in your browser โ€” the limit is your device's available memory. Images up to 50MB (as Base64 strings, which are 33% larger than the original file) are handled without issues on most devices.