If you have ever recorded a video on your phone and opened it on a desktop only to find it is sideways, or recorded with an action camera mounted upside down, or captured a selfie video that mirrors everything the wrong way, you need to change the video's orientation. This is one of the most common video fixes people need, and understanding the difference between rotation and flipping makes it much easier to get right the first time.
Rotation vs. flipping they are different operations
Rotation turns the entire frame clockwise or counter-clockwise by a fixed angle typically 90°, 180°, or 270°. When you rotate 90° clockwise, what was the left edge of the frame becomes the top edge. This is the fix for a video recorded in portrait mode that plays sideways in a landscape player, or one recorded while holding the phone upside down.
Flipping is a mirror operation. A horizontal flip (also called mirror) swaps left and right — text in the frame appears reversed, someone who was on the left of the frame is now on the right. A vertical flip swaps top and bottom. Flipping does not rotate the frame at all; it reflects it.
The two operations are independent but can be combined. Rotating 180° and then flipping horizontally, for example, produces the same result as flipping vertically. Most video tools let you apply both in a single pass.
Why phone videos are often sideways
Smartphones record video relative to the orientation of the device at the time of recording, but they store that orientation as metadata rather than actually rotating the pixel data. Most modern players — phones, smart TVs, and browsers read that metadata and rotate the display automatically. The problem occurs with older desktop software, certain video editors, and some web platforms that ignore rotation metadata and display the raw pixel data as recorded.
When this happens, a video recorded in portrait mode (phone held upright) appears sideways in a landscape player because the underlying pixel data is landscape the sensor is landscape and the portrait framing only existed as a metadata tag that the player ignored.
The fix is to bake the rotation into the pixel data itself, so no metadata is needed. That is what a flip and rotate tool does: it re-encodes the video with the rotation applied to the actual frames.
The 90° clockwise case the most common fix
If your video plays sideways with the top of the scene appearing on the right side of the player, the phone was rotated 90° counter-clockwise when recording. The fix is to rotate the video 90° clockwise. This is the single most common orientation fix.
If the top of the scene appears on the left side, the phone was rotated 90° clockwise when recording. The fix is to rotate 90° counter-clockwise.
The 180° case upside down footage
Action cameras mounted on helmets, handlebars, or selfie sticks often end up upside down. A 180° rotation fixes this. Because 180° rotation is equivalent to flipping both horizontally and vertically, some tools list it as a flip rather than a rotation the end result is identical.
The horizontal flip mirror correction
Front-facing cameras on smartphones often apply a horizontal flip automatically in the viewfinder so the preview looks like a mirror intuitive for selfies but surprising when you play the video back and your face appears mirrored. The raw recorded video may not have the flip applied, or it may have it permanently baked in depending on the app and platform.
If text in your video appears reversed, or you appear to be doing something with the wrong hand, a horizontal flip corrects it. One application is mirror shots: if you recorded yourself in front of a mirror and the text on your shirt reads backwards, flipping the video horizontally makes it read normally.
Quality considerations when rotating
Rotating 90° or 270° requires re-encoding the video because the pixel dimensions change a 1920×1080 video becomes a 1080×1920 video after a 90° rotation. This means the video is decoded, rotated, and re-encoded, which takes time and introduces a small amount of re-encoding quality loss.
Rotating exactly 180° does not change the pixel dimensions, so some tools can do it via stream copy simply remuxing with a rotation flag rather than re-encoding the pixel data. This is instantaneous and lossless. If your tool supports stream copy for 180° rotation, use it.
Horizontal and vertical flips also change the pixel data but not the dimensions. They can sometimes be done losslessly by reordering how pixel rows or columns are stored (depending on the codec), but in practice most browser-based tools re-encode for flips as well.
For most purposes, the quality loss from a single re-encode at a good quality setting (CRF 23 for H.264) is not perceptible. Where it matters is if you are working in a post-production pipeline and plan to re-encode the file again later each generation of re-encoding compounds the loss.
How to fix orientation without re-encoding at all
The cleanest option, if supported by your player or editing software, is to write a rotation flag into the video's container metadata without touching the pixel data. Tools like FFmpeg can do this with the -metadata:s:v rotate flag. The file stays exactly the same size, encoding is unchanged, and any player that reads rotation metadata will display it correctly.
The drawback is that not all players and platforms respect the metadata. For the broadest compatibility especially for social media uploads baking the rotation into the pixel data is more reliable.
Using MediaBrew to flip or rotate
The MediaBrew Flip and Rotate tool applies the transformation client-side using FFmpeg compiled to WebAssembly. Select rotate right (90° clockwise), rotate left (90° counter-clockwise), rotate 180°, flip horizontal, or flip vertical. A live CSS preview shows you what the output will look like before you commit to processing. The actual output is always re-encoded as H.264 MP4 for maximum compatibility, and nothing is uploaded to any server.