Base64 to Image

Decode a Base64 image string or Data URI, preview supported images and download the original file. Restore PNG, JPG, GIF, WebP and recognised image formats locally.

Decode
0 characters
Result

Your result will appear here.

How to turn Base64 into an image

  1. Paste the Base64 string or the complete data:image/…;base64,… URI.
  2. Decode the content. The image type is detected from the decoded bytes, not the prefix alone.
  3. Preview supported formats and download the original image file.

Working with Base64 to Image

The tool identifies the image from its bytes rather than trusting the Data URI label. Supported browser images can be previewed. Active SVG is not inserted into the page, and formats such as TIFF may need to be downloaded to view.

Decode a one-pixel GIF Data URI

Input
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
Result
result.gif (image/gif, 1 × 1 px, 42 B)

Questions about Base64 to Image

Should I paste the Data URI prefix too?

Either form works: the Base64 payload alone or a complete data:image/png;base64,… URI. Paste only the value, not surrounding HTML tags, CSS url() syntax or JSON quotes. Spaces, tabs and line breaks within the encoded text are ignored.

Does Base64 to PNG convert any image into PNG?

No. Decoding restores the original bytes; it does not change the image format, dimensions or quality. A PNG is downloaded as .png, a JPEG as .jpg. To change formats after decoding, use the image converter.

Why is there no preview, or why is my image rejected?

SVG and TIFF are download-only here; other previews depend on browser support and valid image data. File signatures identify recognised formats but do not prove a file is intact. A non-image or unrecognised format is rejected even if its prefix says image/png. Use Base64 to File for other data.

Can I decode Base64URL and large images?

Valid standard Base64 and URL-safe Base64 are accepted, with or without valid = padding. Do not mix the +/ and -_ alphabets or replace + with a space. Encoded input is limited to 48 MiB of text and the decoded file to 32 MiB. A truncated string cannot restore missing bytes.

Are my files, tokens or text uploaded?

No. These tools process your input in your browser. The website serves the page and its code, but your input is not sent to a conversion server or saved in an account.

  • Image to Base64

    Convert PNG, JPEG, GIF, WebP, SVG and other recognised image files to Base64 Data URIs in your browser.

  • Base64 to File

    Turn Base64 strings and Data URIs back into downloadable files without changing the decoded binary data.

  • Base64 Encoder & Decoder

    Encode UTF-8 text to Base64 or decode standard and URL-safe Base64. Control padding and line wrapping.

Common tasks and examples

  • Base64 Decoder

    Decode Base64 to readable UTF-8 text, or download the original bytes.

Explore all developer tools

Encoding & Files

Move between text, bytes, URLs and embedded images without changing your original data.

Data & Text Inspection

Read structured data, inspect tokens and understand exactly what changed.

Hashes, IDs & Schedules

Check file integrity, generate identifiers and make sense of times and recurring schedules.

Your input and files are processed on your device. Keep sensitive results out of shared clipboards and use a trusted device for private keys and tokens.