Skip to content

Free toolsAudio and video

MP4 to GIF

The first seconds of a video as a GIF that loops anywhere, with colours made for it.

This one runs on your credits. The first seconds of a video as a GIF that loops anywhere, with colours made for it.

Sign in and get 500 free credits every month — enough for many files — then drop the file in the workbench and run mp4 to gif there.

Pick a file below to see exactly what it would cost.

More free conversions, where you upload. The Fylane extension does the same work inside any upload form, on its own free share every day.About the extension

How to convert MP4 to GIF

  1. Drop the video.
  2. Pick the frame rate and width.
  3. Press Convert and download the GIF.

What happens to your file

The first fifteen seconds at most are decoded, resampled to your frame rate and width, and a 256-colour palette is computed from those frames before they are written — that palette, and a fine dither, is what keeps a GIF from banding. It loops forever, as GIFs do.

A GIF is a poor video format: a few seconds at 480 px is a few megabytes. For anything longer or sharper, share the MP4.

Questions

Can I choose which seconds?

Trim video first to the moment you want, then make the GIF from the clip.

Why fifteen seconds?

Past that a GIF is tens of megabytes that no chat app will send. The cap keeps the result usable; the report says when the video was longer.

Do this in code

curl -X POST https://api.fylane.dev/v1/jobs \
  -H "Authorization: Bearer $FYLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "<file id>",
    "operation": "video.to-gif",
    "options": {
      "fps": 12,
      "width": 480
    }
  }'

The same operation, video.to-gif — The first seconds of a video as an animated GIF with its own palette — fps and width yours, fifteen seconds at most. Upload first with the quickstart; every option is on the operations page. 500 free credits a month, then $5 per thousand.