How to Export as Gif in After Effects
StyleFrame Team8 min read
After Effects can't render a GIF from its Render Queue, so you export through another tool. The fastest route is Composition > Add to Adobe Media Encoder Queue, then setting the format to Animated GIF and rendering. For more control over palette, dithering, and file size, render a lossless video or PNG sequence and export from Photoshop with Save for Web (Legacy). Plugins such as GifGun and AEJuice GIF let you export from inside After Effects.
Why After Effects Can't Export a GIF Directly
GIF isn't in the Output Module's format list. Adobe moved it out of the Render Queue, and Adobe Media Encoder now handles it. That's why most tutorials send you to a second application.
The result is three realistic paths:
- Adobe Media Encoder: quick, built into Creative Cloud, limited control.
- Photoshop (or another converter): slower, but you control colors, dithering, and size.
- A plugin or script: GIF export without leaving After Effects, with a trade-off in cost or setup.
Pick based on how often you export GIFs and how much the file size matters.
Prep Your Composition Before Exporting
GIFs are an old, inefficient format. Every decision you make in the comp affects the final file size, so prepare before you render.
- Resolution: Scale down. Most web GIFs work at 480–800 px wide. A 1920×1080 GIF will be enormous.
- Frame rate: 12–15 fps is usually enough for UI demos and simple motion. 24–30 fps looks smoother but multiplies the frame count.
- Duration: Trim with the work area brackets (B and N). Only the work area gets rendered when you set it up that way.
- Loop: If the GIF will loop, make the first and last frames connect cleanly. Check that the final frame doesn't duplicate the first, or you'll see a stutter.
- Color complexity: GIFs are limited to 256 colors per frame. Gradients, soft shadows, and film grain band or bloat the file. Flatter designs compress better.
- Transparency: GIF supports only 1-bit transparency. Soft edges and drop shadows against a transparent background will fringe, so design for a known background color when you can.
Method 1: Export a GIF With Adobe Media Encoder
This is the quickest way to get a GIF out of After Effects, and it works well for occasional exports.
- Select your composition (in the timeline or the Project panel).
- Choose Composition > Add to Adobe Media Encoder Queue. Media Encoder may take a moment to launch.
- In the queue, click the Format dropdown and select Animated GIF. Don't pick plain "GIF". That option writes an image sequence rather than a single animated file.
- Open the preset settings (the blue text next to the preset). You'll find presets with and without transparency. Choose Match Source to keep the comp's settings, or adjust the size and frame rate manually.
- If you need transparency, change the transparency setting from None to Alpha. This only works if your comp actually has a transparent background.
- Click the output file name to set a name and location.
- Press the green Start Queue button.
Limits of the Media Encoder Route
Media Encoder treats GIF like any other video format, so you get few controls over palette and dithering. Files often come out large.
Frame rate can also be a problem. The default is 25 fps, and some users report that common values like 30 or 15 aren't offered. If the GIF's frame rate doesn't match your comp's, you can get missing or extra frames, which shows up as small glitches in smooth motion. Check your exported GIF against your comp if timing matters.
You can queue several comps at once by selecting multiple compositions in the Project panel before sending them to Media Encoder.
Method 2: Export a GIF Through Photoshop
Use this when quality and file size matter more than speed. You'll render a high-quality intermediate from After Effects, then do the GIF encoding in Photoshop.
Step 1: Render a Clean Intermediate From After Effects
You have two good options:
- A lossless or high-quality video, such as QuickTime ProRes 422, added through Composition > Add to Render Queue. Any lossless format works.
- A PNG sequence, by setting the Output Module format to PNG Sequence. Use RGB + Alpha in Channels if you need transparency.
Video is simpler to handle. A PNG sequence is more flexible when you need frame-level edits, but it creates many files and can be slow on long animations.
Step 2: Open the Render in Photoshop
For a video file, use File > Open and Photoshop loads it into the timeline. For a PNG sequence, import it as an image sequence, or use File > Import > Video Frames to Layers.
Step 3: Save for Web (Legacy)
Go to File > Export > Save for Web (Legacy) and set the format to GIF. These settings are a good starting point:
- Preset: Start from GIF 128 Dithered. It balances quality and size.
- Colors: Set to 256 for maximum fidelity. Lower the number if your artwork uses few colors or you need a smaller file.
- Dither: Diffusion at around 88% keeps gradients smoother. Lower it, or turn dither off, to cut file size.
- Looping options: Set to Forever for a seamless loop, or Once for a single play.
- Image size: Resize here if you didn't scale in After Effects.
Preview the result in the dialog, check the file size estimate at the bottom, and iterate before saving.
The 500-Frame Problem
Photoshop has had trouble exporting animated GIFs longer than about 500 frames. If you hit that wall, reduce the frame count: drop the frame rate, trim the duration, or merge stationary frames into one longer-duration frame. Holding a frame for several beats instead of repeating it many times saves both frames and file size.
Method 3: Use a Plugin or Script
If you export GIFs often, a tool inside After Effects removes the round trip.
- GifGun is a paid plugin from aescripts + aeplugins. It renders and encodes from the comp in one step, supports batch rendering of multiple compositions, and can output formats such as WEBP, WEBM, and MP4 as well as GIF. A free trial is available.
- AEJuice GIF is a free script that exports GIFs in one click. After installing it through the AEJuice Pack Manager, you'll find it under the Window menu. Open a comp and press Render.
Both are worth trying when you're producing many GIFs, such as social loops, UI demos, or client review snippets. Test the output against your own artwork. File size and banding vary with content, so compare at least one result with the Photoshop route before standardizing.
Which Method Should You Use?
That last row matters. GIF is a legacy format. For websites, MP4 or WebM at a fraction of the file size usually looks better. GIF still makes sense where autoplay-and-loop with no player is required, such as email, chat apps, documentation, and some social platforms.
Tips for Smaller, Cleaner GIFs
- Reduce color count before reducing size. Dropping from 256 to 128 colors often costs little visually.
- Simplify backgrounds. Flat colors compress far better than gradients or noise.
- Lower the frame rate in steps. Try 15 fps, then 12, and compare.
- Avoid motion blur and film grain unless they're essential. Both add many unique pixel values per frame.
- Crop to the action. A GIF doesn't need to include empty canvas.
- Test on the target platform. Some platforms recompress or cap GIF size, so check the final result where it will live.
Troubleshooting Common GIF Export Issues
The GIF looks banded or noisy. Raise the dither amount in Photoshop and make sure you're using 256 colors. If the artwork has complex gradients, accept some banding or redesign with fewer tonal steps.
The GIF is too large. Reduce dimensions first, then frame rate, then colors. Trim duration last.
Edges look jagged on transparent GIFs. GIF can't do partial transparency. Matte the animation against the background color it'll sit on, or use a format with real alpha.
Timing feels off. Frame rate mismatch is a likely cause, especially with Media Encoder. Match your comp's frame rate where possible, or use the Photoshop route and set frame delays explicitly.
The loop pops. Check that the last frame isn't identical to the first, and verify the looping setting is Forever.
Using Styleframe Footage in a GIF Pipeline
If your GIF starts as generated or restyled footage, the GIF step stays the same. You still finish it in After Effects with one of the methods above.
is an AI video and motion tool. For GIF work, treat it as a source for the footage, then run your usual Media Encoder, Photoshop, or plugin export at the end.
- Build a clean loop first. A controlled loop is easier to scale, retime, and trim in After Effects before it's reduced to 256 colors.
- Isolate the subject. A cutout placed on a flat color compresses better in a GIF than a busy backdrop.
Quick Summary
- After Effects can't render GIFs from the Render Queue. Use Media Encoder, Photoshop, or a plugin.
- Media Encoder is fastest. Pick Animated GIF, not "GIF", and watch frame rate mismatches.
- Photoshop's Save for Web (Legacy) gives you the most control over colors, dither, and size.
- GifGun and AEJuice GIF export from inside After Effects.
- Scale down, lower the frame rate, and simplify color before you render. These changes help keep GIFs small.