# Video to Animated WebP

Convert a short video clip to a looping animated WebP in your browser. Trim, resize, set fps and quality, or use lossless WebP with transparency preserved.

## Run it

- **CLI:** `gizza tool video-to-animated-webp 'url=https://example.com/input' 'start=0' 'duration=3' 'fps=12' 'width=480' 'quality=80' 'lossless=true'`
- **Web:** https://gizza.ai/tools/video-to-animated-webp/
- **Agents:** machine-readable descriptor (parameters JSON Schema) at https://gizza.ai/tools/video-to-animated-webp/tool.json

## Inputs

- `file` — Video _(file; accept: video/*)_
- `start` — Start (seconds) _(field)_
- `duration` — Duration (seconds, 0 = to the end) _(field)_
- `fps` — Frames per second (0 = default 12) _(field)_
- `width` — Width in px (0 = keep source size) _(field)_
- `quality` — Quality (0 = default 80) _(field)_
- `lossless` — Lossless WebP _(field)_

## Output

- Animated WebP (image)

## Query parameters

Open the tool pre-filled and auto-run via URL:

- `start` — Start (seconds)
- `duration` — Duration (seconds, 0 = to the end)
- `fps` — Frames per second (0 = default 12)
- `width` — Width in px (0 = keep source size)
- `quality` — Quality (0 = default 80)
- `lossless` — Lossless WebP
- `url` — fetch the input file from a public URL (CORS-permitting)

Example: `https://gizza.ai/tools/video-to-animated-webp/?url=https://example.com/input&start=0&duration=3&fps=12&width=480&quality=80&lossless=true`

---

## About this tool

Convert a video clip into a looping **animated WebP**. Animated WebP is a modern GIF alternative: it usually produces much smaller files, keeps smoother color, and can preserve transparency when the source has alpha.

Everything runs locally in your browser through ffmpeg WebAssembly. The video is not uploaded.

## Controls

- **Start** trims from a point in the video, in seconds.
- **Duration** limits the clip length. Leave it at `0` to encode from the start point to the end, but short clips are strongly recommended.
- **Frames per second** controls smoothness and size. The default is 12 fps; 8–15 fps is a good range for sharing.
- **Width** scales the output while keeping the aspect ratio. Height is rounded to an even value for codec compatibility.
- **Quality** controls lossy WebP quality from 0 to 100; the default is 80.
- **Lossless WebP** preserves detail and transparency without lossy quantization, but can be much larger.

## Worked example

For a one-second preview from the start of a 128 px video, use:

```text
start = 0
duration = 1
fps = 8
width = 96
quality = 75
lossless = false
```

The generated command uses ffmpeg's `libwebp` encoder, loops forever (`-loop 0`), drops audio, and writes `out.webp`.

## Tips

- Keep the clip short. Animated WebP is efficient, but long high-fps clips are still large.
- Downscale before raising compression. A 320 px WebP often looks better and weighs less than a full-size one at very low quality.
- Use lossy mode for camera/video content and lossless mode for transparent UI animations, stickers, and screen captures.
- If a platform does not animate WebP, convert the same source to GIF with the Video to GIF tool.

## Limits and edge cases

- Input videos are capped at **25 MiB** and outputs at **25 MiB**.
- `fps` accepts 0–60; 0 means the default 12 fps.
- `width` accepts 0–4096 px; 0 keeps source width.
- `quality` accepts 0–100; 0 means default 80 in lossy mode.
- Audio is intentionally removed.
- Browser support for animated WebP is broad in modern browsers, but older apps may still prefer GIF.

## FAQ

<details>
<summary>Why use animated WebP instead of GIF?</summary>

Animated WebP usually gives smaller files and better color than GIF because it is not limited to a 256-color palette. It can also carry alpha transparency, which makes it useful for stickers, UI captures, and short transparent motion graphics.

</details>

<details>
<summary>Will it loop?</summary>

Yes. The output is encoded with `-loop 0`, which tells WebP players to loop forever. That matches the default behavior people expect from GIF-style animations.

</details>

<details>
<summary>What quality should I choose?</summary>

Start with 75–85 for video content. Lower values make smaller files with more artifacts; higher values keep more detail. For transparent graphics or sharp UI, try **Lossless WebP** instead.

</details>

<details>
<summary>Can I keep the audio?</summary>

No. Animated WebP is an image animation format, like GIF, and has no audio track. If you need sound, export MP4 or WebM instead.

</details>

## Related tools

- [Video to GIF](https://gizza.ai/tools/video-to-gif/): Turn any video into an animated GIF right in your browser. Pick a section, set fps and width — high-quality palette, runs locally, nothing is uploaded, free.
- [Convert MKV to MP4](https://gizza.ai/tools/mkv-to-mp4/): Free MKV to MP4 converter that runs in your browser. Lossless stream-copy remux for H.264/HEVC clips, or re-encode VP9/AV1. Nothing is uploaded.
- [Convert MOV to MP4](https://gizza.ai/tools/mov-to-mp4/): Free MOV to MP4 converter that runs in your browser. Lossless container remux (stream-copy) for H.264/HEVC clips, or re-encode ProRes. Nothing is uploaded.
- [Convert MP4 to FLV](https://gizza.ai/tools/mp4-to-flv/): Convert MP4, MOV, MKV or WebM to FLV in your browser — H.264 or Sorenson Spark, AAC or MP3, with RTMP-friendly bitrate and keyframe controls. Nothing uploaded, free.
- [Convert MP4 to MKV](https://gizza.ai/tools/mp4-to-mkv/): Free MP4 to MKV converter in your browser. Lossless stream-copy remux — keeps video, audio and subtitle tracks, nothing re-encoded or uploaded.
