★ Every tool runs 100% in your browser. Nothing is uploaded, ever

Edit

Rotate or Flip a GIF

Drop in a GIF and fix its orientation: turn it 90, 180 or 270 degrees, mirror it horizontally or flip it vertically, or combine a flip and a turn. Every orientation this tool makes is an exact move of the GIF's own pixels, with no resampling and no softened edges, and every frame's delay and the loop are preserved exactly. Everything runs in your browser; nothing is uploaded.

Your GIF and its orientation

The GIF

Drop a GIF here or

You can also paste a GIF copied from elsewhere. It never leaves this tab.

Turn (rotate)

A quarter turn (90° or 270°) swaps the width and height. 180° keeps them and puts the picture upside down.

Flip (mirror)

The flip is applied first, then the turn. Together the two groups reach all eight orientations a frame can have: four turns, each with or without a mirror.

The turn itself never changes a colour; the palette is for the re-encode that follows it, built from the turned frames. A GIF whose frames already fit in 256 colours comes through the palette exactly.

Dithering only matters when the palette has to reduce a GIF with more colours than the count above; it spreads the rounding error across neighbouring pixels.

Preview and download

The preview will appear here.

The preview plays the turned frames at the GIF's own delays, and after a download is built it plays the actual output file, so what you see playing is exactly what was saved.

How it works

  1. Load your GIF. Drop it in, pick it, paste it, or keep the built-in sample. Its frames, dimensions, delays and loop setting are read and shown before anything changes.
  2. Pick the orientation. Choose a turn, a flip, or one of each. A frame has exactly eight orientations: the four quarter turns, each with or without a mirror. The two groups above cover all eight, the flip is applied first and then the turn, and the preview replays the GIF in the chosen orientation as you click.
  3. Check the result line. It states the output dimensions before you download, and says plainly when a quarter turn swaps them: a 320 × 240 GIF turned 90 degrees comes out at 240 × 320.
  4. Download. The tool encodes a new GIF with the original delays and loop, then re-reads the file and checks its dimensions, frame count, every delay and the loop before the download appears.

The honest notes

Limits, stated up front

A worked example, measured

The built-in sample is a 320 × 240 GIF with 12 frames playing 1.20 s per loop (16.7 KB), drawn lopsided on purpose: a sun in the top left corner, the word UP and an arrow at the top, a green ground strip along the bottom and a frame number in the top right. Turned 90 degrees clockwise, the tool's opening setting, the download came out at 27.2 KB using 68 colours, at 240 × 320 px: the ground runs down the left-hand side, the sun sits at the top right, and every delay and the loop came through unchanged. Mirrored horizontally instead, with no turn, it came out at 23.2 KB using 68 colours at the same 320 × 240 px, with the sun in the top right and the word UP reading backwards. Both outputs are bigger than the file they started from, because the sample is stored as compact changed patches while the tool rebuilds every frame in full; the FAQ below explains why that happens. Both numbers are the sizes of the actual files those runs produced, and both files were re-read and checked by the tool before the downloads appeared.

Questions people ask about rotating and flipping a GIF

What is the difference between rotating and flipping?

Rotating turns the whole picture around its centre, in quarter turns. The picture ends up sideways or upside down, but everything in it still reads correctly: turn your head and the text is fine. Flipping mirrors the picture instead, the way a mirror or a reflection in water does. A horizontal flip swaps left and right, a vertical flip swaps top and bottom, and in both cases text, numbers and logos come out reading backwards. So if a GIF was recorded sideways, rotate it; flipping cannot fix a sideways GIF, it can only mirror it.

Can I rotate a GIF by an arbitrary angle?

Not here, and the reason is the shape of the job, not a missing button. A turn by any angle that is not a multiple of 90 degrees cannot move whole pixels: every pixel would have to be resampled, which softens edges, and the turned rectangle's corners would fall outside the frame, so the tool would have to choose between cropping the corners off and padding the gaps with a fill colour. This page only does the turns and mirrors that move every pixel exactly, so what comes out is your picture, rearranged and nothing else.

Are frames, delays and the loop count preserved?

Yes. Every frame is turned, each frame keeps its original delay, and the loop setting is copied over exactly, whether the GIF loops forever, a set number of times, or plays once. Before the download appears, the tool re-reads the finished file and checks its dimensions, frame count, every delay and the loop against the original. The one thing that can change is the canvas size: a 90 or 270 degree turn swaps the width and height, which the readout states before you download.

How do I flip a GIF vertically or mirror it?

Use the Flip group above. Mirror horizontally swaps the left and right sides, the classic mirror image. Flip vertically swaps the top and bottom, so the picture stands on its head without turning sideways. A vertical flip gives the same result as turning 180 degrees and then mirroring horizontally; here it is one click instead of two settings. Flips compose with the turn as well: pick a flip and a turn and both are applied, the flip first.

Why is the rotated GIF a different file size?

Two reasons. First, GIF compression works along each row of pixels, so the same pixels in a different arrangement compress to a different size; a sideways picture simply has different rows. Second, this tool rebuilds every frame as a full picture, while many GIFs are stored as small changed patches on top of the frame before, so a rebuilt file can come out larger than the original even though it holds exactly the same pixels. The status line after each build states the exact before and after sizes, and if the result is too big, the GIF Compressor is the follow-up step.

Is my GIF uploaded to a server?

No. Your GIF is decoded, turned and re-encoded by JavaScript running in your own browser tab, and the download is generated on your device. Nothing is sent to a server, which you can confirm by loading this page and then switching off your network: the tool keeps working.

Related tools

Turning a GIF is usually one step in a longer job. These MotionGIF tools cover the steps that tend to come before or after it:

Browse all MotionGIF tools →