This GIF editor rotates, flips and trims animated GIFs and converts them to video. Choose your GIF, pick the action and press the button. The new file keeps the animation, the timing and the looping. It runs in your browser, so your GIF is never uploaded.
How to use the GIF editor
- Choose your GIF.
- Pick an action: rotate, flip, trim or convert to video.
- For a trim, enter the start and the end in seconds.
- Press the button and download the result.
What a GIF is
Wikipedia describes the Graphics Interchange Format as a bitmap image format developed at CompuServe and released on June 15, 1987. A frame can use a palette of up to 256 colors. Version 89a added animation delays, transparent background colors and storage of application-specific metadata. The delay for each frame is stored in hundredths of a second. Each frame can mark one color as transparent. The pictures are compressed with the lossless LZW method.
Rotate and flip
Rotating turns every frame by a quarter turn clockwise or counterclockwise, or by half a turn, and flipping mirrors every frame from left to right or from top to bottom. A quarter turn swaps the width and the height, so a wide GIF becomes a tall one. The converter first rebuilds each full frame as the GIF shows it, because many GIFs store only the part of a frame that changed, and then turns that whole picture. The result keeps the delays and the transparency.
Trim
The trim option keeps only the frames that start inside the time range you give. A frame starts when the delays of the frames before it have added up, so the converter adds up the delays to find where each frame begins. Leave the end empty to keep everything to the end of the GIF. For example, a GIF with four frames that last 100, 200, 300 and 400 milliseconds has frames that start at 0, 100, 300 and 600 milliseconds. A range from 0.1 to 0.6 seconds keeps the second and third frames. Very short delays are treated as 20 milliseconds, so that every frame has time to show.
Looping
Wikipedia explains that the Netscape application extension sets how many times the frames are played, from 1 to 65,535 times, and that zero means loop forever. The converter keeps the loop setting of your GIF. A GIF with no loop setting plays once, and the new file does the same.
Convert to video
The video option writes an MP4 file, which Wikipedia describes as a digital multimedia container format most commonly used to store video and audio. The page lists H.264 among the widely supported video codecs. The converter uses H.264 where your browser can write it, and WebM where it cannot. Each frame lasts as long as its delay in the GIF. Video has no transparency, so a transparent GIF gets a white background, and the width and height are rounded down to even numbers, with a limit of 1,920 pixels on the long side. A video of a GIF is often much smaller than the GIF.
Limits
You can edit a GIF of up to 50 MB, up to 2,000 pixels wide or high and up to 1,500 frames. Very large animations use a lot of memory, since every frame is rebuilt in full, so for a big GIF, trim it or shrink it first with our GIF resizer. The output of a GIF edit is a new GIF, with up to 256 colors in each frame, so the colors can change a little from the original.
Choosing the right action
Use rotate when a GIF was made sideways, for example from a phone held the wrong way. Use flip to mirror a GIF, for instance to make text or a character face the other way. Use trim to cut a long animation down to the part you want, which also makes the file smaller. Use the video option when a site or an app does not accept GIFs, or when you want a much smaller file for sharing.
Reading the result
When the new file is ready, the result shows the size of the original, the size of the new file with its width and height, and the number of frames. A rotated or flipped GIF has about the same size as the original. A trimmed GIF is smaller, since it has fewer frames. A GIF turned into video is usually much smaller. Download the file and check it before you delete the original, since the colors of a GIF edit are rebuilt and can differ a little.
Privacy
The GIF is read and rebuilt on your device. It is not sent to a server, so you can edit personal animations without sharing them. Close the page when you finish, and the pictures are gone from the browser.
Common mistakes
- Entering the trim in frames. The start and the end are in seconds.
- Expecting transparency in the video. Video files have none, so the background is white.
- Choosing a GIF that is not animated. A single-frame GIF can be rotated, but it has nothing to trim.
- Using a huge GIF. Resize or trim it first.
What next
Use this often? Add GIF Rotator to your Home screen.
Frequently asked questions
What is a GIF editor?
A tool that changes an animated GIF, for example by rotating, flipping or trimming it, or by converting it to video.
How do I rotate a GIF?
Choose the GIF, pick Rotate 90° clockwise, counterclockwise or 180°, and press the button. Every frame is turned.
How do I trim a GIF?
Pick Trim to a time range and enter the start and end in seconds. Frames that start in that range are kept.
Can I convert a GIF to MP4?
Yes. Pick Convert to video. The converter writes MP4 with H.264 where your browser supports it, and WebM otherwise.
Is my GIF uploaded?
No. The GIF is edited in your browser.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.