You can insert an animated GIF into a Word document, but the animation only plays when the document is opened in a browser, not in the Word desktop app. Word’s desktop application displays the first frame of the GIF as a static image. This article explains how to add an animated GIF to a document and configure it so that viewers see the animation when they open the file in a web browser.
Key Takeaways: Inserting an Animated GIF for Online View
- Insert > Pictures > This Device: Use the standard image insertion command to place a GIF into the document body.
- File > Export > Change File Type > Web Page (.htm): Save the document as an HTML file so the GIF animation plays in a browser.
- File > Share > Email (as attachment) or Save to Cloud: Distribute the file as a web page attachment or share a link to a cloud-hosted copy for recipients to open in a browser.
Why the GIF Animation Stops in the Word Desktop App
Word’s desktop application treats an animated GIF as a static picture. When you insert a GIF, Word loads only the first frame and discards the remaining frames. This behavior is by design — the desktop app is optimized for print and document editing, not for playing video or animation. The animation data is still embedded in the file, but Word’s rendering engine ignores it.
When you save or export the document as a web page (HTML format), the animation becomes visible because a browser interprets the GIF correctly. The key requirement is that the document must be opened in a browser, not in Word. This method works for any modern browser, including Chrome, Edge, Firefox, and Safari.
No additional software or plugins are needed. The GIF file itself must be a valid animated GIF — not a static GIF or a video file converted to a GIF incorrectly. You can verify a GIF’s animation by opening it directly in a browser before inserting it into Word.
How to Insert a GIF and Make It Animated in a Browser
Follow these steps to insert a GIF and then convert the document to a web page so the animation plays.
- Place the cursor where you want the GIF
Open your document in Word. Click at the location in the text where you want the GIF to appear. - Insert the GIF file
Go to Insert > Pictures > This Device. In the file picker, change the file filter to All Files or Graphics Interchange Format. Select the animated GIF and click Insert. The GIF appears as a static image in the document. - Resize the GIF if needed
Click the GIF to select it. Drag a corner handle to resize proportionally. Do not stretch the image — this degrades quality. - Save the document as a web page
Go to File > Save As (or Save a Copy in newer Word versions). In the Save as type dropdown, select Web Page (htm; html). Name the file and choose a folder. Click Save. Word creates an HTML file and a companion folder containing the GIF and other assets. - Open the HTML file in a browser
Locate the .htm file you saved. Double-click it to open in your default browser. The GIF should now play its animation.
Alternative Method: Export as Web Page
If you are using a version of Word with the Export option, you can use this alternative path.
- Open the document with the inserted GIF
Ensure the GIF is already inserted using the steps above. - Go to File > Export
Click Export in the left pane. Then click Change File Type. - Select Web Page
Under Change File Type, choose Web Page (htm). Click Save As. Word creates the HTML file and a folder with supporting files. - Test in a browser
Open the .htm file in a browser to confirm the animation plays.
Common Problems When Inserting GIFs in Word
The GIF appears as a broken image icon
This happens when the GIF file is corrupted or when Word cannot read the file format. Open the GIF in a browser first to confirm it is a valid animated GIF. If the browser shows a broken image, re-download or recreate the GIF. Insert a fresh copy into Word.
The GIF plays in Word Online but not in the desktop app
Word Online (the browser version of Word) can play animated GIFs directly, while the desktop app cannot. If you share the document via OneDrive or SharePoint and recipients open it in Word Online, they will see the animation. No conversion to HTML is needed for that scenario.
The HTML file is missing the companion folder
When you save as Web Page, Word creates a folder with the same name as the HTML file plus “_files”. If you move only the .htm file without the folder, the GIF will not appear. Always keep the .htm file and its companion folder together. To share the web page, compress both into a ZIP file or upload the entire folder to a web server.
The animation loops only once or not at all
The looping behavior is controlled by the GIF file itself, not by Word. Some GIF editors allow you to set the loop count. If the GIF loops only once, use a GIF editing tool to set it to loop forever before inserting it into Word.
Word Desktop vs Word Online vs HTML Export: How Animation Works
| Item | Word Desktop App | Word Online (Browser) | HTML Export (any browser) |
|---|---|---|---|
| GIF animation plays | No | Yes | Yes |
| Requires saving as web page | No | No | Yes |
| Static image shown | First frame only | Full animation | Full animation |
| File format | .docx | .docx (opened in browser) | .htm + folder |
| Best for | Print or editing | Online collaboration | Email or web publishing |
You can now insert an animated GIF into Word and ensure viewers see the animation by saving the document as a web page or sharing it through Word Online. For recipients who use the desktop app, the GIF will remain static. Use the Export to Web Page method to create a browser-ready file that preserves the animation. As an advanced tip, reduce the GIF file size to under 1 MB to keep the HTML folder small and load quickly in a browser.