Skip to content
Explore tools

Rotate Video Online

Rotate or flip a video online for free. Upload an MP4, WebM, or MOV file, choose 90° left, 90° right, 180°, or a flip, preview the result live, and download. Audio preserved, no upload to server.

🔄 Rotation baked into pixels 🔒 No upload to server 🔊 Audio preserved 👁️ Live preview

Drag and drop an MP4, WebM, or MOV file here, or click to browse. Larger files take longer to process but never leave your device.

How to Rotate or Flip a Video Online

1

Upload Your Video

Drag and drop an MP4, WebM, or MOV file, or click to browse. The video loads entirely in your browser.

2

Pick Rotation or Flip

Choose 90° right, 180°, or 90° left. Optionally flip horizontally or vertically. Combinations are supported.

3

Preview Dimensions

The output dimensions update live. 90°/270° rotations swap width and height; 180° and flips keep the same dimensions.

4

Rotate & Download

Click "Rotate Video". The tool re-renders each frame at the new orientation and provides a downloadable file.

Calculation & Data Method

This tool rotates and flips videos entirely in the browser using the HTML5 Canvas API, Web Audio API, and MediaRecorder API. Here's how it works:

  • Rotation is baked into pixels: Unlike some tools that only write rotation metadata (which many players ignore), this tool applies the transformation to the actual pixels during rendering. The output file plays in the correct orientation in every player.
  • Canvas transformation: For each frame, the canvas is set to the output dimensions, a transformation matrix is applied (rotate + flip), and the frame is drawn. For example, for 90° right: ctx.translate(w, 0); ctx.rotate(Math.PI/2); ctx.drawImage(video, 0, 0);.
  • Dimension swapping: For 90° and 270° rotations, the output canvas dimensions are the source dimensions swapped (e.g., 1920×1080 → 1080×1920). For 180° rotations and flips, dimensions stay the same.
  • Combining rotation and flip: If both a rotation and a flip are selected, the flip is applied first (in the rotated coordinate space) or combined with the rotation matrix. The result is a single combined transformation per frame.
  • Audio capture: The video's audio track is routed through the Web Audio API (createMediaElementSource → MediaStreamDestination) and captured by MediaRecorder, preserving sync with the rotated video.
  • Encoding: The combined video+audio stream is recorded to WebM (VP8/VP9 + Opus) at 30 fps. Processing runs at real-time playback speed.

Rotation & Flip Reference

No rotation (0°)
Source is unchanged. Use this if the video is already correctly oriented.
Same dimensions
Rotate 90° Right
Classic "portrait to landscape" rotation. Also called 90° clockwise.
W × H → H × W
Rotate 180°
Upside-down correction. Use when a video was recorded with the camera inverted.
Same dimensions
Rotate 90° Left
Also called 90° counter-clockwise or 270° right.
W × H → H × W
Mirror Horizontal
Flips left-right. Useful for correcting selfie mirrors or creating reflection effects.
Same dimensions
Mirror Vertical
Flips top-bottom. Useful for creating mirrored or upside-down effects.
Same dimensions

Worked Rotate Video Example

Scenario: You have a 1920×1080 MP4 video (landscape) recorded with a phone held in the wrong orientation. You want it in portrait mode (1080×1920) with the correct orientation.

  1. Upload the video. The tool reports 1920×1080 resolution, 16:9 aspect ratio, duration, and format.
  2. Click "90° Right" in the rotation controls.
  3. The dimensions info updates instantly: Source: 1920×1080, Output: 1080×1920, Rotation: 90°, Flip: None.
  4. The live preview shows the video rotated 90° clockwise. When you play the video, the preview animates in real time.
  5. Click "Rotate Video". The tool plays the video through a 1080×1920 canvas, applying the rotation transform to each frame.
  6. After processing (real-time — a 60-second video takes about 60 seconds), the result panel shows: 1080×1920 dimensions, 90° rotation applied, WebM format, audio preserved.
  7. Click "Download Rotated Video" to save the rotated file.
  8. The downloaded WebM plays in the correct orientation in every modern player — no reliance on rotation metadata.

If you combine rotation with a flip (e.g., 90° Right + Mirror Horizontal), the preview and output reflect the combined transformation. The dimensions still swap for 90°/270° rotations, and the flip is applied in the rotated coordinate space.

Interpret Results

