Skip to content
ToolsOnDuty - free online tools
Video ToolsNovember 6, 2026

How to Trim Video and Create an Animated GIF in Your Browser

Select a short video range, verify a playable browser-encoded clip and create a real two-second GIF with measured dimensions, frame count and file size.

By ToolsOnDuty Editorial Team

Prepared two-second GIF preview with 240 by 134 dimensions and download control.

A short clip or looping GIF can explain a small interface interaction without sharing an entire recording. The useful workflow is to choose a precise intended range, select suitable output settings and inspect the result. Browser-based convenience does not mean every source codec is supported or every export preserves the original media exactly.

This guide uses ToolsOnDuty Video Trimmer & Video-to-GIF with an original animated demonstration we recorded. The input and exported files were not altered to manufacture a result. We verified video playback and parsed the actual GIF's dimensions, ten frames and two-second loop timing. The screenshots show the real range controls and prepared GIF.

Open supported media and keep the source file

Open Video Trimmer and choose a video you own or have permission to edit. The browser must be able to decode its codec and read a finite duration. A .mp4 or .webm extension alone cannot guarantee that support. The original stays separate from the prepared output, so keep it when you need to repeat or change the edit.

Input is limited to 100 MiB, ten minutes and 8,294,400 source pixels, with a maximum of 4,096 pixels per side. Our owned WebM animation was 320 x 180 pixels and the workspace reported approximately 2.971 seconds. Smaller test files are useful when establishing compatibility before attempting a larger recording.

Choose the intended start and end times

Set Start to 0.5 seconds and End to 2.5 seconds for the demonstration. Subtracting start from end gives an intended two-second range, not 2.5 seconds of output. Both values must lie within the source duration, and the end must be later than the start.

Video export accepts ranges from 0.1 through 60 seconds; GIF accepts 0.1 through 15 seconds, subject to additional frame and pixel limits. Changing the selected range clears a previously prepared result. Review the input preview and output filename before exporting, and remember that a chosen time range is a request, not a guarantee of frame-exact video boundaries.

Owned video preview with start 0.5 seconds, end 2.5 seconds, GIF size 240 pixels and frame rate five fps.
Actual selection on the owned animation: 0.5 to 2.5 seconds, with 240px and 5 fps chosen for GIF export.

Export and preview a video clip first

Click Export video clip and keep the tab visible. The tool re-encodes the selected range in real time rather than cutting the original compressed bytes losslessly. Video output has a 1,280-pixel maximum side and uses the browser's supported WebM or MP4 recording format. It is not a guaranteed MP4 converter.

Our tested output was a 320 x 180 WebM clip with VP8 and Opus MIME information and a file size of 16,821 bytes. We started its prepared preview and confirmed that playback time advanced. The source animation had no intended sound; sources without audio may receive a silent track. Results from another codec or browser can differ.

Create a smaller, silent looping GIF

For the same range, choose GIF maximum side 240px and GIF frame rate 5 fps, then click Create animated GIF. This prepares a new result and replaces the previously prepared video in the output area. Download a video you want to retain before switching to GIF, or export it again later from the unchanged source.

The actual GIF measured 240 x 134 pixels, contained ten frames with 200 ms delays, and had a two-second encoded loop. Its downloaded size was 26,481 bytes, shown as about 25.9 KB in the workspace. Height rounding to even dimensions explains why the 320 x 180 source became 240 x 134 rather than an exact 240 x 135.

Prepared animated GIF from the owned demo with 240 by 134 dimensions, a two-second loop and approximately 25.9 KB size.
Verified GIF export: 240 x 134, ten frames, two seconds and 26,481 downloaded bytes.

Balance frame rate, dimensions and the GIF limits

GIF frame rates are 5, 8, 10 or 12 fps, and maximum-side choices are 240, 360, 480 or 640 pixels. Higher values can make motion smoother or details easier to see, but they also increase work and often increase the file size. For a simple moving box, five frames per second was enough to demonstrate the workflow.

A GIF is limited to 120 frames and thirty million total frame pixels. Consequently, the fifteen-second duration allowance is not always available at every size and frame rate. Fifteen seconds at twelve fps would require 180 frames, exceeding the frame limit. If a valid-looking range is rejected, shorten it, lower fps or reduce dimensions rather than repeatedly retrying the same settings.

Check quality and timing instead of assuming lossless output

GIF export uses a 128-color palette, rounds delays to hundredths of a second, removes audio and loops continuously. Text and gradients may look different from the original, and GIF is not automatically smaller than video. In our example, the lower-resolution GIF was larger in bytes than the prepared WebM clip.

Video re-encoding can change compression, metadata and timing. Some browser recordings lack useful duration or seeking information until processed with suitable remuxing tools; this workspace does not perform that remuxing. For frame-accurate, lossless or production delivery requirements, choose an editor and output workflow designed for those requirements instead of treating this short-clip utility as equivalent.

Download before leaving and verify in the intended destination

Click Download prepared file while the desired output is visible. The extension follows the prepared format, so changing the filename cannot turn WebM into MP4 or restore audio to a GIF. Reopen the downloaded file and check its dimensions, visible content, timing and playback in the application where it will actually be used.

Output is limited to 32 MiB and the workspace has no autosave. Closing, reloading or navigating away can lose the in-memory result. Downloading to your computer is separate from publishing the file in a chat, website or document, and a looping preview may play differently in a destination that does not support animation.

Troubleshoot codec, visibility and resource problems

If input cannot be decoded, try a smaller known-supported file and confirm that its duration metadata is readable. Do not assume that renaming the extension will fix a codec or metadata problem. If loading fails while another video is open, read the status message; the tool is designed to leave the previous source unchanged.

Keep the tab visible during video export. Hiding it aborts recording instead of returning a potentially broken clip. You can cancel processing, and a failed export should not be mistaken for a new successful output. Processing remains local, but your browser still needs sufficient memory and supported media APIs; this workflow is not a promise of identical results on every device.

Apply the steps from this guide directly in your browser.

Frequently asked questions

Is video trimming lossless and frame accurate?

No. The selected range is re-encoded in real time with approximate boundaries. Preview the downloaded output before relying on its timing.

Will the exported video always be MP4?

No. The output is the recording format supported by the browser, such as WebM or MP4. Renaming the file does not convert the codec or container.

Why can a fifteen-second GIF range still fail?

Duration is only one limit. The GIF must also fit within 120 frames and thirty million total frame pixels; high fps or large dimensions can exceed those limits.

Does the GIF keep the original audio?

No. GIF has no audio and the exported animation loops continuously. Use an appropriate video output when sound is required.