DevTilt

Base64 to Image

Paste Base64 or a data URI to preview the image and download it. Magic-byte detection chooses the MIME type when possible.

Result

Image preview

Paste Base64 or a data URI, then Decode.

How to convert Base64 to an image

  1. Paste raw Base64 or a data URI.
  2. Click Decode.
  3. Preview the image when the bytes match a supported format.
  4. Download the file, or clear to revoke the preview URL.

What is Base64 to Image?

API responses and database fields sometimes store images as Base64 strings without a visible preview. Paste the encoded data here to see the actual image, verify it decoded correctly, and download the file — essential when debugging avatar uploads or inline image payloads.

Why use DevTilt's Base64 to Image?

  • Live image preview from Base64 or data URI input
  • Auto-detects PNG, JPG, WebP, and GIF formats
  • Download decoded image as a file
  • Handles raw Base64 and full data: URIs

Common use cases

  • Previewing a Base64 avatar from an API response
  • Verifying an image upload round-trip in a web app
  • Recovering an inline image from a corrupted HTML email
  • Debugging a data URI that fails to render in CSS

FAQ

PNG, JPEG, GIF, WebP, BMP, and safe SVG. Decoded bytes must match a recognized image signature.
SVG with script tags or inline event handlers is rejected to reduce XSS risk in the preview.
No. Decoding and preview stay on your device. Object URLs used for preview are revoked on reset and unmount.
Truncated Base64 or wrong alphabet characters break RFC 4648 decoding. Ensure the string length is a multiple of four with correct = padding, and that you are not mixing URL-safe -_ with standard +/ encoding.
Yes. Paste the payload field from JSON or a raw Base64 string. If the response wrapped the value in quotes or a data URI, paste the whole value — prefixes are stripped automatically.