Skip to content
Explore tools

Video Aspect Ratio Converter

Change any video to a different aspect ratio online for free. Upload an MP4, WebM, or MOV file, choose 16:9, 9:16, 1:1, 4:5, 4:3, or 21:9, then crop or pad. Live preview, audio preserved, no upload to server.

🔒 No upload to server 🎬 6 aspect ratio presets 🔊 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 Change Video Aspect Ratio

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 the Target Ratio

Choose 16:9, 9:16, 1:1, 4:5, 4:3, or 21:9. Optionally set a custom output width.

3

Choose Crop or Pad

Crop fills the frame by trimming edges. Pad preserves the entire video with a background color.

4

Convert & Download

Click "Convert Aspect Ratio". The tool processes in real time and provides a downloadable file.

Calculation & Data Method

This tool converts aspect ratios entirely in the browser using the HTML5 Canvas API, Web Audio API, and MediaRecorder API. Here's how it works:

  • Canvas sizing: The output canvas is sized to the target aspect ratio at your chosen output width. Height is computed as width × (ratio_height ÷ ratio_width) and rounded to the nearest even number (video codecs require even dimensions).
  • Crop mode: The video is scaled so both dimensions meet or exceed the canvas size. Overflow is trimmed equally from the left/right or top/bottom, keeping the video centered.
  • Pad mode: The video is scaled so both dimensions fit inside the canvas. Remaining space is filled with your chosen background color.
  • Frame rendering: The original video plays at its natural speed. Each frame is drawn to the canvas using drawImage() at the computed scale and offset.
  • Audio capture: The video's audio track is routed through the Web Audio API (createMediaElementSource → MediaStreamDestination) and captured by MediaRecorder, preserving sync.
  • Encoding: The combined video+audio stream is recorded to WebM (VP8/VP9 + Opus) at the canvas's frame rate (typically 30 fps).
  • Progress: Processing runs in real time — a 30-second video takes about 30 seconds to convert. Progress is reported as a percentage of duration.

Aspect Ratio Reference

16:9
YouTube, TV, landscape video
9:16
TikTok, Reels, Shorts, Stories
1:1
Instagram Feed, avatars
4:5
Instagram Feed portrait
4:3
Classic TV, older cameras
21:9
Cinematic, ultrawide monitors
Ratio Best For Crop Behavior (from 16:9 source) Pad Behavior (from 16:9 source)
16:9 YouTube, Vimeo, TV No trim if source is 16:9 No borders if source is 16:9
9:16 TikTok, Reels, Shorts Trim left/right heavily Borders top and bottom (large)
1:1 Instagram Feed Trim left/right moderately Borders top and bottom
4:5 Instagram Feed portrait Trim left/right slightly Modest top/bottom borders
4:3 Classic TV, presentations Trim left/right slightly Modest side borders
21:9 Cinematic, ultrawide Trim top/bottom heavily Modest top/bottom borders

Worked Video Aspect Ratio Example

Scenario: You have a 1920×1080 (16:9) landscape video and want to convert it to 9:16 vertical for TikTok, preserving the entire frame.

  1. Upload the video. The tool detects 1920×1080 resolution and 16:9 aspect ratio.
  2. Select 9:16 as the target ratio.
  3. Select Pad mode to preserve the full frame — Crop would trim away most of the left and right sides.
  4. Choose black or a custom background color for the padded borders.
  5. Output resolution: 1080 px width (default for vertical). Height is calculated as 1080 × (16 ÷ 9) = 1920. Output canvas: 1080 × 1920.
  6. Click "Convert Aspect Ratio".
  7. The tool plays the video through a 1080×1920 canvas, drawing the 1920×1080 source scaled to 1080×608 (preserving aspect ratio) and filling the remaining 1080×1312 with the padding color.
  8. The output is a WebM file with the original audio track, correctly sized 1080×1920 for TikTok.

If you used Crop mode instead, the video would be scaled up so the full height (1920) is filled, which means the source is scaled to 3413×1920 and then center-cropped to 1080×1920, trimming about 68% of the original width. Use Crop when the subject is centered and horizontal content isn't critical; use Pad when you need to preserve the full frame.

