Rotate Video
Rotate a sideways phone video 90°, 180° or 270°, or flip it. MP4 and MOV rotations are lossless: only the rotation flag changes. Nothing is uploaded.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Rotate Video
Rotate a video 90°, 180° or 270°, or flip it, in your browser. MP4 and MOV rotations are lossless (only the rotation flag changes); flips are re-encoded.
Rotate Video turns a sideways or upside-down video 90°, 180° or 270°, or mirrors it, inside your browser. For MP4 and MOV files a rotation is lossless: the tool rewrites only the display matrix in the track header (ISO/IEC 14496-12), so every frame and the audio stay byte-for-byte identical. Flips and other formats are re-encoded with FFmpeg. For flips, and for formats other than MP4 and MOV, it downloads the FFmpeg engine (about 31 MB) from unpkg.com once; your video stays in your browser.
How to use Rotate Video
- 1
Choose a video under 1 · Video and preview (MP4, MOV, M4V, WebM, MKV, AVI or 3GP); it appears in the player and the tool reads any rotation flag the file already has.
- 2
Press Left 90°, Right 90°, 180°, Mirror or Upside down until the preview looks right. Each press is relative to what you see now, and Reset undoes everything.
- 3
Read the method box: Lossless for a pure rotation of an MP4 or MOV, or Re-encode to MP4 for flips and other formats, where you can pick the Quality (Best quality, High quality or Smaller file). Tick Re-encode anyway if a player ignores rotation flags.
- 4
Press Save rotated video (or Re-encode and save). A re-encode shows a progress bar and can be stopped with Cancel or the Esc key.
- 5
Check the result in the player under the button, then press Download to save the file, named after the original with -rotated added.
Why use Rotate Video
Lossless rotation for MP4 and MOV
A 90°, 180° or 270° turn rewrites 36 bytes of the file header. The result is the same size as the original and is ready almost at once, because the video itself is never decoded or loaded into memory.
Live preview before you save
Every rotate and flip shows on the player straight away, relative to how the video looks now, so you can check it before exporting.
Flips and stubborn files re-encoded
Mirror and upside-down flips, WebM, MKV and AVI go through FFmpeg's transpose, hflip and vflip filters to an H.264 MP4, keeping the sound.
Private by design
The video is read straight from your device and never uploaded. A lossless rotation sends none of it anywhere; a re-encode only downloads the FFmpeg engine (about 31 MB) the first time.
Rotation flags in MP4 and MOV files
| Turn (clockwise) | Matrix a, b, c, d | FFmpeg reports | Re-encode filter |
|---|---|---|---|
| 0° | 1, 0, 0, 1 | no display matrix | none |
| 90° | 0, 1, −1, 0 | rotation of -90.00 degrees | transpose=1 |
| 180° | −1, 0, 0, −1 | rotation of -180.00 degrees | hflip, vflip |
| 270° | 0, −1, 1, 0 | rotation of 90.00 degrees | transpose=2 |
Matrix values are the 16.16 fixed-point a, b, c, d fields of the tkhd box (ISO/IEC 14496-12 §8.3.2). FFmpeg's sign convention counts counter-clockwise, so a clockwise 90° turn prints as -90, so a clockwise 90° turn prints as -90 in ffprobe.
Common use cases
- Fixing a phone clip that was filmed upright but plays sideways on a laptop or TV
- Turning an upside-down clip from a dashcam, action camera or a phone held the wrong way
- Un-mirroring a front-camera recording so text in the shot reads the right way round
- Re-encoding a rotated clip for an older player, editor or upload site that ignores rotation flags
Frequently asked questions
How do I rotate a video without re-encoding it?
Change the rotation flag instead of the pixels. In MP4 and MOV files each video track header stores a display matrix; this tool rewrites it to 0°, 90°, 180° or 270°, so the frames are untouched and the file stays the same size. Players read the flag and show the video turned.
Why does my phone video play sideways?
Usually the player ignored the rotation flag, or the phone stored the wrong one. Phones often save the camera's landscape frames and add a flag saying how to turn them upright; if the phone was lying flat when recording started, it can guess the wrong way up. Rotate it here and the new flag fixes playback.
Does rotating a video reduce its quality?
Not with the lossless rotation: the compressed frames are copied bit for bit. A re-encode compresses the frames again with H.264 at CRF 21 by default (High quality) (on x264's 0–51 scale, lower is better quality), which looks near-identical but is not lossless. Choose Best quality (CRF 18) for the closest match.
Can I flip or mirror a video losslessly?
Not reliably. The header matrix can describe a mirror, but not every player honours one, so this tool re-encodes flips with FFmpeg's hflip (left–right) and vflip (top–bottom) filters. A mirrored file that you flip back is a plain rotation again, and that is saved losslessly.
Which video formats can I rotate?
MP4, MOV (including iPhone HEVC), M4V and 3GP normally rotate losslessly; a file whose header cannot be read is re-encoded instead. WebM, MKV and AVI have no rotation flag this tool can rewrite, so they are re-encoded to an MP4 with H.264 video and AAC sound at 192 kbps. When an MP4 or MOV is re-encoded (for example, for a flip), AAC or MP3 sound is copied unchanged.
Is my video uploaded to a server?
No. The file is read in your browser and none of it is sent anywhere. A lossless rotation needs no extra download; a re-encode downloads the FFmpeg WebAssembly engine (about 31 MB) from unpkg.com the first time, then processes the video on your own device.
Is there a file size limit?
Not for a lossless rotation: the new file is assembled from slices of the original, so it is never loaded into memory. A re-encode builds the result inside the browser tab, so this tool caps it at 1 GB on phones (500 MB on devices reporting 2 GB of RAM or less) and 2 GB on computers.