Rotate Video
Published Updated
Turn a video a quarter turn either way or upside down, add a mirror if you need one, and save it at full resolution. The clip is re-recorded at normal speed, at up to 30 frames per second.
The turn is drawn into the pixels
This tool does not set an orientation flag that some players respect and others ignore. It runs your clip in a hidden player, paints each frame turned onto a canvas and records that canvas, so the new file is upright in any player.
A quarter turn swaps width and height: a 1920 x 1080 landscape clip comes out 1080 x 1920. Nothing is scaled down. The canvas stream is requested at 30 frames per second through captureStream, so a 60 fps phone clip comes out at 30 at most.
What each button does
Clicks add up. Two presses of Rotate 90 CW equal one Rotate 180, and four bring the clip back where it started.
| Button | Effect | A 1920 x 1080 clip becomes |
|---|---|---|
| Rotate 90 CW | A quarter turn clockwise | 1080 x 1920 |
| Rotate 90 CCW | A quarter turn counterclockwise | 1080 x 1920 |
| Rotate 180 | Upside down | 1920 x 1080 |
| Flip Horizontal | Left and right swapped, as in a mirror | Same size as before |
| Rotate 180 plus Flip Horizontal | A vertical flip: top and bottom swapped | 1920 x 1080 |
Turning a clip the right way up
Step 1
Add the video
Choose an MP4, MOV or WebM file. Its width, height and size appear above the preview, and a file the browser cannot play stops with an error.
Step 2
Set the turn
Each click on a rotate button adds to the angle already set, and Flip Horizontal switches a mirror on or off. The preview applies the same turn and mirror that will be recorded.
Step 3
Record and download
The clip plays through once in a hidden player while it is recorded, then saves as yourname-rotated.mp4, or .webm where MP4 recording is missing.
What changes besides the angle
The result is a fresh recording, not an edited copy of your file. Expect these differences:
- Bitrate. No bitrate is requested, so the browser picks its own. MDN gives the default as 2.5 or 10 Mbps depending on the browser; Google Chrome 156 recorded 1080p and 720p test clips at about 2.5 Mbps, roughly 19 MB per minute. A low-bitrate original can come out larger.
- Format. MP4 with H.264 when the browser can record it, which Chrome 156 can, and WebM otherwise. The download's extension matches what was recorded.
- Sound. Attached in our Chrome 156 and Chromium 153 (Playwright build, not Google Chrome) runs, missing in Firefox 155 and Playwright's WebKit build.
- Metadata. The recorder writes a new file, so the original's creation date, location and camera details are not copied over.
- Speed. Real time. Most browsers pause animation frames in background tabs, and the drawing loop depends on them, so switching tabs can stall or freeze the recording.
Related fixes for the same video
- Black bars from the original recording, or an edge you want gone: Crop Video.
- The turned file is too big to send: Video Compressor.
- A photo rather than a clip: Rotate Image.
Where the picture goes: a marker test in four engines
We ran the tool's recording loop (copied from the component, with the site's own audio and frame-seek code) in Chrome 156, Chromium 153, Firefox 155 and the WebKit build. The test clip was a generated 640 x 360 video of 3.97 seconds with a red square in the top-left corner and a blue square in the bottom-right corner, and a 440 Hz tone. We found the red square in a frame of each result, 0.3 seconds in.
| Setting | Output size | Red square found at (x, y) | Meaning |
|---|---|---|---|
| No rotation, no flip | 640 x 360 | 25, 25 | Top-left, as in the source |
| Rotate 90 CW | 360 x 640 | 333, 25 | Top-right |
| Rotate 180 | 640 x 360 | 613, 333 | Bottom-right |
| Rotate 270 CW | 360 x 640 | 25, 613 | Bottom-left |
| Flip horizontally | 640 x 360 | 613, 25 | Top-right: mirrored left to right |
| Rotate 90 CW and flip | 360 x 640 | 333, 613 | Bottom-right |
The positions above are from Chrome 156; the other three engines found the square within 1 pixel of the same place in every row. Turning a landscape clip by 90 or 270 degrees swaps the width and the height, so a 640 x 360 clip became 360 x 640.
Size, length and sound of the result
Each rotation records the whole clip again in real time, so the 3.97-second clip took 4.0 to 4.5 seconds to process in every engine. The files read back at these lengths and sizes (six runs per engine, the source file was 595,961 bytes):
| Engine | Container | Size range | Length read back | Sound |
|---|---|---|---|---|
| Chrome 156 | MP4 | 616,866 to 639,031 bytes | 4.03 to 4.07 s | Kept (audio track attached) |
| Chromium 153 | MP4 | 585,765 to 635,789 bytes | 4.03 to 4.07 s | Kept |
| Firefox 155 | WebM | 482,293 to 530,729 bytes | 3.97 to 4.04 s | Not attached in these runs |
| The WebKit build | MP4 | 532,607 to 601,712 bytes | 4.22 to 4.24 s | Not attached in these runs |
The length is a little different from the source in every engine, and the WebKit build read back 0.25 to 0.27 seconds longer. The output is written by the browser's recorder, not copied, so the size is not the same as the source even when the picture is only mirrored.
Mirroring a clip does not need a different tool: Flip horizontally in the same page gave the mirrored position above. Rotate first and crop afterwards if you need both, since the crop box is measured in the pixels of the file you load.
Rotating video: questions
How do I fix a video that plays sideways?
Look at where the top of the scene points. If it points left, press Rotate 90 CW once; if right, Rotate 90 CCW. Upside-down footage needs Rotate 180. The preview turns with each click.
Can I flip a video upside down like a mirror?
Yes. A vertical flip is a 180 degree turn combined with a horizontal mirror, so press Rotate 180 and then Flip Horizontal. The preview applies the same two steps in the same order as the recording.
Does rotating reduce the quality?
It can. The picture is encoded again at the browser's default bitrate, which was about 2.5 Mbps in Chrome 156. Work out your clip's bitrate as megabits divided by seconds: a 60 MB, one-minute file runs at 8 Mbps, so its rotated copy is smaller and softer.
Does the rotated video keep its sound?
In our test, yes in Chrome 156 and Chromium 153: an audio track was attached to the turned video (we did not listen). Firefox 155 and WebKit gave files without sound, and the result card says when no sound was recorded.
Why does it take as long as the video?
Nothing is encoded faster than playback. The hidden player runs the clip at normal speed while each frame is drawn and recorded, so a four-minute video needs about four minutes. Keep the tab in front until it finishes.
Can I rotate only one part of the clip?
No. The same angle applies from the first frame to the last. Cut the part you need with Trim Video first, then rotate the shorter file, which also saves recording time.
Which way does Rotate 90 CW turn the video?
Clockwise. A red square in the top-left corner of a 640 x 360 clip was found in the top-right corner of the 360 x 640 result, in all four engines we tried.
Is the rotated video the same size in bytes?
No. The page records the clip again. A 595,961-byte source gave results from 482,293 to 639,031 bytes depending on the engine and the setting.
How long does a rotation take?
About as long as the clip. A 3.97-second clip took 4.0 to 4.5 seconds in four engines.
Related guide
Trim, crop and caption a video in the browser. The guide checks the direction of Rotate 90 CW with a marker square that moved from the top-left to the top-right corner, and explains why to rotate before cropping.