Notepad - How to convert video to GIF (MP4 to GIF, any platform)
How to convert video to GIF (MP4 to GIF, any platform)
Convert video to GIF in your browser with no upload, no account, and no watermark. Learn what you lose, how to keep file sizes small, and when to skip GIF entirely.
March 31, 2026 · 10 min read
Short looping animations show up everywhere: Slack threads, GitHub pull requests, README demos, email newsletters where video embeds are blocked. The GIF format has existed since 1987 and it remains the most universally supported way to drop a silent, auto-playing animation into a context where a video player is not available. If you have an MP4 and need a GIF — or need to understand whether you actually do — this guide covers everything from a one-click browser conversion to FFmpeg flags.
Why convert a video to GIF
GIF works where video consistently does not. It auto-plays and loops in email clients, GitHub issues, Confluence pages, Notion docs, Slack messages, and Discord chats without requiring a video player, codec support, or a play button. For a short screen recording, a product demo loop, or a reaction clip, that zero-friction delivery is the point.
Concrete use-cases where GIF makes sense over a raw video file:
- GitHub and GitLab: inline GIFs in issues and pull request descriptions show the bug or feature visually without requiring a reviewer to download a file.
- README documentation: a 5-second GIF of your CLI tool running is worth a page of written steps.
- Slack and Teams: GIFs paste in-line and play immediately. Video files open in an external player.
- Email: most email clients do not render HTML5 video. A GIF displays directly in the body of the message.
What you actually lose in the conversion
Converting to GIF is a trade, not a free operation. Three things change:
- Colors drop to 256. The GIF format supports a maximum palette of 256 colors per frame. Video can carry millions. Gradients, skin tones, and photographs show visible banding. Flat-color UI recordings handle this much better than footage.
- File size increases. MP4 uses inter-frame compression that is highly efficient for video. GIF stores each frame independently. A 500 KB screen recording can easily become a 5–10 MB GIF. Every second you add makes this worse.
- Audio is gone. GIF is technically an image format. There is no audio channel. If sound is part of what you are communicating, keep the video.
If your clip is longer than 10 seconds, has photographic content, or the audio matters, keep the MP4. The 10-second mark is a practical sweet spot: short enough that the file stays manageable, long enough to show most UI interactions.
How to convert video to GIF in your browser — no upload required
privateconvert.org runs the entire conversion locally in your browser. The video file never leaves your device. No account, no watermark, no file-size cap set by a server.
Steps to convert video to GIF online:
- Go to the video to GIF converter at privateconvert.org.
- Drop your MP4 (or MOV, WebM) onto the tool.
- Set the clip start and end points. Trim to only the section you need.
- Choose a frame rate. 15 fps works for most screen recordings; 10 fps for slower UI walkthroughs.
- Set the output width. 600–800 px is appropriate for documentation; 400 px or less for chat and email.
- Click Convert. The GIF is generated on your device.
- Preview the result and download.
Because the mp4 to gif converter runs entirely on-device, there is no waiting for uploads, no processing queue, and no risk of your file being stored on a third-party server.
How to convert video to GIF on each platform
On Mac
Using the browser tool: The fastest option is privateconvert.org — no install required, works on any Mac without Homebrew or additional software.
Using FFmpeg (see below for the command): FFmpeg is available via Homebrew and gives you full control over every parameter.
Using GIMP: File → Open the video, which imports it as layers. File → Export As with the .gif extension. Useful if you already have GIMP installed, but slower than other options.
On iPhone
iOS has no built-in GIF converter. The practical options are:
- privateconvert.org in Safari or Chrome: The browser tool works on iPhone. Open the site, tap the upload area, select a video from Photos, and export the GIF directly to your camera roll or Files.
- GIPHY: The GIPHY app lets you create GIFs from your camera roll. The GIFs are watermarked unless you pay for the pro tier.
- Shortcuts app: A custom Shortcut using the “Convert Image” action can approximate GIF creation, but quality and control are limited compared to a dedicated tool.
For video to GIF on iPhone without watermarks, the browser tool at privateconvert.org is the cleanest option.
On Android
Android also lacks a native GIF maker. Options:
- privateconvert.org in Chrome: Works on Android. Select your video from local storage and export the GIF directly — no app install required.
- GIF Maker by Roidapp: A free Android app with decent control over frame rate and resolution. Occasional ads.
- GIPHY Cam: Similar to the iOS version — watermarked output unless subscribed.
For video to GIF on Android without installing an app, use the browser converter.
On Windows
- privateconvert.org: Works in any Windows browser — no software to install.
- ScreenToGif: A free, open-source Windows tool specifically designed for capturing and exporting GIFs. Excellent for screen recordings; less convenient for converting pre-existing video files.
- LICEcap: Lightweight, captures a screen region directly to GIF. Good for live captures, not for converting existing MP4s.
- FFmpeg: Available for Windows via winget or direct download. See the command below.
Using FFmpeg
FFmpeg gives you the most control of any option. The two-pass approach generates an optimized color palette first, which significantly improves GIF quality:
# Step 1: generate an optimized palette
ffmpeg -i input.mp4 -vf "fps=15,scale=800:-1:flags=lanczos,palettegen" palette.png
# Step 2: render the GIF using the palette
ffmpeg -i input.mp4 -i palette.png -vf "fps=15,scale=800:-1:flags=lanczos,paletteuse" output.gif
Key flags:
fps=15— sets the frame rate to 15 per second (use 10 for slower content)scale=800:-1— sets the output width to 800 px, preserving aspect ratiopalettegen/paletteuse— generates a per-GIF color palette instead of using the generic 256-color set; noticeably improves color fidelity on photographic contentlanczos— high-quality resampling filter
For a short clip, add -ss 00:00:02 -t 8 before -i to start at 2 seconds and run for 8 seconds.
How to keep your GIF small without losing quality
GIF files inflate quickly. These adjustments have the largest impact:
Frame rate: This is the single most effective lever. 30 fps GIFs are enormous and rarely necessary. 15 fps is the right default for most content. 10 fps works for slower UI walkthroughs where no fast motion is present. Dropping from 30 fps to 15 fps cuts frame count in half and reduces file size proportionally.
Clip length: Aim for under 10 seconds. That is the sweet spot for usability and file size. A 3-second loop is better than a 15-second one — viewers can absorb a short loop multiple times rather than watching a long one once.
Output resolution: Halving the width quarters the pixel count. For a README or documentation page, 600–800 px wide is plenty. For Slack or email, 400 px is usually sufficient and loads faster on mobile.
Color palette reduction: The default GIF palette is chosen globally for the entire file. The FFmpeg two-pass method above generates a palette specific to your video’s actual color range. This is a genuine quality improvement that most browser-based converters skip — the result uses the same 256 colors more efficiently, reducing banding on gradients without increasing file size.
Background color: If the video has a white or solid-color background, GIF’s limited palette handles it efficiently. Video with busy, varied backgrounds (grass, crowds, sky gradients) compresses poorly — consider whether the content is right for GIF at all.
When to use a video format instead of GIF
GIF is not always the answer. Use a video format in these situations:
Clips longer than 10–15 seconds: File size becomes unmanageable. An MP4 delivered with the autoplay, loop, muted, and playsinline attributes behaves exactly like a GIF on modern browsers, costs 80–90% less bandwidth, and supports audio if needed.
Content with rich color or gradients: Photographic content, video footage, and anything with smooth gradients will look visibly degraded as a GIF. MP4 handles these without quality loss.
Modern browser contexts: If you control the platform and know your audience is using a modern browser (not email), use a short looping MP4 or an animated WebP. Both are smaller and higher quality than GIF. Animated WebP has nearly universal browser support and a 30–40% size advantage over GIF at equivalent visual quality.
When audio matters: GIF has no audio track. If the sound is part of what you are communicating, you need a video format.
The rule of thumb: use GIF when you need it to work everywhere with zero configuration. Use MP4 or WebP when you have even a little control over the delivery environment.
YouTube to GIF
You cannot download YouTube videos directly, but if you have screen-recorded a clip, the workflow is the same as any other MP4: trim the recording to the section you want, open privateconvert.org, drop in the file, and export the GIF. Keep the screen recording short before converting — a 30-second screen capture will produce a GIF too large to be useful. Record only the specific moment you need.
Frequently asked questions
What is the best video to GIF converter? For most people, a browser-based gif converter is the best option because it requires no install and no account. privateconvert.org runs the conversion entirely on your device — nothing is uploaded, no watermark is added, and it works on Mac, Windows, iPhone, and Android.
How do I convert MP4 to GIF without losing quality? You will always lose some quality converting to GIF because the format is limited to 256 colors. The best approach is to use an optimized color palette (the FFmpeg two-pass method), set a frame rate of 15 fps rather than 30, and keep the clip under 10 seconds. For high-quality output from a browser, privateconvert.org uses an optimized palette generator on-device.
Why is my GIF so large? GIF’s compression is much less efficient than MP4. A few seconds of video becomes many megabytes. The main fixes are: trim the clip shorter, reduce the frame rate to 10–15 fps, scale the output width down to 600–800 px, and make sure you are not converting content with lots of color variation.
Can I convert a GIF back to MP4?
Yes. FFmpeg can convert GIF to MP4 with ffmpeg -i input.gif output.mp4. The resulting MP4 will have no audio and the quality ceiling is whatever was in the GIF — you are not recovering any of the original video quality.
How many colors does GIF support? GIF supports a maximum of 256 colors per frame. The format was designed for the graphics of the late 1980s and that limit was never removed. For UI recordings with flat colors and text, 256 colors is usually sufficient. For video footage, you will see visible banding, especially in gradients and skin tones.
Does converting video to GIF in the browser keep my file private? Yes, if the tool runs locally. At privateconvert.org, the conversion happens entirely in your browser using JavaScript. The file is never sent to a server, never logged, and never stored. This matters when converting screen recordings that contain private data, client information, or proprietary workflows.
What frame rate should I use for a GIF? 15 fps is the right default for most content. It is half the frame rate of standard video, which cuts file size significantly, but still plays back smoothly. Use 10 fps for slow-moving content like a cursor moving through a menu. Avoid 30 fps for GIFs unless smooth motion is critical — at 30 fps, file sizes climb very fast.
The fastest way to convert your video to GIF right now: open privateconvert.org, drop in your file, and export. The whole thing happens on your device in under a minute.
Try the tool
Video to GIF
Turn video into GIF in your browser with local processing, without uploads or watermarks.
ConvertRelated posts
AVIF vs JPG: which format should you use?
The AVIF format cuts file sizes by 50% compared to JPG at the same quality — but JPG still opens everywhere. This guide covers browser support, quality tradeoffs, a copy-paste <picture> snippet, and when to convert.
March 31, 2026 · 14 min read
Image Compression: How to Reduce File Size Without Losing Quality
A complete guide to image compression — lossy vs lossless explained, format-specific quality settings for JPEG, PNG, WebP, and AVIF, and how to compress images without losing quality.
March 31, 2026 · 10 min read
How to compress a video for Discord without wrecking quality
A practical guide to Discord's file size limits, the best compression methods (browser, HandBrake, ffmpeg, mobile), and when to share a link instead.
March 31, 2026 · 11 min read