Base64 to Image
Convert Base64 encoded strings back to downloadable image files.
Turn Base64 text back into an image you can see and save. Paste a data URI (data:image/png;base64,…) or just the Base64 part, and the tool works out the format from the data itself (PNG, JPG, GIF, WebP, AVIF, SVG, BMP or ICO), shows a preview with its size and dimensions, and lets you download it with the right file extension. Decoding runs in your browser.
Common use cases
- See an image embedded in HTML, CSS or JSON
- Save an image from an API response that returns Base64
- Check what a data URI in an email or log contains
- Recover an image stored as text in a database
How to use
- Paste the Base64 or data URI, or press Try an example.
- Check the preview, format and size.
- Download the image.
FAQ
Do I need the data:image/… prefix?
No. The format is detected from the first bytes of the image, so plain Base64 works too.
Why do I get an error?
The text may be cut off, include extra characters, or not be an image at all. Base64 for text decodes with the Base64 decoder instead.
How do I make Base64 from an image?
Use the image to Base64 converter.
Related tools
- Image to Base64Convert images to Base64 encoded strings for embedding in HTML or CSS.
- Base64 DecodeDecode Base64 encoded strings back to original text or binary data.
- Image ResizerResize images to specific dimensions while maintaining aspect ratio.
- Image CropperCrop images by dragging or by exact pixels, with 1:1, 4:5, 16:9, 9:16, 4:3 and 3:2 ratios. Save as JPG, PNG…
- Image CompressorCompress JPG, PNG, WebP and iPhone HEIC photos to smaller JPG or WebP files. Set the quality and max size…
- JPG to PNG ConverterConvert JPG photos to PNG in your browser, one or many at a time, and download them singly or as a ZIP…