Skip to content
docsmall
Credits left today

Contact us

For feature suggestions, usage questions, or credit and order issues, email us at the address below.

Send email

Free Online GIF Trimmer

Cut a clip from a GIF by dragging the frame timeline

docsmall trims GIFs entirely in your browser. Load one GIF (up to 25 MB and at least 2 frames), drag both handles to set the start and end frames, preview the selected range, then download <name>_trim.gif. The file is never uploaded.

Choose or drop a GIF to trimDrop a GIF here, or use the button belowOne GIF, up to 25 MB, at least 2 frames. GIF only

Price
Free, no sign-up
Processing
In the browser, no upload
Input limit
1 GIF, 25 MB max, at least 2 frames
Output
New GIF with delays and looping kept

Trimming keeps one continuous range of frames and writes those frames, in their original order, into a new GIF. Frames before the start handle and after the end handle are left out.

  • Frame-accurate range: both handles snap to frame boundaries, and the readouts show the time and frame numbers of the selection.
  • Preview first: for any range short of the whole GIF, the browser rebuilds the clip locally and replaces the preview; the download uses that same preview.
  • Independent result: the source stays unchanged and the download is named <name>_trim.gif. With the full range selected, the original file is downloaded without recompression.

How to trim a GIF online

Load one GIF, drag the two handles to set the start and end frames, check the preview, then download the new GIF. Everything runs locally in your browser.

  1. Choose one GIF

    Click the upload area, drop a GIF onto it, or focus the area and press Enter or Space. The file must be a GIF of 25 MB or less with at least 2 frames; a single-frame GIF has no time range to trim.

  2. Set the start and end frames

    The two handles control the first and last frame and start on the full range. Drag them, or focus a handle and use the arrow keys, Home or End. The readouts show times and frame numbers, and at least one frame stays selected.

  3. Preview and download

    Release a handle and the browser regenerates the selected clip in the preview. Select Download GIF to save <name>_trim.gif. The button stays disabled until the preview matches the current range.

GIF trimming guide

What a trimmed GIF keeps, why the range snaps to frames, how preview and download relate, how quality and looping are handled, and which limits apply.

What does trimming a GIF produce?

Trimming keeps one continuous range of frames from the source GIF and writes them, in order, into a new file. Frames before the start handle and after the end handle are dropped.

Both handles align to frame boundaries, so a clip never begins halfway through a frame. The selected duration runs from the start of the first selected frame to the end of the last one.

The result is an independent GIF, not a playlist or a set of edit marks. The original file is not modified and stays on your device.

  • The output holds the frames inside the selected range, though optimization can merge identical consecutive frames.
  • Frame order, frame delays and looping are kept as closely as the source allows.
  • The download is named <name>_trim.gif; the source file keeps its original name.

Why select frames instead of seconds?

A GIF timeline is the sum of individual frame delays, and those delays are often uneven. Entering a time in seconds would need to be rounded back to a frame anyway.

The handles map positions to frame numbers, and the readouts show both time and frame number, so the downloaded range matches what you see.

When you need a precise moment, check the total frame count and duration, then move to the matching frame. Arrow keys step one frame at a time.

  • GIFs with variable delays cannot be converted with duration × frame rate.
  • Frame numbers are the reliable way to describe a range to another person.

Is the preview the same file I download?

Yes. When you select some frames, the preview is regenerated for that range; the download button saves exactly the previewed result without processing it again.

While you drag, the preview updates after a 140 ms debounce; releasing the handle requests the current range immediately. The Download button is disabled while Updating preview… is shown.

Returning to the full range restores the original GIF and revokes the clip preview, so no unnecessary re-encoding happens. In that state the download is the original file.

  • The preview summary shows the actual output frame count, duration, and size.
  • If you drag again quickly, only the range you released last is kept; older responses are discarded.
  • The preview lives in memory only, so reloading the page requires choosing the file again.

Does trimming change quality, frame delays or looping?

Trimming a subset expands and rebuilds the selected frames, then applies structural optimization. It is a lossless rearrangement of frames and colors, not lossy compression.

Frame delays and the original loop count are preserved where possible; if processing adds a loop setting the source did not have, the tool falls back to rebuilding with the original loop count.

Expanding and rebuilding gives the result a full canvas, so the first frame of the clip does not depend on earlier frames of the original animation.

  • Quality: colors are not merged again, so a normal GIF does not lose colors when trimmed.
  • Duration: the selected duration includes the delay of the last frame and matches the on-screen readout.
  • Looping: play-once and infinite-loop behavior is kept.
  • Size: re-encoding and optimization can change the file size slightly.
  • Unusual files: a few GIFs that mix local colors and transparency need color merging first, which can limit them to 255 colors; ordinary GIFs never take this path.

Why can the output have fewer frames than I selected?

The last step applies structural optimization. If the source has identical consecutive images, they may be merged into one frame with added delays; playback looks the same but the stored frame count drops.

This is not frame loss: the merged clip still covers the selected duration and shows the same pictures. Use frame-by-frame export when you need every stored frame preserved.

If the difference is large, check the source with the GIF frame splitter to count the frames it really contains before blaming the trim.

How many GIFs can I trim at once?

One. The input does not allow multiple selection, and dropping more than one file shows a message that only one GIF can be chosen at a time.

