Screen Recorder Pro Screen Recorder Pro
Add to Chrome — Free

Screen Recorder Pro Blog

How to Convert a Screen Recording to GIF

Updated March 2026 · 7 min read

Screen Recorder Pro Add to Chrome — Free

Updated March 2026  ·  7 min read

Quick Answer Best result: use FFmpeg's two-pass palette method for high-quality GIFs with small file sizes. For a quick online conversion: upload to ezgif.com. Key settings for manageable file size: 480px width, 15 fps, under 6 seconds duration. GIFs get huge fast — keep them short or use a looping MP4 instead.
📋 Table of Contents
📋 Table of Contents

GIFs remain useful for documentation, GitHub READMEs, bug reports, tutorial snippets, and anywhere that needs an animation that plays automatically without a video player. Converting a screen recording to GIF looks simple — but getting a good quality result at a reasonable file size requires knowing the right technique. This guide covers the best methods from simple to advanced.

Record the Source Content First

Screen Recorder Pro captures clean WebM or MP4 files that convert perfectly to GIF. Record in the browser, then convert using the methods in this guide.

Add to Chrome — Free


Before Converting: GIF Size Reality Check

Understanding GIF file sizes before you start prevents the frustrating experience of waiting for a conversion only to get a 200 MB file that won't upload anywhere.

ResolutionFPSDurationApprox. GIF Size
1280×720305 sec60–120 MB
1280×720155 sec30–60 MB
640×360155 sec5–15 MB
480×270155 sec2–6 MB
480×270105 sec1–4 MB
320×180105 sec0.5–2 MB

The table makes clear: if you want a usable GIF (under 10 MB for typical upload limits), you need to reduce both resolution and frame rate from your original recording. For anything over 10 seconds, consider whether a looping MP4 would work better.



Method 1: FFmpeg (Best Quality)

FFmpeg's two-pass approach generates a color palette optimized for your specific clip, then uses it to create the GIF. This produces dramatically better quality than single-pass conversion — especially for UI content with flat colors and text.

Installing FFmpeg

The Two-Pass GIF Command

1
Generate a color palette
ffmpeg -i input.mp4 -vf "fps=15,scale=480:-1:flags=lanczos,palettegen" palette.png
This analyzes your video and creates an optimized 256-color palette. The lanczos flag uses a high-quality scaling algorithm.
2
Create the GIF using the palette
ffmpeg -i input.mp4 -i palette.png -vf "fps=15,scale=480:-1:flags=lanczos,paletteuse" output.gif
This creates the final GIF using the palette from step 1. The result is better quality than a standard single-command conversion.

One-Line Combined Command

Combining both steps in a single command (using filtergraph):

ffmpeg -i input.mp4 -vf "fps=15,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" output.gif

Adjusting Parameters

Complete Example with Trim

ffmpeg -ss 00:00:03 -t 00:00:06 -i input.mp4 -vf "fps=12,scale=640:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" trimmed-output.gif

This takes a 6-second clip starting at the 3-second mark, scales to 640px wide, at 12 fps.



Method 2: ezgif.com (Online, No Installation)

For occasional conversions without installing software, ezgif.com is the best online option:

1
Go to ezgif.com/video-to-gif Upload your MP4 or WebM file (max 100 MB for free).
2
Set conversion parameters Set "Size" (width), "FPS" (use 10–15), and optionally trim the start and end times. Click "Convert to GIF."
3
improve the result After conversion, ezgif offers an optimization step. Run the "improve GIF" tool with the lossy option enabled — this often reduces file size by 20–50% with minimal visible quality loss.


Method 3: LICEcap (Screen-Direct GIF Recording)

LICEcap records your screen directly to GIF — no conversion step needed. Instead of recording to MP4 first, you capture GIF directly:

Best for: Very short UI demonstrations (under 5 seconds) where you know exactly what you want. Not suitable for longer content or if you need to edit before converting.



Method 4: Photoshop (Most Control)

For GIFs that need precise color control, frame selection, or frame-by-frame editing:

1
Import video frames to layers File → Import → Video Frames to Layers. Select your MP4 file and choose "From Beginning to End" or select a range.
2
Open the Timeline panel and adjust frames Window → Timeline. Delete frames you don't need. Set timing for each frame (or select all frames and set uniform timing).
3
Export for Web File → Export → Save for Web. Select GIF. Choose "Perceptual" for dithering, set colors to 256, and enable "Lossy" compression. Compare the preview at different settings to find the quality/size balance you need.
When to use Photoshop: Photoshop's GIF export gives you control over dithering algorithms, color reduction, and selective frame timing that FFmpeg doesn't expose easily. Use it when quality matters more than speed, or when you need to edit individual frames (remove one frame, change timing of specific moments).


GIF Optimization: Reducing File Size After Conversion

If your GIF is larger than needed, improve it without re-converting from the source:

gifsicle (Command Line, Free)

gifsicle --improve=3 --lossy=80 -o output-optimized.gif input.gif

The --lossy=80 flag enables lossy compression (similar to JPEG's quality concept for GIF). Values 30–100 work well — higher is more lossy/smaller. --improve=3 applies the most thorough lossless optimization first.

ezgif improve

Upload existing GIF to ezgif.com/improve. Choose "Lossy GIF" with compression level 80 as a starting point. Compare before/after file sizes.



When to Use MP4 Instead of GIF

Most modern platforms support short looping MP4 videos. Consider using MP4 instead of GIF when:

For a 480px, 10-second clip: as MP4 it's typically 0.2–0.5 MB. As GIF it's 8–25 MB. Using <video autoplay loop muted playsinline> on a web page gives identical visual behavior to a GIF at a fraction of the file size.

Record Clean Source Material First

The best GIFs start with the best recordings. Screen Recorder Pro captures crisp browser content that converts cleanly to GIF with good color rendering.

Add to Chrome — Free


Frequently Asked Questions

How do I convert a screen recording to GIF?

Best quality: use FFmpeg's two-pass palette command (see above). Quick online option: upload to ezgif.com/video-to-gif. Set width to 480px, FPS to 15, and keep the clip under 6 seconds for manageable file sizes. Run gifsicle or ezgif's optimizer afterward for smaller output.

Why is my screen recording GIF so large?

GIF file size grows quickly with resolution, frame rate, and duration. The fixes: reduce output width (480px instead of 1280px), lower frame rate (10–15 fps instead of 30), and trim to under 6 seconds. A 5-second, 480px, 15fps GIF is typically 1–5 MB. The same clip at full 1280px, 30fps would be 50–100 MB.

Should I use GIF or MP4 for sharing short screen recordings?

For modern platforms (GitHub, Slack, Notion, Discord), a short looping MP4 is better: 10–50x smaller file size, better quality, optional audio. Use GIF only when the target platform doesn't support video, or when you specifically need the ubiquitous auto-play behavior GIF provides in old email clients or CMS systems.

What's the maximum duration for a good GIF?

Keep GIFs under 5–8 seconds. Beyond that, file sizes become impractically large (50+ MB) and loops become more distracting than informative. For longer content, use a short MP4 with autoplay and loop attributes instead — identical behavior, fraction of the size.

How do I make a looping GIF from a screen recording?

GIFs loop by default — no special setting is needed for looping. FFmpeg's output GIF will loop automatically. For a smooth$1 loop, find a section of your recording where the ending state visually matches the beginning state, and trim to that section before converting.

More Free Chrome Tools by Peak Productivity

Bulk Image Downloader
Bulk Image Downloader
Download all images from any page
Pomodoro Technique Timer
Pomodoro Technique Timer
25-minute focus timer with breaks
Citation Generator
Citation Generator
Generate APA/MLA/Chicago citations
PDF Merge & Split
PDF Merge & Split
Merge and split PDFs locally
WebP to JPG/PNG
WebP to JPG/PNG
Convert WebP images to JPG/PNG
Auto Refresh Ultra
Auto Refresh Ultra
Auto-refresh pages at custom intervals