The result video preview plays in the correct orientation because the rotation has been baked into the pixels. The dimensions shown in the result details match the output canvas size. Audio is preserved and stays synchronized. The output format is WebM — highly compatible with modern browsers and platforms. If you need MP4 for older players, convert the WebM with a free desktop tool like HandBrake or FFmpeg.

Transform Source 1920×1080 Output Source 1080×1920 Output Audio
None1920×10801080×1920Preserved
Rotate 90° Right1080×19201920×1080Preserved
Rotate 180°1920×10801080×1920Preserved
Rotate 90° Left1080×19201920×1080Preserved
Mirror Horizontal1920×10801080×1920Preserved
Mirror Vertical1920×10801080×1920Preserved

Assumptions and Limits

  • Rotation is baked into pixels: The output file has the rotation applied to the actual pixels, not stored as metadata. This means the file plays correctly in every player, but the source is re-encoded (slight quality loss).
  • Browser support: Requires a modern browser with support for MediaRecorder, canvas.captureStream(), and Web Audio (Chrome, Edge, Firefox, Safari 14.1+).
  • Output format: WebM (VP8/VP9 + Opus) is the only universally supported browser output. If you need MP4, convert the WebM with a free desktop tool.
  • Processing speed: Real-time — a 60-second video takes about 60 seconds. There's no way to speed this up in a browser.
  • Frame rate cap: Output is capped at 30 fps via canvas.captureStream(30). Higher-frame-rate sources are downsampled.
  • Re-encoding quality loss: The video is decoded, transformed, and re-encoded in the browser. Visual quality is slightly reduced — imperceptible for most social media and web uses.
  • Source EXIF/metadata rotation: If the source video already has rotation metadata that your browser auto-applies on playback, the tool will render the rotated frame (browser applies metadata before drawing to canvas). The output has the rotation baked in — no double rotation.
  • Memory limits: Very large videos (over 500 MB) may strain memory, especially on mobile devices.
  • No batch processing: Rotate one video at a time for the best results.

Frequently Asked Questions (FAQs)

How do I rotate a video online?

Upload your video, choose a rotation (90° left, 90° right, or 180°) or flip (horizontal or vertical), preview the result, and click Rotate Video. The rotated video is generated in your browser and can be downloaded.

Does rotating a video reduce its quality?

The video is re-encoded during rotation, which introduces a small quality loss. For social media and web use, the difference is usually imperceptible. The rotation is baked into the pixels, so the output plays correctly in all players without metadata reliance.

Will the aspect ratio change?

Yes, for 90° and 270° rotations, the width and height swap. A 1920×1080 video rotated 90° becomes 1080×1920. For 180° rotations and flips, dimensions stay the same.

Does this tool upload my video to a server?

No. All processing happens locally in your browser using the HTML5 Canvas and MediaRecorder APIs. Your video never leaves your device.

Does this tool preserve audio?

Yes. The audio track from the original video is routed through the Web Audio API and captured by MediaRecorder, so it stays synchronized with the rotated video.

Can I combine rotation and flip?

Yes. You can select any rotation and any flip together. The tool combines them into a single transformation — for example, 90° Right + Mirror Horizontal produces a rotated and mirrored frame.

What's the difference between "rotation metadata" and "baked rotation"?

Rotation metadata is a hint stored in the video file's header that tells players how to display the video. Many older players and platforms ignore this metadata, so the video displays sideways. Baked rotation means the actual pixels are rotated, so the file plays correctly everywhere. This tool bakes the rotation into the pixels.

Why does rotation take as long as the video duration?

Frame rendering and encoding happen in real time because the video must be played through the canvas, transformed frame-by-frame, and recorded via MediaRecorder. There is no way to accelerate this in a browser.

Can I rotate a video that's already sideways due to metadata?

Yes. Your browser auto-applies rotation metadata on playback, so the source frame is displayed correctly in the preview. The tool then applies the additional rotation you choose and bakes the combined result into pixels.

Does this tool work on mobile devices?

Yes, on modern mobile browsers that support MediaRecorder and canvas.captureStream. Short videos (under 2–3 minutes) generally work well. Longer videos may fail on memory-limited devices.

What output format does the tool produce?

The output is WebM (VP8/VP9 video with Opus audio). If you need MP4 for older players, convert the WebM with a free desktop tool like HandBrake or FFmpeg.

Can I rotate just part of a video?

No. This tool applies a single transformation to the entire video. If you need to rotate only part of the video, split the video first (using the "Potong Video Online" tool), rotate the segment, and re-join.

Related Tools