> ## Documentation Index
> Fetch the complete documentation index at: https://autorender.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rotate

> Reorient a video by 90, 180, or 270 degrees to correct or match a playback layout.

`r_` rotates a video clockwise in **90°** steps to correct its orientation or match a player layout. Autorender supports **90°**, **180°**, and **270°**.

> [!NOTE]
>
> These tokens behave the same for images. See the shared [rotate](https://autorender.io/docs/transformations/rotate.md) page for the image reference.

## How to use it?

Add `r_` followed by the angle.

| Token | Angle | What it does |
| - | - | - |
| `r_90` | **90°** | Rotates clockwise by **90°** |
| `r_180` | **180°** | Rotates by **180°** (upside down) |
| `r_270` | **270°** | Rotates clockwise by **270°** |

> [tab] Original
>
> <video src="https://assets.autorender.io/LOKVTtKVGb/w_400/doc/skateboarding.mp4" controls />

> [tab] Rotate 90°
>
> ```bash theme={null}
> https://assets.autorender.io/LOKVTtKVGb/r_90,w_400/doc/skateboarding.mp4
> ```
>
> <video src="https://assets.autorender.io/LOKVTtKVGb/r_90,w_400/doc/skateboarding.mp4" controls />

> [tab] Rotate 180°
>
> ```bash theme={null}
> https://assets.autorender.io/LOKVTtKVGb/r_180,w_400/doc/skateboarding.mp4
> ```
>
> <video src="https://assets.autorender.io/LOKVTtKVGb/r_180,w_400/doc/skateboarding.mp4" controls />

`r_180` produces the same result as `flip_hv`, but rotation reads more clearly for orientation fixes such as a phone video shot vertically that needs a horizontal player.

> [!WARNING]
>
> Output dimensions are snapped to even values after rotation, because common video codecs require even dimensions.

## Next steps

> [card] [Flip](https://autorender.io/docs/video/flip.md)
>
> Mirror a video horizontally or vertically instead.

> [card] [Image rotate](https://autorender.io/docs/transformations/rotate.md)
>
> The same rotate token applied to images.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.