Base64 to GIF
Use our base64 to gif tool to encode or decode text quickly. Paste your input, convert instantly, then copy the output for quick checks.
Base64 to GIF
SIMILAR TOOLS
What the Base64 to GIF tool does
You have a Base64 string that is a GIF, and you want the GIF file back. Paste it in, press Convert, and the image appears in a preview, ready to download as a .gif, with HTML and CSS snippets if you need them. Since GIFs are usually the little animated ones, this is how you get an animation back out of a Base64 string.
It runs entirely in your browser, so the file stays with you.
How to use it
- Paste your Base64. A bare string is fine, and a full
data:image/gifURI works too. - Press Convert. The GIF shows in the preview, moving if it is animated.
- Download it as a GIF, or copy the HTML or CSS version.
The animation comes back too
This is the question worth answering for a GIF, so here it is plainly. If the GIF was animated when it was encoded, it is still animated when you decode it. A Base64 string holds the whole file, every frame and the timing between them, so unpacking it gives you back the complete moving image, not a single frozen frame. Paste the Base64, and the preview plays the animation just as the original did. Like the other tools in this set, it decodes rather than converts, so the string should genuinely be a GIF to begin with. Given GIF Base64, you get your animated GIF back, loop and all.
When you would reach for it
You meet a GIF as Base64 when an animation has been tucked into text somewhere, a small loader or animated icon embedded in a page's code, a reaction stored in a database as a string, or an animated asset returned by an API. When you want that animation back as a real .gif file you can save or reuse, this pulls it out of the string for you. The full mechanics are on the Base64 to Image page.
How it works
The tool wraps your Base64 in a GIF data URI, points an image at it so the browser decodes and plays the animation, and offers that same data back as a file. The complete walk-through is on the Base64 to Image page.
Questions people ask
How do I convert a Base64 string to a GIF?
Paste the Base64 and press Convert. If it is a GIF, the image appears in the preview and downloads as a .gif file.
Will my GIF still be animated after decoding?
Yes. The whole file, every frame and its timing, is held in the Base64, so the decoded GIF plays exactly as before. Decoding does not flatten it to one frame.
Can it turn another image into a GIF?
No. It decodes Base64 back into a file without re-encoding, so it cannot change a format. The string you paste should already be a GIF.
Where do Base64 GIFs come from?
Usually from an animation embedded in a page's code, stored in a database as text, or returned by an API. This gets the .gif file back out.
References
- Masinter, L. (1998). RFC 2397: The "data" URL scheme. Internet Engineering Task Force (IETF). https://www.rfc-editor.org/rfc/rfc2397
- Josefsson, S. (2006). RFC 4648: The Base16, Base32, and Base64 Data Encodings. Internet Engineering Task Force (IETF). https://www.rfc-editor.org/rfc/rfc4648
Bhabin Khadka is a software engineer and graduate student at the University of New England with experience in backend development and scalable systems. He has a particular interest in file systems and the kinds of technical utilities that depend on dependable handling of structured data. At Eon Tools, he reviews file and document tools, as well as encode and decode tools.