It happens to everyone. You grab your phone, hit record, and only realize afterward that you were holding it sideways or upside down. The result is a video that plays rotated 90 degrees, forcing viewers to tilt their heads or rotate their phones to watch it.
Why this happens in the first place
Modern smartphones have accelerometers that detect the phone's orientation. When you start recording, the camera app notes which direction the phone is facing and writes that information into the video file as a metadata flag called a rotation tag. The video pixels themselves are always recorded in the sensor's native orientation (usually landscape). The rotation tag tells video players to rotate the image when displaying it.
The problem occurs when this metadata is misread, stripped, or ignored. Some video players and editors respect rotation metadata. Others do not. When you upload a video to certain platforms, the rotation tag can be lost entirely, resulting in a video that plays sideways.
Additionally, if you start recording while the phone is mid-rotation, the accelerometer may record the wrong orientation. The pixels are fine, but the metadata says "rotate 90 degrees" when it should say "do not rotate," or vice versa.
The two types of rotation fixes
There are two ways to fix a rotated video:
Metadata rotation changes only the rotation tag without touching the video data. This is instant and lossless because no pixels are modified. However, some platforms and players will ignore the metadata again, and you are back to the same problem.
Pixel rotation actually re-encodes the video with the frames physically rotated. Every pixel is moved to its new position, and the video is saved as a new file. This is permanent and universal. No player can display it wrong because the pixels themselves are in the correct orientation. The downside is that re-encoding takes longer and introduces a marginal quality reduction.
For sharing on social media, messaging apps, and web platforms, pixel rotation is the safer choice. It guarantees the video displays correctly everywhere.
Common rotation scenarios
90 degrees clockwise fixes a video that was recorded with the phone held so the top edge faces right. This is the most common rotation fix for right-handed users who hold their phone naturally.
90 degrees counterclockwise fixes a video recorded with the top edge facing left. Less common but happens when left-handed users record one-handed.
180 degrees fixes an upside-down video. This happens when the phone was physically upside down during recording, which can occur with certain phone cases or car mounts.
How to rotate a video in your browser
The MediaBrew rotate tool fixes sideways and upside-down videos directly in your browser. Upload your video, select the rotation angle (90 clockwise, 90 counterclockwise, or 180 degrees), and download the corrected file. The tool performs pixel-level rotation, ensuring the result displays correctly on every platform and device.
The rotation is processed entirely on your device using FFmpeg WebAssembly. No file is uploaded to any server. The output is an MP4 file with the frames permanently rotated to the correct orientation.