The file must be a GIF of 25 MB or less with at least 2 frames. Still images, animated WebP, APNG and MP4 are rejected because they are not GIFs.

To trim several GIFs, download the current result, clear the editor, and choose the next file; clearing frees the memory used by the source and preview. If you simply need to process several files at once, the GIF compressor accepts up to 30 GIFs in one batch.

  • Input: one GIF, 25 MB maximum, at least 2 frames.
  • Output: GIF named <name>_trim.gif.
  • Processing: in the browser, with no upload.

Is my GIF uploaded to a server?

No. The browser reads the file, parses frame structure on the page, and trims there too; results exist only on the current page.

The source file, previews and downloads are never sent to docsmall servers, and no server task is created.

The result exists only in page memory. Refreshing, closing the tab or switching devices loses it, so download the GIF you need first.

Limits, compatibility and things to watch

The tool handles GIF only, one file at a time, 25 MB maximum, at least 2 frames. It does not crop, resize, change speed, reverse or split frames: use the GIF cropper to reframe, the GIF resizer to change dimensions, and the other GIF tools for speed, reversal or frame export.

Trimming keeps one continuous range. It cannot remove frames from the middle and stitch the rest together; split the GIF into frames and rebuild it if you need that.

Large frame counts and big canvases need more memory and time, and the first expansion can be noticeably slow. On low-memory devices, compress or resize the GIF first.

To turn the whole animation into still images, use the GIF frame splitter; to reduce the file size or change playback speed, use the GIF compressor or the GIF speed tool.

How each trim range is handled

The same tool takes different paths depending on the range you select, so output frame count and whether frames are regenerated change too.

Full range

Preview
Original GIF shown directly
Output
Original file, not recompressed
Best for
Inspecting a file or saving it unchanged

Partial range (2+ frames)

Preview
Regenerated for the selected range
Output
New GIF with delays and looping kept
Best for
Removing the intro or outro and keeping a highlight

Single frame (start = end)

Preview
One-frame GIF generated
Output
1-frame GIF with that frame's delay
Best for
Extracting one picture or a still thumbnail

6 habits for an accurate GIF trim

Trimming takes three steps; most mistakes come from judging the range and managing files. These habits reduce rework.

Check the total frames and duration first

After loading, read the total frame count and original duration before choosing handles. For GIFs with uneven delays, duration × frame rate is not the frame count.

Describe ranges by frame number

Write down the start and end frame numbers. A note such as “start at 2 seconds” drifts when the frame rate or delays differ.

Wait for the preview before downloading

The clip is generated shortly after you release a handle. While Updating preview… is visible, the download button stays disabled; it enables when the current range is ready.

Keep the source GIF

The tool only outputs the trimmed clip and cannot restore discarded frames. Keeping the original is more reliable than editing a result repeatedly.

Shrink very large GIFs first

GIFs close to 25 MB or with many frames take longer to expand and preview. Resize the canvas with the GIF resizer or cut the size with the GIF compressor, then trim the lighter file.

Download before closing the page

The source, preview and result live in page memory only. Refreshing or closing the tab loses them, so save <name>_trim.gif first.

GIF trimming questions

Is this GIF trimmer free?
Yes. It is free to use with no sign-up. The limits are one GIF at a time, 25 MB per file, and at least 2 frames.
Is my GIF uploaded to a server?
No. The browser reads and trims the file locally; the clip stays in page memory, and neither the original nor the result is sent to docsmall.
Which formats and limits apply?
GIF only, one file per trim, 25 MB maximum, at least 2 frames. Animated WebP, APNG, MP4 and still images are rejected because they are not GIFs.
Can I trim several GIFs at once?
No. The input accepts one GIF at a time. Download the current clip, clear the editor, then choose the next file; there is no batch queue on this page.
Why does a single-frame GIF fail?
A GIF with one frame has no time range to select. The tool reports this directly; use an image tool if you only need that still frame.
Can I type start and end times in seconds?
No. The range is set with frame-aligned handles and keyboard steps. The readouts show times for reference, but the selection and output follow frame numbers.
Is the preview the same file I download?
Yes. For a subset of frames, the download button saves the previewed result; for all frames, it saves the original file without recompressing.
Does trimming reduce image quality?
Ordinary GIFs do not have colors merged again. Selected frames are expanded, rebuilt, and structurally optimized, which is lossless for frame data and does not apply lossy compression.
Are frame delays and looping preserved?
It preserves them where possible. If processing adds a loop setting the source did not have, the tool falls back to rebuilding with the original loop count, keeping “play once” or “loop forever”.
Why are there fewer frames than I selected?
Structural optimization can merge identical consecutive images into one frame and add their delays. Playback duration and appearance stay the same, but the stored frame count drops. No frames are lost.
How is this different from splitting a GIF into frames?
Trimming keeps one continuous range as a playable GIF. The GIF frame splitter exports every frame as a separate image.
Can I keep just one frame?
Yes. Move both handles to the same frame; the tool generates a 1-frame GIF that keeps that frame's delay. The download still uses the .gif extension.
How long are results kept?
Only until the page is refreshed or closed. Everything stays in page memory, so download <name>_trim.gif before leaving.
Does it work on a phone?
Recent mobile browsers can run it. Phone memory is limited, and very large GIFs are more likely to stall during preview; start with a smaller file.