Turning Screen Recordings into GIFs for READMEs and Issues: Measured Settings for GIFs That Stay Readable and Small
Convert a screen-recorded MP4 to GIF and text is unreadable at 480 px, while the full resolution makes the file heavy. I converted a 10-second UI recording and a scrolling recording with a video-to-GIF tool and measured how cropping, width, fps, playback speed, colors and “Store only the changed parts” affect file size. Turning off change-only storage grows 48 KB to 975 KB, a scrolling recording tops 4 MB because change-only storage does not help, a file size limit lowers width and fps automatically, and some cases are better posted as MP4.
When you report a bug, it is hard to explain in words that “a message flashes for a moment when I press the button and then disappears.” And when you want to show a sequence of steps in a how-to or a README, a few seconds of motion gets the point across faster than a row of screenshots. That is where screen recordings come in, but the MP4 or MOV you record may not play as is depending on where you post it, or may not move until someone clicks it. Turn it into a GIF and it plays on a loop the instant it opens, in almost any chat, email or Markdown image.
The trouble is that converting to GIF rarely strikes a good balance between quality and file size. Shrink the width to make it small and the text becomes unreadable; make it large enough to read and it weighs several megabytes.
The Video to GIF Converter is a tool that takes a range from an MP4, MOV, WebM or other video and turns it into an animated GIF. The video is processed inside your browser and is not sent anywhere. In this article I converted two recordings of browser operations and compared, with numbers, which settings actually affect file size. The screenshots are from this English version of the tool.
The recordings I tested
The first recording shows me opening the JSON formatter in a browser, entering a single line of JSON, formatting it with “Pretty” and copying it with “Copy.” It is an H.264 MP4 at 1280×720 px, 9.87 seconds long and 30 fps, and the file is 151 KB. Most recordings attached to bug reports or how-to steps are like this: only part of the screen moves.
The second recording is 7.27 seconds of continuously scrolling an article page in a browser of the same size. The MP4 came to 1.85 MB. Here almost the whole screen moves in every frame.
You can make similar videos with the recording feature of the Snipping Tool on Windows 11, or with screen recording from the screenshot toolbar (Shift+Command+5) on macOS. Videos recorded either way can be loaded as long as the browser can play the format.
Load the video and set the range and crop
Pick the recording with “Choose video” or drop it into the box. Once loaded, you see a preview of the video along with its size and length (for this recording, “1280 × 720 px, 9.87 s long”), and the “Range and output” section opens below. If you have no recording at hand, “Try a sample video” loads a 4-second video of a menu being opened and a file being saved.
The range to turn into a GIF is set with “Start (s)” and “End (s).” Play the preview, pause it and press “Set start here” or “Set end here” to enter that position. This is where you drop the few seconds at the beginning and end where you are only operating the recording tool. For this recording I used the whole thing.
Next, open “Crop (trim unwanted edges)” and enter the number of pixels to remove from the top, bottom, left and right. The values are in pixels of the original video, and the area that remains is shown as a yellow dotted frame over the preview.
In this recording, the site header and the margins outside the tool are not needed to explain anything, so I removed 90 px from the top, 60 px from the bottom and 64 px from each side. That leaves an area of 1152×570 px.
Choose the width by whether the text is readable
The default for “Width (px)” is 480 px. Shrinking a 1280 px recording to 480 px scales it by 0.375; the button labels were still readable, but the JSON in the input area was squashed and hard to make out. That is good enough for a recording that only has to show what was clicked, but if you want viewers to read text or error messages on screen, you need to raise the width.
Here I set the cropped 1152 px area to 960 px. That is a scale of 0.83, and the JSON text stays at a readable size.
Above “Make GIF,” a preview of the result such as “Output: 960 × 475 px, 98 frames, 9.8 s per loop” appears every time you change a setting. You get a sense of the size and number of frames before converting anything.
Press “Make GIF” and check the result
When you press “Make GIF,” the tool steps through the video bit by bit, captures one frame at a time and builds the GIF. For a 10-second, 10 fps GIF with 98 frames, it finished in about 10 seconds on my machine. The finished GIF plays right away in the section below, along with its file size and frame count.
The result was 183.8 KB, 960×475 px and 98 frames: about the same size as the original MP4 (151 KB), and a GIF in which the text is readable. “13 unchanged frames were merged into the previous frame’s display time” means that the frames where the screen stood still after a button press were not stored; the previous frame is simply shown for longer. If it looks fine, save it with “Save GIF.” To change settings, “Change settings and redo” takes you back to the settings section.
Which settings matter, and by how much
The table below shows the results of remaking the first recording while changing one setting at a time. Anything not mentioned stays at: cropped, width 960 px, 10 fps, normal speed, 256 colors, “Color difference to ignore” at 6 (default) and “Store only the changed parts” on.
| Setting | GIF size and frames | File size |
|---|---|---|
| No crop, width 480 px (defaults) | 480×270 px, 98 frames | 48.3 KB |
| Same, with “Store only the changed parts” off | 480×270 px, 98 frames | 975.0 KB |
| No crop, width 1280 px (original size) | 1280×720 px, 98 frames | 252.0 KB |
| Same, with “Store only the changed parts” off | 1280×720 px, 98 frames | 3.64 MB |
| Cropped, width 960 px (baseline) | 960×475 px, 98 frames | 183.8 KB |
| Baseline with “Store only the changed parts” off | 960×475 px, 98 frames | 2.66 MB |
| Baseline at 15 fps | 960×475 px, 148 frames | 259.1 KB |
| Baseline at 30 fps | 960×475 px, 296 frames | 354.6 KB |
| Baseline at 2× playback speed | 960×475 px, 49 frames, 4.9 s | 146.1 KB |
| Baseline with “Max colors per frame” at 64 | 960×475 px, 98 frames | 123.5 KB |
| Baseline with “Color difference to ignore” at 0 | 960×475 px, 98 frames | 395.2 KB |
| Baseline with “Color difference to ignore” at 24 | 960×475 px, 98 frames | 115.1 KB |
The setting that matters most is “Store only the changed parts.” Turning it off made the file 14 to 20 times larger at every size. GIF has a mechanism for keeping the previous frame and overwriting only a rectangular part of it, and this tool compares each frame with what is currently displayed and stores only the area enclosing the pixels that changed. A frame where the only change is one more character in an input field takes up just the area of those few characters.
Raising the fps did not grow the file in proportion to the frame count. Going from 10 fps to 30 fps tripled the frames, but the file only grew 1.9 times. The shorter the interval between frames, the smaller the change in each one, and the smaller the area that needs storing. Even so, 10 fps is plenty to follow the flow of typing and clicking.
At 2× playback speed, the same range plays in 4.9 seconds with half the frames. For operations with a lot of waiting, shorter is better for the viewer too.
Dropping to 64 colors changed only how the edges of the text blurred, very slightly, and I could hardly see any difference in this recording. A screen recording made mostly of black text on a white background uses few colors to begin with. In a recording that shows photos or video playback, reducing colors makes banding noticeable, so it is better to stay at 256 colors.
Raising “Color difference to ignore” too far leaves traces
With “Color difference to ignore” at 24, the file shrank to 115.1 KB. But look at the result, and the last scene is wrong.
After “Copy” is pressed, the button and the copy confirmation area change from gray to a very pale green. Because the difference in red, green and blue all stays within 24, the change was not recorded and the area stayed gray. Above and below it, the colors of earlier frames remain in patches. This value is meant to ignore the slight flicker caused by video compression; raise it so far that it erases pale color changes, and the very change you wanted to show no longer comes across. Conversely, setting it to 0 records even the compression flicker, and the file grew to 395.2 KB. It is safer to leave it at the default of 6 and reach for other settings first when you want a smaller file.
Scrolling recordings get large: set a limit and let the tool shrink them
Converting the second, scrolling recording at 960 px wide and 10 fps produced 4.14 MB. Compared with 5.56 MB with “Store only the changed parts” off, that is not much smaller. When scrolling, almost the whole screen shifts in every frame, so there is hardly any unchanged area.
If the place you are posting to has a file size limit, open “Colors and file size,” check “File size limit” and enter a value in MB. If the GIF exceeds the limit, the tool first lowers the width, and if it still does not fit after going down to half the original width, it lowers the fps and makes the GIF again.
With the limit at 2 MB, the second attempt lowered the width to 620 px and fit in 1.91 MB. With 1 MB, the tool lowered the width to 480 px (half the original width), then lowered the fps from 10 to 5, and reached 714.0 KB on the third attempt. What was lowered, and how far, is shown above the result. At that point the body text is no longer readable, so for scrolling recordings, try shortening the range, speeding up playback or cropping to just the part you want to show first, and use the limit as a final safety net.
The tool counts 1 MB as 1,048,576 bytes. To be sure, enter a value a little below the destination’s exact limit.
Where you can post MP4 as is, MP4 may be smaller
Of these two recordings, the UI recording came out about the same size as a GIF (183.8 KB) as the original MP4 (151 KB), but the scrolling recording’s GIF (4.14 MB) was more than twice the size of the original MP4 (1.85 MB). Footage where the whole screen moves is what video compression is good at.
On GitHub, images and GIFs attached to issue and pull request comments can be up to 10 MB, and MP4, MOV and WebM videos can be attached directly as well (for repositories on the free plan, videos are also limited to 10 MB; see GitHub Docs, “Attaching files”). For a bug report that people will view on GitHub, attaching a long, scroll-heavy recording as MP4 is an option. On the other hand, if you want it to loop automatically at the top of a README, or to post it in chat or email that does not play video, a GIF is the reliable choice.
If you want to keep it as video and stay within a size limit, the Video Bitrate Calculator works backward from a file size to the average bitrate that fits.
When there is something you do not want in the recording
Screen recordings easily pick up notifications, browser tabs, and names or email addresses shown in other windows. If it is only at the edge, cropping it out is the quickest fix. Information in the middle of the screen that cannot be cropped cannot be hidden in the GIF, so it is better to record again, or to explain with still images instead of video. To pull a single frame out of a video as an image, follow “Extracting Still Images from an MP4 Video” to save exactly the frame you want, and hide personal information in that image as described in “To Hide Personal Info in Screenshots, Fill Beats Mosaic.” To show the before and after of an operation in one picture, Combine Images can place them side by side or stacked vertically.