Interpret Results

The output video has exactly the dimensions shown in the preview panel. In Crop mode, edges of the source are trimmed but the subject remains at its original scale relative to the output. In Pad mode, the entire source is visible, but borders are added to fill the target frame. The audio track is preserved and synced. 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.

Assumptions and Limits

  • 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. MP4 encoding via MediaRecorder is inconsistent across browsers. If you need MP4, use a desktop converter on the WebM output.
  • Processing speed: Conversion runs at real-time playback speed. A 60-second video takes about 60 seconds. There is no way to speed this up in a browser — the encoder must process frames in real time.
  • Frame rate: The output is capped at 30 fps via canvas.captureStream(30). If the source was higher, it will be downsampled. 30 fps is sufficient for most platforms but may not suit high-frame-rate gaming content.
  • Resolution: Very high output resolutions (e.g., 4K) with long durations may cause memory issues on mobile devices. Stick with 1080p or lower for long videos.
  • Audio quality: Audio is captured through Web Audio and re-encoded to Opus. Slight quality loss is possible vs. the source.
  • No cancellation mid-conversion: The Cancel button stops processing after the current frame, but the video element may need a moment to release resources.
  • No EXIF orientation: Video orientation metadata is generally handled by browsers on playback, but the output does not carry rotation metadata — the pixels are rendered in their displayed orientation.
  • No transparency: WebM video does support alpha, but this tool does not preserve it. Output is opaque.
  • No batch conversion: Process one video at a time for the best results.

Frequently Asked Questions (FAQs)

How do I change a video's aspect ratio?

Upload your video, select the target aspect ratio (16:9, 9:16, 1:1, 4:5, 4:3, or 21:9), choose Crop or Pad mode, and click Convert. The tool re-records the video frame-by-frame with the new dimensions and preserves the original audio.

What is the difference between crop and pad?

Crop fills the entire target frame by scaling the video up and trimming the edges. Pad scales the video to fit inside the frame, adding a background color (letterbox or pillarbox) to fill the remaining space. Crop preserves scale but loses content; Pad preserves all content but adds borders.

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 video in the output file.

Does this tool upload my video to a server?

No. All conversion happens locally in your browser. Your video never leaves your device.

What output format does the tool produce?

The output is WebM (VP8/VP9 video with Opus audio). Browsers do not universally support MP4 encoding via MediaRecorder. WebM is accepted by most modern platforms. If you need MP4, convert the WebM file with a free desktop tool.

Which aspect ratio should I choose for social media?

Use 9:16 for TikTok, Instagram Reels, YouTube Shorts, and Stories. Use 1:1 or 4:5 for Instagram Feed posts. Use 16:9 for YouTube standard uploads, Vimeo, and presentations. Use 21:9 for cinematic content and ultrawide monitors.

Why does conversion take as long as the video duration?

Frame rendering and encoding happen in real time — the video plays through the canvas once, and MediaRecorder captures it as it plays. This is a limitation of browser-based encoding. Desktop tools like FFmpeg can process faster than real time because they do not depend on real-time playback.

Can I convert a vertical video to horizontal?

Yes. Upload a vertical 9:16 video and select 16:9 as the target. Use Crop mode to trim the top/bottom and fill the widescreen frame, or Pad mode to preserve the vertical content with side borders.

Does this tool work on mobile devices?

Yes, but mobile browsers have stricter memory limits. Long videos (over 2–3 minutes) at high resolution may fail on mobile devices. For best results on mobile, use shorter clips or lower output resolutions.

Can I convert to a custom aspect ratio?

The tool supports six presets (16:9, 9:16, 1:1, 4:5, 4:3, 21:9). Custom ratios would require a different interface. If you need an unusual ratio (e.g., 2:1 or 3:2), convert to the nearest preset and then adjust with desktop editing tools.

Will the output look identical to the source in terms of quality?

No — the source is decoded, drawn to a canvas, and re-encoded, which is a lossy process. Visual quality will be slightly reduced, especially in Pad mode where the video is scaled down (then the whole output is encoded). For most web and social media uses, the difference is imperceptible at 30 fps and moderate resolutions.

Related Tools