OfflaneAI

Video to GIF —
trim, resize, done in seconds

Drop a video, choose the start and end, the width and frame rate, and get a GIF ready for Slack, Discord, GitHub or social media. Frames are captured and encoded in your browser — the video is never uploaded.

  • 🎞️ MP4, MOV, WebM in
  • ✂️ Trim, resize, frame rate
  • 🔒 Video stays on your device
  • 💸 Free, no watermark

Loading the tool… (JavaScript required)

How do I keep the GIF small?

Three levers: width (480 px is plenty for chat), frame rate (10 fps looks smooth enough) and length (2–6 s loops). Fewer colours (128) saves another 20–30%. A 5-second 480 px clip at 10 fps is usually 2–4 MB.

Why is my GIF larger than the video?

GIF is a 30-year-old format with no real video compression — every frame is stored almost fully. That is normal. For sharing where video is allowed, keep the MP4; use GIF where only images autoplay.

Which videos work?

Anything your browser can play: MP4 (H.264), MOV from iPhone, WebM, most MKV. Clips up to 30 s are converted; for longer videos pick the best moment with the start/end sliders.

How to turn a video into a GIF

  1. Add the video. Drop an MP4, MOV or WebM file on the upload area. It opens in a player with its size, resolution and length underneath.
  2. Mark the moment. Drag “Start” to where the loop begins and “End” to where it stops. The player jumps to the position you drag to, and the label shows the clip length. A new file starts with the first 5 seconds selected.
  3. Set Frame rate, Width and Colours. The defaults are 10 fps, 480 px and 256 colours.
  4. Press “Make GIF”. The button shows how many frames will be captured. Progress runs in two stages, “Capturing frames” and “Encoding GIF”. “Stop” cancels the capture.
  5. Check and download. The finished GIF plays below with its pixel size, frame count and file size. Change a setting and make it again if it is too heavy, then press “Download GIF”.

What the converter does with your clip

The browser's own video player does the decoding. The tool moves the player to each frame time in turn, copies the picture onto a canvas at the chosen width and keeps the pixels. When all frames are collected, a background thread reduces each one to its palette and writes the GIF.

Three properties of that process explain what you get:

  • A palette per frame. Each frame gets its own set of up to 256 colours, chosen from that frame alone. A scene change does not drag the colours of the previous shot along.
  • No dithering. Every pixel is set to the nearest palette colour without a dot pattern. Flat areas stay clean and compress well; smooth gradients such as sky, skin in soft light or dark shadows can show bands.
  • Whole frames. Each frame is stored completely, not as a difference from the one before. That is simple and reliable, and it is also why the file grows in direct proportion to the number of frames.

The GIF is set to loop forever and carries no sound, because the format has none.

The settings one by one

Start and End

Both sliders move in steps of 0.1 second across the whole video. They keep at least half a second between them: dragging one past the other pushes the other along. The player shows the frame at the position you drag to, so you can see exactly where the loop will begin and end.

Frame rate

The slider goes from 5 to 20 fps. Higher values look smoother and add frames, and therefore weight, one for one.

GIF stores the pause between frames in hundredths of a second. At 5, 10 and 20 fps the pause is a whole number of hundredths and the GIF plays at exactly the original speed. Other values are rounded, so playback can run a few percent fast or slow; 15 fps, for example, plays at about 14.3.

Width

The list offers 240, 320, 480, 640 and 800 px and hides values wider than the video. The height follows the aspect ratio. The picture is never enlarged. Width is the strongest control over file size, because halving it cuts the number of pixels in every frame to a quarter.

Colours

Choose 256, 128 or 64 colours per frame. Screen recordings, diagrams and cartoons use few colours anyway and usually look the same at 64. Filmed footage needs 256 to keep gradients from breaking into bands.

Length and frame limits

A GIF from this tool holds at most 30 seconds and at most 300 frames, whichever is reached first.

Frame rateLongest GIF
5–10 fps30 s
12 fps25 s
15 fps20 s
20 fps15 s

If the selection is longer, the GIF starts at “Start” and ends when the limit is reached. The number on the “Make GIF” button tells you how many frames will be used.

