No upload, 100% local, no account

How-to

Rotate a sideways video to the correct orientation

Videos recorded on smartphones held sideways often display rotated when shared because playback apps handle orientation metadata inconsistently. This guide shows how to permanently rotate your MP4 or WebM video directly in your browser so it plays upright on every device, player, and platform.

Step by step

  1. Open the video rotator and drop your video file. The tool shows a preview of the current orientation. Choose 90 degrees clockwise, 90 degrees counter-clockwise, or 180 degrees, plus optional horizontal or vertical flip and fine tilt adjustment (-45° to +45° with auto-zoom). If the video plays correctly on your phone but sideways when you share it, the rotation flag was not being honored by the receiving app, and rotating the file fixes this permanently.
    The video rotator with a sideways clip loaded, showing the rotation direction options
  2. Apply the rotation. The tool uses FFmpeg to re-encode the video with the correct frame orientation written into the file, not just a metadata flag. This means the output plays correctly in every media player, web browser and platform without needing any app to interpret the rotation hint.
  3. Download the corrected video and verify it plays correctly before deleting the original. The rotation is baked in: you can share the output directly via email, social media or messaging apps and it will display upright on any device. Video rotation runs locally inside your browser tab, so your clip never leaves your hardware.
    The corrected video in upright orientation, ready to download

Why videos record sideways in the first place

Phones record in the physical orientation of the camera sensor, which is typically landscape. When you hold the phone upright (portrait), the sensor still outputs landscape frames but writes a rotation flag in the video metadata telling players to rotate 90 degrees on playback. Apps that read this flag (the Photos app, most video players) show the video correctly. Apps that ignore it (many web platforms, some editing tools and older players) show the raw sensor output, which is sideways. Baking the rotation into the frames, which is what the rotator here does, eliminates the dependency on any app reading the flag.

FeatureContainer Flag tkhd (External Tools)Browser Pixel Re-Encode (FFmpeg WASM)
Encoding speedInstant Stream Copy (Not Used Here)Re-Encodes Frames (H.264 / VP8)
Processing modeHeader-Only (Ignored by Some Players)Bakes Upright Pixels + Flip / Tilt
ReferenceModifies 9-Value Matrix in tkhdRotates Pixel Buffer (transpose / rotate)
Opens everywhereModern Players (VLC, iOS, Mac)100% Universal (Legacy TV, Web)

Rotation versus re-encoding quality

Rotating video in software re-encodes the frames, which introduces some quality loss if the codec is lossy (H.264, H.265, VP9 all are). The loss is minimal at the default quality settings and usually not visible, but it is not zero. If you need to preserve the highest possible quality (for a master file or professional delivery), note that some tools offer a lossless rotate for certain formats, but this only works in players that honor the rotation flag. For everyday sharing and web upload, the re-encoded output from this tool is indistinguishable from the original.

FeatureWindows Media Player QuirkChrome HTML5 <video> QuirkSocial Upload (Twitter/Discord)
BreakdownIgnores Rotation Matrix TagRespects Matrix TagMay Strip Metadata on Upload
Processing modeRe-encode Pixels with TransposeDirect In-Browser PlaybackHard-Bake Rotation into Pixels
ResultUpright on Old Windows 10Correct Orientation in FeedConsistent Orientation Everywhere

Metadata rotation vs. pixel re-encoding: two different operations

There are two technically distinct ways to rotate a video. The first writes a rotation value into the file container's metadata, typically the rotate tag in an MP4 or MOV file's track header, without touching the compressed video stream itself. This is instant and lossless but only works if the player or platform reads that tag; many social networks and older software ignore it and display the video sideways anyway. The second approach, pixel re-encoding, physically decodes every frame, rotates the raw pixel matrix by 90, 180, or 270 degrees, and re-encodes the video stream from scratch. This guarantees correct display on any platform regardless of metadata support, but it takes processing time proportional to video length and quality, and introduces one generation of re-compression artifacts unless you use a lossless codec. FFmpeg handles both modes: for metadata-only rotation it uses -c copy with a metadata flag; for re-encoding it applies the transpose or rotate filter and re-encodes through the chosen codec.

The tools used in this guide

Frequently asked questions

Will the rotated video still play on my phone after conversion?

Yes. The output is a standard MP4 or WebM with the frames physically in the correct orientation. Because the rotation is in the frames rather than a metadata flag, any player on any device will show it correctly, including your phone. The file size may differ slightly from the original due to re-encoding.

My video is upside down, not sideways. Can I fix that too?

Yes: choose the 180-degree rotation option. This flips both the horizontal and vertical axes, correcting an upside-down video. The same process applies: the rotation is baked into the frames, so the output plays correctly everywhere without needing the player to flip it on display.

Sources