Base64 to Image Converter

Paste a Base64 string or data URI and see the image.

Result

Type
PNG (image/png)
Dimensions
1 × 1 px
File size
70 bytes
Decoded preview
  • Right-click the preview to save the image.

How do I turn Base64 back into an image?

An image can be stored as Base64 text, either on its own or inside a data URI that starts with data:image/png;base64, or similar. To see the picture you decode the text back into bytes and tell the browser what kind of file those bytes are.

This tool does both steps. It reads the characters, decodes them, looks at the first bytes to work out the real format, and shows the picture with its type, pixel size for PNG, GIF and JPEG, and file size. If the decoded data is not an image, it says so and shows the first bytes in hex so you can see what it is.

How to use the Base64 to Image Converter

  1. Paste the Base64 text or data URI.
  2. Look at the preview.
  3. Check the type, dimensions and size in the results.
  4. Right-click the preview to save the image.

Real situations

When people use the Base64 to Image Converter

  • 1

    Check an image from an API response

    Many APIs return pictures as Base64. Paste the value to confirm it is a valid image and see what it looks like.

  • 2

    Preview a data URI from CSS or HTML

    Copy the long string out of a stylesheet or page source and view the image without saving anything.

  • 3

    Debug a broken image

    If a picture will not show, paste the string here to see whether the Base64 is damaged or whether the type label is wrong.

  • 4

    Find out what a Base64 string really is

    The first-bytes check tells you whether a string is a PNG, a JPEG or something else entirely, such as plain text.

FAQ

Base64 to Image Converter: questions answered

What can I paste into the box?

Either the bare Base64 text or a full data URI. The default example is a 1 by 1 pixel PNG, which the tool reports as PNG, 1 × 1 px, 70 bytes.

What if the string is not an image?

The tool tells you what it decoded to. For example, SGVsbG8= decodes to 5 bytes with first bytes 48656c6c6f, which are the letters Hello, not an image.

Why does it show a different type from the label?

The label in a data URI can be wrong. The tool trusts the first bytes of the file. If they disagree with the declared type, it shows a "Declared type" row saying the label does not match the file.

Which image formats can it show?

PNG, JPEG, GIF, WebP, AVIF, BMP, ICO and SVG. Dimensions are read for PNG, GIF and JPEG.

How do I save the image?

Right-click the preview and choose to save the image. The tool does not upload or store it.

Is this safe for private images?

Yes. Decoding happens in your browser and nothing is sent to a server. As with any image from an unknown source, be careful about opening it in other programs.

Is this Base64 to Image Converter free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way