Settings by destination

Where it goesWidthFrame rateColoursLength
Chat reaction or meme320–480 px10–15 fps2561–3 s
Team chat demo of a feature480–640 px10 fps1283–8 s
GitHub README or issue640–800 px5–10 fps64–128Up to 15 s
Email newsletter320 px10 fps1282–4 s
Presentation slide640 px10–15 fps2563–6 s
Sports or gaming highlight480 px20 fps2562–4 s

GitHub accepts images and GIFs up to 10 MB in READMEs, issues and comments. For a screen recording, a low frame rate and few colours buy the width that keeps interface text readable.

Which videos convert well

SourceResultAdvice
Screen recording, app demoSharp and small640–800 px, 5–10 fps, 64 colours
Cartoon, animation, game with flat coloursVery good128–256 colours
Person talking, steady cameraGood480 px, 10 fps
Handheld footage, fast action, water, confettiHeavy fileKeep it under 3 s or lower the width
Dark scene, sunset, studio backdropVisible colour bands256 colours; consider sharing a video instead
HEVC video from a recent phone or cameraMay not open in some browsersSee Troubleshooting

Prepare the clip first

Crop to the subject

There is no crop control here, and every pixel you keep costs bytes. Cut the frame down to the part that matters with the video cropper, then make the GIF from the cropped file. A cropped 480 px GIF shows the subject larger than a full-frame one at the same weight.

Speed up long processes

A two-minute process does not fit into 30 seconds. Run it through the video speed changer at 4× first, then convert the shortened clip.

Burn in captions

A GIF is silent, so speech is lost. If the words matter, add them to the picture with the subtitle tool before converting, and use at least 480 px so the text stays legible.

GIF or video

GIFMP4 or WebM
Colours256 per frameMillions
SoundNoYes
Plays by itself and loopsAlmost everywhere an image is shownDepends on the app
Size of a 5-second clipMegabytesOften a few hundred kilobytes
Works in email, README files, forums, slidesYesOften not

Use a GIF where only images are allowed or where the loop must start without a click. Where video is accepted, send video. To turn an existing GIF into a small video for Instagram or a messenger, use the GIF to MP4 converter.

Limits worth knowing

  • No sound, by definition of the format.
  • No cropping, captions, speed change or reverse playback inside this tool.
  • One frame rate for the whole GIF. Every frame gets the same pause.
  • No size optimiser. Dedicated GIF optimisers store only the changes between frames and can produce smaller files from the same clip.
  • Memory. Captured frames wait uncompressed until encoding starts. At 800 px and 300 frames that is several hundred megabytes, which can be too much for a phone. Lower the width or the frame count there.

How it runs on your device

Decoding is done by the browser's video player and encoding by gifenc, an open-source library under the MIT licence, in a background thread. No AI model is involved and nothing is downloaded beyond the page. The video file is opened from your disk and never transmitted, so a recording of an internal dashboard or an unreleased feature can be turned into a GIF without leaving your computer. Any current browser that can play the file will work; graphics hardware makes no difference to this tool.

Troubleshooting

The video does not open

If the player stays empty and no settings appear, or the message “Could not decode this video in the browser” is shown, the built-in player cannot read the file. For an MKV file, repack it as MP4 with the video converter. For HEVC video from a phone, open the page in Safari or in a recent Chrome or Edge with hardware HEVC support, or export the clip as H.264.

The GIF ends before my End point

The 300-frame or 30-second limit was reached. Lower the frame rate or shorten the selection.

It plays slightly faster or slower than the video

The frame rate was rounded to hundredths of a second. Use 5, 10 or 20 fps for exact speed.

Capturing frames is slow

Each frame requires the player to jump to a new position, and large 4K files jump slowly. If a jump takes longer than 1.5 seconds, the tool takes the picture that is on screen, which can produce repeated frames. Make a 720p copy with the video compressor and convert that.

Skies and shadows show stripes

That is the 256-colour limit without dithering. Keep Colours at 256, avoid large gradients in the frame, or share the clip as a video.

The file is too big for the app

Reduce Width first, then the length, then the frame rate, and Colours last.