NEW · FFmpeg.wasm · 100% Browser-Based

Free Video Rotator

Rotate videos 90°, 180°, or 270° in-browser. Fix sideways phone recordings with one click. No upload, no signup, no watermark.

🎬
Drop a video file
MP4 · MOV · WebM · MKV · AVI · GIF
Files stay on your device · Never uploaded

Related Tools on UDT

Video Resizer →
Resize videos to 9:16 vertical, 1:1 square, or any custom aspect ratio.
Video Compressor →
Shrink a video to a target file size in your browser, with presets for WhatsApp (64 MB), Discord (20 MB free) and Gmail (18 MB) or any size you set.
Video Converter →
Convert between MP4, MOV, WebM, MKV, AVI, and GIF entirely in your browser.
All Video Tools →
Browse the full Video Suite — 18 tools, all in-browser.

Why Do This in Your Browser?

Sideways phone videos are the single most common video problem people face. The phone records vertical with the orientation flag set, but somewhere along the chain (text message, email, upload, copy) the flag is lost or ignored, and the video plays sideways forever. Fixing this should be one click — it usually isn't.

This tool fixes it in one click. Drop the video, pick a rotation, export. When possible, the rotation is metadata-only — just flipping the orientation flag in the container, no re-encode, byte-exact, completes instantly. When the player ignores metadata orientation (which some players still do), an explicit re-encoded rotation is one toggle away.

How It Works

Container-level rotation is a metadata change: the MP4 track's display matrix is set, which tells players that read it to rotate the video on playback. It needs an MP4 or MOV with H.264 or HEVC video; WebM files are rotated physically instead. Both modes turn the same way (90 is clockwise), checked by decoding the output and comparing it with FFmpeg's transpose filter. No pixel data changes. Phones record portrait video the same way, and current browsers and players honour it. The export takes seconds and is byte-exact for the video stream.

Sometimes that's not enough. Old players, embedded video in slide decks, and certain web frameworks ignore the metadata flag and play the video in its original orientation. For those cases, toggle 'physical rotation' — the tool re-encodes the video with the rotation baked into the pixels. Larger file, slower export, but plays correctly everywhere.

Tip: Rotation often needs a follow-up resize — phone portrait video rotated to landscape ends up at unusual aspect ratios. Fix it with the Video Resizer. After rotation, shrink the file if you're sharing it.

Common Use Cases

Fix Sideways Phone Videos
The most common case — your friend texted you a video and it plays sideways. Rotate 90° clockwise or counterclockwise, done.
Upside-Down GoPro Footage
Mounted upside down? Rotate 180° to flip everything right-side-up.
Mirror Selfie Video
Apply horizontal flip to un-mirror selfie-camera recordings.
Slide Deck Embed
Force physical rotation for videos embedded in PowerPoint, Keynote, or Google Slides — these players ignore the metadata flag.
Old Software Compatibility
Older video editors, museum kiosks, and digital signage frequently ignore rotation metadata.
Mounted Camera Rigs
Camera mounted vertically on a copter or stabilizer rig — rotate to landscape orientation.

Worked example: the two modes on the same 10-second clip

The tool runs FFmpeg.wasm (core 0.12.6) in your browser. To show what each mode does to the file, on October 12, 2026 we ran the tool's exact arguments with desktop FFmpeg 6.1.1 on a 10 s, 1280×720, 30 fps H.264 + AAC test clip. Times are desktop times; in the browser both modes also wait for the engine to load and the file to be copied in, and encoding is several times slower.

ModeArgumentsTime (desktop)Output sizeVideo streamFrame size
Metadata (default), 90° clockwise-c:v copy -c:a copy -metadata:s:v:0 rotate=2700.06 s3,947,012 B (same as input)Byte-identical to the input1280×720 stored, shown 720×1280
Physical, 90° clockwise-vf transpose=1 -c:v libx264 -crf 20 -preset veryfast4.6 s4,135,680 B (+4.8%)Re-encoded: 45.2 dB PSNR against a lossless rotation720×1280
  • Metadata mode is lossless and instant because it copies the H.264 stream untouched and only changes how players are told to display it. Decoded, it matched FFmpeg's transpose=1 frame for frame.
  • Physical mode costs one generation of quality. At CRF 20 the rotated video measured 45.2 dB PSNR against a lossless rotation of the source, which is visually transparent for most footage, and the file grew 4.8%. Use it only when a player ignores the orientation flag.
  • Flips always re-encode. Horizontal and vertical flips have no metadata equivalent here, so they use the physical path even in metadata mode.
  • Doing it on the command line. Current desktop FFmpeg no longer turns -metadata:s:v rotate= into a display matrix (our 6.1.1 output carried no rotation at all). Use ffmpeg -display_rotation:v:0 -90 -i in.mp4 -c copy out.mp4 for a lossless 90° clockwise turn; we checked it decodes identically to transpose=1.

Frequently Asked Questions

Is the rotation a re-encode?+
Not for 90°, 180° and 270° in the default metadata mode: the video stream is copied byte for byte and only the orientation flag changes. Flips, and any rotation in physical mode, re-encode the video with H.264 at CRF 20.
My video still plays sideways after rotation. Why?+
Some players (older Windows Media Player versions, some PowerPoint embeds, certain web-embed players) ignore container rotation metadata. Toggle 'physical rotation' — the tool re-encodes with rotation baked into the pixels.
Are my videos uploaded anywhere?+
No. Every mode runs in your browser with FFmpeg.wasm, including metadata rotation, which uses FFmpeg to rewrite the container without touching the video stream. Nothing is sent to a server.
How long does rotation take?+
Metadata rotation copies the streams, so it is quick and barely depends on length beyond reading the file; our 10 s test clip took 0.06 s in desktop FFmpeg. Physical rotation re-encodes every frame and takes as long as a full encode, which in the browser is several times slower than desktop FFmpeg (4.6 s there for the same clip).
Does it work for vertical → horizontal?+
Yes — 90° rotation converts portrait (vertical) phone video to landscape (horizontal) framing. Note that the visible area changes if the source has letterboxing — for proper aspect-ratio conversion, use the Video Resizer.
Can I rotate by arbitrary degrees (e.g., 45°)?+
Not currently — only multiples of 90° plus horizontal and vertical flips. Arbitrary rotations require canvas resizing and typically aren't useful for video; we may add it for niche cases later.
Will my video quality degrade?+
Metadata rotation: no, the video stream is byte-identical. Physical rotation and flips: one H.264 re-encode at CRF 20; on our test clip that measured 45.2 dB PSNR against a lossless rotation, which is hard to see without a side-by-side comparison.
Why does my video have the wrong orientation after iPhone → Android transfer?+
iPhones write orientation as metadata; some Android transfer paths strip metadata or set it incorrectly. The video pixels are correct but the rotation flag is wrong — this tool fixes that without re-encoding.