Image ↔ Base64 Converter
Encode image files for HTML, CSS or JSON, or recover an image from Base64. Original mode preserves file bytes, metadata and GIF animation. Processing stays in this tab.
Choose images to begin. JPG, PNG, WebP or GIF; no SVG.
Up to 10 images, 4 MiB each, 12 MiB total and 16 million pixels per image.
Resizing re-encodes still images as PNG and removes source metadata. GIF resizing is not supported.
Using Image ↔ Base64 Converter
Encode small image assets or recover a validated image from Base64 without uploading files.
- Choose up to ten JPG, PNG, WebP or GIF images, no larger than 4 MiB each and 12 MiB combined.
- Choose Base64, HTML, CSS or JSON. Original mode preserves bytes; optional still-image resizing writes PNG.
- Copy or download individual/batch results. For decoding, paste raw Base64 or a supported image data URI, preview, then download.
Example
data:image/png;base64,… The prefix identifies PNG data. Raw Base64 is also accepted; the type is detected from the decoded bytes.
Questions & answers
Does original mode change the image?
No. It encodes the original bytes, including metadata and GIF animation. Optional resizing re-encodes a still image as PNG and removes source metadata.
Can I resize GIFs or encode SVGs?
GIFs are supported only in original-byte mode. SVG and remote URLs are not accepted by this tool. Use GIF editing tools for animation resizing.
Why is Base64 larger than the original image?
Base64 typically adds about one third to binary size, plus the data URI prefix or output wrapper. Consider ordinary image files for large assets.
What does validation check?
It checks Base64 alphabet and padding, file signatures, declared MIME type, browser decoding and dimensions. Decoded images are limited to 4 MiB and 16 million pixels.
Help improve this tool
Report a problem or suggest an improvement
Describe the issue without pasting private tool input. Feedback goes to our admin inbox.
