How to turn a screen recording into a GIF on Mac

A GIF plays by itself in a README, a bug report, a chat or a doc, where a video waits for a click. macOS records your screen as a .mov file and has no GIF export, but the Shortcuts app can make one, and so can a single Terminal command.

The short answer

Record with Shift-Command-5 (the recording is saved as a .mov), then turn it into a GIF with the Make GIF action in the Shortcuts app, or with ffmpeg in Terminal. QuickTime Player and the Screenshot app can't save GIFs. In Macsential, record the screen, then click Export in the editor and choose GIF: trims, zooms and the background you added are in the GIF too.

Make a GIF with the Shortcuts app

  1. 1

    Press Shift-Command-5, choose Record Selected Portion and drag over the part of the screen you want. Stop with Command-Control-Esc. The recording is saved to the desktop as a .mov file.

  2. 2

    Open Shortcuts and make a new shortcut. Add the Make GIF action, then a Save File action after it.

  3. 3

    In the shortcut's details, turn on Use as Quick Action so it takes files from the Finder.

  4. 4

    Control-click the recording in the Finder and choose Quick Actions ▸ your shortcut. Choose where to save the GIF.

Where it falls short

  • Make GIF only offers Seconds Per Photo, Loop Forever and Auto Size: there's no frame-rate or width setting, so a long or full-screen recording makes a very large file.
  • The recording is the screen as it was: no trimming in the shortcut, no zoom, no background.
  • Apple's Shortcuts guide doesn't document the action, so its options can change between macOS versions.

Export a GIF with Macsential

Macsential records the screen, then lets you trim the recording, zoom in where you clicked and add a background before you export. The GIF is drawn from the same picture as the video export, at 15 frames per second unless you choose another rate.

  1. 1

    Open Record Screen, choose the area or window, and click Record, or press Shift-Command-2 in any app. Stop from the menu bar or with Control-Shift-Command-2; the editor opens.

  2. 2

    Drag the ends of the clip on the timeline to trim it to the part you want to show. Zooms are added where you clicked; delete any you don't need.

  3. 3

    Click Export, choose GIF under Format (or the GIF (15 fps) preset), and click Export GIF.

Keep the GIF small

A GIF stores every frame as a picture with at most 256 colors, so it grows far faster than a video of the same clip. A few habits keep it easy to share:

  • Record only the window or area you need, not the whole screen.
  • Keep it short: a few seconds that show one action.
  • Use 15 frames per second or fewer. Interfaces rarely need more.
  • Scale it down. Macsential keeps a GIF's shorter side at 540 pixels at most.

A GIF has no sound. For anything with a voice-over, or longer than a few seconds, export an MP4 instead: it's much smaller, and many places that take GIFs take short videos too.

Make a GIF in Terminal

With ffmpeg installed (brew install ffmpeg), this turns a recording into a looping GIF at 15 frames per second and 720 pixels wide:

ffmpeg -i "Screen Recording.mov" -vf "fps=15,scale=720:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" -loop 0 out.gif

palettegen builds the 256 colors from your clip instead of using a fixed palette, which keeps text and interface colors cleaner. Add -ss 3 -t 6 before -i to take 6 seconds starting 3 seconds in.

If it doesn't work

The GIF is too big to upload

Lower the frame rate and the width, and cut it shorter: each of these shrinks the file more than any quality setting. If the place you're posting to accepts video, an MP4 of the same clip is much smaller.

Colors look banded or speckled

A GIF can only hold 256 colors per frame, so gradients, photos and shadows suffer. Record against a plain background, or use the ffmpeg command above, which picks the colors from your own clip.

Make GIF isn't in the Quick Actions menu

Check that Use as Quick Action is on in the shortcut's details. Quick Actions can also be turned on and off in System Settings ▸ General ▸ Login Items & Extensions ▸ Finder.

Related

More guides

Questions

Can QuickTime Player save a GIF?

No. QuickTime Player exports QuickTime movies at 4K, 1080p, 720p or 480p, or audio only. Use the Shortcuts app's Make GIF action or ffmpeg to make a GIF from the movie.

Can I make a GIF on a Mac without installing anything?

Yes. The Shortcuts app comes with macOS, and its Make GIF action turns a video or a set of images into an animated GIF.

Why is my GIF so much bigger than the video?

Video formats store only what changes between frames and use millions of colors efficiently; a GIF stores whole pictures with 256 colors each. Fewer frames per second, a smaller width and a shorter clip make the biggest difference.

Does a GIF keep the sound?

No. GIFs have no audio. Export an MP4 if the clip needs sound.

Can Macsential turn any .mov file into a GIF?

Not yet. GIF export is part of the recording editor, for recordings made with Macsential. Its video converter makes MP4 and MOV files.

Last updated