Rotate YouTube videos 90° left or right, keep them rotated in fullscreen, and automatically fit the entire picture without cropping.
一键修复侧着的 YouTube 视频:左右旋转 90°、全屏保持正确方向、完整显示画面不裁切。
Already have Tampermonkey?
If you don't know what Tampermonkey is, no problem — follow the beginner-friendly guide below.
Sometimes a YouTube video is uploaded sideways, but YouTube does not provide a built-in button to rotate the video.
YouTube Video Rotator & Fullscreen Fit adds simple rotation controls directly to the YouTube player:
↺ 0° ↻
It can:
- 🔄 Rotate YouTube videos 90° left or right
- 🖥️ Keep the correct rotation in fullscreen
- 🔍 Automatically fit the whole rotated video on screen
- ✂️ Prevent the picture from being cropped
- ↩️ Restore the original orientation at any time
- 🪶 Run as a lightweight userscript
- 🚫 No ads
- 🔒 No tracking
如果 YouTube 视频本身被侧着上传,而播放器又没有旋转功能,这个工具可以:
- 🔄 YouTube 视频左转 / 右转 90°
- 🖥️ 进入全屏后仍然保持正确方向
- 🔍 自动缩放到屏幕能够显示的最大完整画面
- ✂️ 不裁切视频内容
- ↩️ 随时恢复原始方向
- 🪶 非常轻量
- 🚫 无广告
- 🔒 无跟踪
This tool is designed for YouTube videos that were uploaded in the wrong orientation.
For example:
Sideways video
↓
Rotate 90°
↓
Enter fullscreen
↓
Entire video stays visible
↓
No cropping
如果你遇到 YouTube 视频整个画面侧着、倒着,而 YouTube 本身又没有提供旋转按钮,这个工具就是为了解决这个问题。
You do not need to know JavaScript, coding, or GitHub development.
This tool runs through a browser extension called Tampermonkey.
A userscript is simply a small piece of code that adds extra features to a website.
If you've never heard of Tampermonkey before, that's completely fine.
Just follow the steps below.
Tampermonkey is a browser extension that allows small userscripts like this one to run on websites.
Official website:
Install the version for your browser.
This project currently targets Chromium-based browsers such as:
- Microsoft Edge
- Google Chrome
Microsoft Edge may prevent userscripts from running by default.
After installing Tampermonkey, open this address in Edge:
edge://extensions
Find:
Tampermonkey
Then click:
Details / 详细信息
Enable:
If you do not see this option, enable:
on the Extensions page.
⚠️ If you skip this step, the script may install successfully but nothing will appear on YouTube.
After Tampermonkey is installed and enabled, click:
Tampermonkey should automatically open an installation page.
You should see:
YouTube Video Rotator & Fullscreen Fit
Click:
That's it. 🎉
Open any normal YouTube video page.
If YouTube was already open, refresh the page:
Ctrl + R
Move your mouse over the video player.
You should see three buttons in the upper-right corner:
↺ 0° ↻
Rotates the video 90° counter-clockwise.
Restores the video to its normal orientation.
Rotates the video 90° clockwise.
After rotating the video, press:
F
or click YouTube's fullscreen button.
The script will:
- Keep the video rotated
- Detect the fullscreen size
- Automatically resize the rotated video
- Keep the entire picture visible
- Prevent cropping
On a widescreen monitor, a rotated vertical video may have empty space on the left and right.
This is normal.
The script prioritizes showing the entire video without cutting anything off.
如果你完全不懂代码,也没关系。
按照下面几步操作即可。
打开:
安装适合你浏览器的版本。
Tampermonkey 中文通常也叫:
- 篡改猴
- 油猴
在 Edge 地址栏输入:
edge://extensions
找到:
Tampermonkey
点击:
详细信息
然后开启:
如果没有看到这个选项,就在扩展页面开启:
Tampermonkey 已经安装
脚本也已经安装
但 YouTube 上什么都没有
点击:
Tampermonkey 会自动打开脚本安装页面。
点击:
打开一个 YouTube 视频。
如果之前已经打开 YouTube,请按:
Ctrl + R
刷新页面。
播放器右上角应该会出现:
↺ 0° ↻
其中:
- ↺ = 向左旋转 90°
- 0° = 恢复正常
- ↻ = 向右旋转 90°
旋转以后直接进入 YouTube 全屏即可。
脚本会自动保持旋转,并调整画面大小,让完整视频显示出来。
If you installed the script but cannot see:
↺ 0° ↻
try the following.
Press:
Ctrl + R
Click the Tampermonkey icon in your browser.
Make sure:
YouTube Video Rotator & Fullscreen Fit
is enabled.
Open:
edge://extensions
Go to:
Tampermonkey → Details
Make sure:
Allow user scripts / 允许用户脚本
is enabled.
This is especially important on Microsoft Edge.
After changing Tampermonkey or Edge permissions, return to YouTube and press:
Ctrl + R
again.
The script can update through Tampermonkey.
The latest version is hosted in this GitHub repository:
youtube-rotate-fit.user.js
When a new version is released, increasing the userscript version number allows Tampermonkey to detect the update.
YouTube Video Rotator does not collect personal information.
It does not:
- Track your browsing
- Send YouTube history anywhere
- Collect account information
- Display advertisements
- Send analytics data
The script only changes the appearance and behavior of the YouTube video player inside your browser.
This project started with a very simple problem:
A YouTube video was uploaded sideways, and YouTube had no built-in way to rotate it properly.
The first solution rotated the video.
But then fullscreen reset the orientation.
So that problem was fixed.
Then the rotated fullscreen video was cropped.
So the scaling logic was fixed too.
Eventually the solution could:
Rotate the video
+
Keep rotation in fullscreen
+
Automatically fit the entire picture
+
Avoid cropping
That solution became:
Sometimes a useful tool starts with nothing more than one annoying little problem.
MIT License.
You are free to use, modify, improve, and share this project.
Bug reports, suggestions, improvements, and pull requests are welcome.
If YouTube changes its player and something stops working, feel free to open an Issue.
Rotate sideways YouTube videos. Keep them rotated in fullscreen. See the whole picture.
旋转侧着的 YouTube 视频,全屏保持方向,完整显示不裁切。
本项目完全由AI制作,本人完全不懂代码,只是因为看视频的时候发现油管无法旋转,所以问了GPT该怎么办,于是有了此项目 This project was made entirely with AI. I don't know how to code at all. It started because I was watching a video and realized that YouTube has no built-in way to rotate it, so I asked GPT what I could do. And that is how this project came to exist.