BrowserTools
Advertisement
Home / Video / Rotate & Flip Video

Rotate & Flip Video

Rotate a video 90° or 180°, or flip it horizontally or vertically, locally in your browser.

Loading Rotate & Flip Video… If nothing happens, please enable JavaScript.

Rotating or flipping a video fixes one of the most common annoyances in everyday recording: a clip captured at the wrong orientation. Phones and action cameras decide which way is up from a motion sensor, and when that sensor guesses wrong, or when footage is imported from a camera that did not write the right rotation flag, you end up with a video that plays sideways or upside down. This tool turns the picture the way you need it (90° clockwise, 90° counter-clockwise, or a full 180°) and can also mirror it left-to-right or top-to-bottom.

Frequently asked questions

Is my video uploaded to a server?
No. Rotating and flipping happen entirely in your browser using a WebAssembly build of FFmpeg. The file is processed locally on your own device and the result is returned as a download, never transmitted over the network.
What is the difference between rotating and flipping?
Rotating turns the whole frame around its centre (90° or 180°), which is what you want when a clip plays sideways or upside down. Flipping mirrors the image instead: a horizontal flip swaps left and right, a vertical flip swaps top and bottom. Rotation keeps the scene correct; flipping produces a mirror image.
Will the audio stay in sync?
Yes. The audio track is copied across unchanged while only the video frames are transformed, so the sound stays exactly where it was. Because the audio is not re-encoded, there is no quality loss on the soundtrack.
Why does the file get re-encoded instead of just rewriting a rotation flag?
Some players honour a metadata rotation flag and some ignore it, so a clip that looks fixed on one device can still appear sideways on another. This tool physically rotates the pixels and re-encodes the video, which guarantees the orientation is correct everywhere, at the cost of a re-compression pass.
What format does it output?
MP4 with H.264 video, the most compatible combination across phones, browsers, and editors. If you need a different container or codec afterwards, run the result through the Video Converter.
Does flipping a video reduce quality?
Flipping and rotating themselves are lossless geometric transforms, but the video has to be re-encoded afterwards, which is a lossy step. The tool uses a sensible quality setting (CRF 23) so the difference is usually imperceptible, while the audio is copied without any loss at all.
Is there a file size limit?
There is no fixed limit, but the whole file is held in browser memory and re-encoded, so very large inputs (well over 1 GB) can run out of memory, especially on phones. For very large clips, a desktop tool will be more comfortable.
Does it work offline?
Yes, once the page and engine have loaded. The first operation downloads the FFmpeg core (about 30 MB), after which it is cached and the tool works without an internet connection.

About Rotate & Flip Video

Everything happens inside your browser using a WebAssembly build of FFmpeg. Your file is read locally, the frames are rotated or flipped, the video is re-encoded as MP4 (H.264), and the result is handed back to you as a download. Nothing is uploaded to any server, so the tool is safe to use with private recordings, work footage, or anything you would rather not send across the internet. The audio track is carried over unchanged, so the sound stays perfectly in sync.

There is a real difference between rotating and flipping, and it is worth knowing which one you want. Rotating turns the whole frame around its centre, so a sideways clip becomes upright while everything stays in its correct left-right relationship. Flipping (also called mirroring) reflects the image, which swaps left and right (horizontal flip) or top and bottom (vertical flip). A horizontal flip is handy for selfie-style footage that looks reversed, while rotation is what you reach for when a clip simply needs to be stood the right way up.

Why so many videos end up sideways

The sideways-video problem is a side effect of how phones record. A phone always captures its sensor data in one fixed orientation and then writes a small rotation tag into the file's metadata saying how the picture should be turned for playback. The actual pixels are never rotated during recording; the file just carries a note that says, in effect, turn me 90 degrees. This keeps recording fast and avoids re-processing every frame on a battery-powered device.

The trouble starts when something downstream ignores that note. Older players, some web browsers, certain editing programs, and many social platforms historically did not read the rotation tag, so they showed the raw sensor orientation: a clip that looked perfect in your phone's gallery suddenly appeared sideways once uploaded or imported. Because the metadata and the pixels disagreed, the same file could look correct in one app and wrong in another, which is exactly why this kind of bug felt so maddeningly inconsistent.

The robust fix, and the one this tool uses, is to bake the rotation into the pixels themselves and clear the ambiguity. By actually turning every frame and re-encoding, the resulting file looks the same no matter how clever or careless the player is about metadata. It is a little more work than flipping a flag, but it is the only approach that survives being passed between devices, websites, and editing tools that all disagree about whose job it is to read the rotation tag.

Advertisement
Advertisement
Advertisement