Video to WebP
Published Updated
Capture a video as an animated WebP at 5, 10 or 15 frames a second and three quality levels, scaled to at most 720 pixels wide and cut off at 450 frames. A 5-second test clip came to 1.03 MB at the middle settings.
Frames in, stills out
An animated WebP is a list of pictures with display times, as described in the WebP container specification. Here, the tool steps through the video at 1 divided by the Frame rate. How many pictures are shown per second, written fps. A GIF stores each frame's delay in hundredths of a second, so 10 fps is a 10-hundredths delay and 15 fps has to round to 7 hundredths, which plays at about 14.3 fps. Read the guide, draws each position on a canvas no wider than 720 pixels, and keeps the aspect ratio. A video narrower than 720 pixels is not enlarged. Each frame lasts 100 ms at 10 FPS, 200 ms at 5 FPS and 67 ms at 15 FPS.
What the settings cost
A 5-second, 1280 x 720 test clip (1,913,508 bytes as WebM) came out at 720 x 405. Measured in Google Chrome 156:
| Frame rate | Frames | Standard (50%) | High (75%) | Maximum (92%) | Time |
|---|---|---|---|---|---|
| 5 FPS | 25 | 415 KB | 514 KB | 1.13 MB | 3.8 s |
| 10 FPS | 50 | 831 KB | 1.03 MB | 2.27 MB | 7.7 s |
| 15 FPS | 75 | 1.25 MB | 1.54 MB | 3.40 MB | 11.6 s |
The clip is a panning, grainy photo, hard for a still-picture codec, so flat footage will be smaller. The 50%, 75% and 92% figures are the 0 to 1 quality value the browser's WebP encoder receives (MDN).
A second clip, measured in four engines
We ran the page's steps (seek to each frame, draw it on a canvas no wider than 720 pixels, ask the canvas for a WebP at the chosen quality, then join the frames with the site's own animated-WebP writer) on a generated MP4: 640 x 360, 4.14 seconds as the browsers read it, 634,269 bytes, a smooth animation with a gradient, a moving disc and a progress bar. The three engines that could make WebP were Chrome 156, Chromium 153 (Playwright build, not Google Chrome) and Firefox 155; one run per cell, sizes in bytes.
| Setting | Frames | Chrome 156 | Chromium 153 | Firefox 155 |
|---|---|---|---|---|
| 5 FPS, Standard | 21 | 51,316 | 51,982 | 52,208 |
| 5 FPS, High | 21 | 62,814 | 63,888 | 64,358 |
| 5 FPS, Maximum | 21 | 129,674 | 129,096 | 132,866 |
| 10 FPS, Standard | 42 | 102,680 | 104,404 | 104,758 |
| 10 FPS, High (default) | 42 | 125,974 | 128,408 | 129,396 |
| 10 FPS, Maximum | 42 | 261,224 | 262,304 | 269,188 |
| 15 FPS, Standard | 63 | 154,064 | 156,572 | 157,062 |
| 15 FPS, High | 63 | 189,066 | 192,500 | 194,062 |
| 15 FPS, Maximum | 63 | 391,586 | 392,950 | 402,774 |
The three engines differed by at most 3.0 percent at any setting. On this clip High cost 1.22 to 1.23 times Standard and Maximum 2.06 to 2.07 times High in Chrome 156, close to the doubling the photo clip above showed. Frames averaged 2,472 to 2,955 bytes at Standard, 3,051 to 3,526 at High and 6,313 to 6,714 at Maximum, so a smooth, flat picture costs far less per frame than the grainy one. Seeking, drawing and encoding took 28.9 to 71.5 ms per frame across the three engines.
Playwright's WebKit build (not the Safari app) made no file. Asked for WebP, its canvas returned a PNG, and the tool stopped at the first frame with its own message: this browser can't create WebP files, so nothing was saved.
What the quality setting does to the picture
We decoded two frames of every WebP back with the browser's ImageDecoder and compared them with the canvas frame each was encoded from. The average difference per color channel, on a 0 to 255 scale, was 1.25 to 1.45 at Standard, 0.96 to 1.24 at High and 0.56 to 0.87 at Maximum in the three engines. These are small numbers for a smooth clip; we did not measure detailed or noisy video.
- Every frame was stored as lossy VP8 (a
VP8chunk), with no alpha channel, as the page's opaque canvas intends. - The animation loops forever (loop count 0) and each frame lasts 200, 100 or 67 ms, so 63 frames at 15 FPS play for 4.221 seconds against 4.14 seconds of video.
- Two WebM clips gave the same picture size as the source: 640 x 360 (40 frames at 10 FPS) and, for a portrait clip, 360 x 640 (30 frames). Neither was enlarged.
- The frame count, the canvas size and the frame durations read back the same in an image decoder as the page wrote them.
Making an animated WebP
Step 1
Add a video
MP4, WebM and anything else your browser can play. A preview player shows the clip, its length and its size.
Step 2
Pick frame rate and quality
Defaults are 10 FPS and High. The number of frames is the clip length times the frame rate, rounded up, to a limit of 450.
Step 3
Convert and download
The page seeks to each frame, one by one, with a percentage as it goes. Sound is not included.
Limits that matter
- Width: 720 pixels at most. Height follows the ratio, so a 1080 x 1920 phone video becomes 720 x 1280.
- Frames: 450 at most, no matter how short the interval.
- Playback: the clip is loaded through a hidden video element, so it must be a format your browser can play.
- Other routes: for a GIF use Video to GIF; to shorten the clip first use Trim Video; to re-save an existing GIF use GIF to WebP.
Video to WebP questions
How long a video can I convert?
The frame cap of 450 sets the length: 90 seconds at 5 FPS, 45 at 10 and 30 at 15. Beyond that, the rest of the clip is dropped and no warning appears. Cut the video first with Trim Video.
Why is the WebP bigger than my video?
A video codec stores the differences between frames. This tool saves every frame as a separate lossy picture, so size grows in step with the frame count. At 10 FPS and High, the 5-second test clip took about 20.6 KB per frame.
Is there any sound in the result?
No. WebP images have no audio track, and the tool never reads the clip's sound. Use Video to GIF if you want another silent loop, or keep the video.
Which setting should I choose?
For the smallest file, 5 FPS with Standard gave 415 KB. For smooth motion, 15 FPS costs three times the frames of 5. Maximum quality more than doubled the size of High in every row, so it is rarely worth it.
Why does conversion take so long?
Each frame needs a seek in the video, a draw and an encode. In Chrome that took about 0.15 seconds per frame at 720 pixels wide, so the 75-frame run needed 11.6 seconds. If a seek takes more than 3 seconds, the tool stops waiting and draws whatever the player shows.
What happens in Safari?
Safari cannot create WebP images from a web page. The tool notices that a PNG came back, stops, and says nothing was saved. Use another browser for the conversion.
Will an animated WebP made here play in Safari?
In our test the WebKit build could not create the WebP, yet it opened a 125,974-byte WebP made by these steps in Chrome 156: its image decoder reported 42 frames, animated, 100 ms each, at 640 x 360. Chromium 153 and Firefox 155 read it the same way.
Do Chrome and Firefox make the same file?
Not byte for byte, but close. On our 4.14-second test MP4 the sizes in Chrome 156, Chromium 153 and Firefox 155 differed by at most 3.0 percent at any setting, and by 6.4 percent for a WebM clip. All three wrote lossy VP8 frames.
Does a 15 FPS WebP play at the right speed?
Close to it. Each frame is stored as 67 ms, so the 63 frames of our 4.14-second clip play for 4.221 seconds. WebP keeps frame times in milliseconds, while a GIF keeps hundredths of a second, which is why the same 15 FPS frames last 70 ms in a GIF.
Related guide
Making a GIF from a video: size, frame rate and quality. The guide sets animated WebP beside GIF and short video, with sizes for a 5-second clip at 5, 10 and 15 fps.