Step by step

How to change video resolution without squashing the picture

Updated Tested November 20, 2026Two real clips, six test cardsffmpeg 6.1.1

Large pixelated 4K video frame beside a smaller sharp 720p frame with two empty proportional rectangles glowing between them.

Short answer

Your clip is 4K or a 1080 × 1920 phone video, the upload form wants something smaller, and you do not want it stretched. Pick a target such as 720p and let the frame fit inside it with its shape kept: a landscape clip becomes 1280 × 720, a vertical one 720 × 1280. The free Koldflux compressor does that in your browser for files up to 100 MB. In ffmpeg, scale=-2:720 suits landscape but leaves a vertical clip a 406 × 720 sliver, and forcing 1280:720 can squash it. Going from 4K to 720p cut the file to 13% at the same quality setting.

Compress a video (480p, 720p or 1080p, in your browser, 100 MB)

Key takeaways

  • Change resolution by fitting the frame inside a box, not by typing both numbers. A 1080 × 1920 clip at 720p should come out 720 × 1280; on the test cards every shape kept its circle round this way.
  • scale=-2:720 is fine for a landscape clip. On the vertical clip it gave 406 × 720, about a third of the pixels of a proper 720 × 1280.
  • Forcing scale=1280:720 on a vertical clip gave 1280 × 720 with a pixel-shape flag of 81:256. Players that read the flag showed it right; anything that ignores it shows the circle 3.17 times as wide as tall.
  • Smaller frame, smaller file: at the same CRF 28 setting the 4K clip went from 49.96 MB unresized to 6.62 MB at 720p and 2.51 MB at 480p.
  • Going back up does not bring detail back. The 720p file scaled to 4K grew 3.55 times and matched the original slightly less well than before (SSIM 0.7671 vs 0.7679).

Check what you have first

Thirty seconds here saves a redo. You need three facts about the file: width, height and whether a rotation tag turns it on playback. Phones often store a vertical video as 1920 × 1080 and add a rotation tag that tells the player to turn it on playback, so a quick look at the width and height alone can make a vertical clip seem landscape and send you down the wrong recipe.

If you have ffmpeg installed, this line prints all three, plus the pixel shape (sample_aspect_ratio). Without ffmpeg, the file info panel of most players shows at least the width and height.

ffprobe -v error -select_streams v:0 -show_entries stream=width,height,sample_aspect_ratio,display_aspect_ratio:stream_side_data=rotation -of compact=p=0:nk=0 in.mp4
Prints width, height, pixel shape, display shape and the rotation tag if there is one.

You should now see something like width=1080|height=1920|sample_aspect_ratio=1:1. A rotation of 90 or -90 means the player turns the picture, so treat the clip as vertical. A sample_aspect_ratio other than 1:1 means the pixels are not square, which matters in step 3.

Step 1: resize it in your browser

The quickest route for one file is the Koldflux video compressor. It runs ffmpeg inside the browser tab, so the file does not need uploading anywhere, and it takes files up to 100 MB. It is free.

  1. Open the compressor and drop your video on it.
  2. Pick a preset: 480p, 720p or 1080p. The preset is a box the frame must fit inside: 854 × 480, 1280 × 720 or 1920 × 1080, turned for a vertical video.
  3. Press Compress video and wait. The 13.8 MB, 8 second vertical test clip took 114 seconds in a headless browser on a server; a recent laptop may be quicker.
  4. Download the result when the panel says the download is ready.

Checkpoint: check the new file with the ffprobe line above. The vertical clip came out 720 × 1280 with its sound kept as AAC. A clip already smaller than the box keeps its size, because the tool never scales up.

The Koldflux video compressor with the 720p preset selected after a run on a vertical clip, a Processing complete message, a Download in-vertical-out.mp4 button and the 100 MB per file limit
The compressor after the 720p run on the vertical test clip: 13.8 MB in, 2.48 MB out at 720 × 1280.

What size should the new file be?

This is the table to check your result against. Each row is a measured output for a 720p target, using the same fit-inside-the-box rule as the tool. The long side lands on 1280 and the short side follows the shape of the frame.

If a form demands exactly 1280 × 720, fit-inside is not enough: a 4:3 clip fitted inside the box comes out 960 × 720. Then choose Fit (keeps the shape, may be smaller than the box), Pad (adds bars to reach the exact size) or Crop (cuts the edges to reach it). We measured Fit only.

Measured 720p outputs by source shape
SourceStored sizeOutput at 720pCircle stays round?
4K landscape (Delaneys Falls)3840 × 21601280 × 720real footage, not measured
16:9 test card1920 × 10801280 × 720yes, 1.000
Vertical phone clip (Vettisfossen)1080 × 1920720 × 1280real footage, not measured
Vertical card, rotation tag1920 × 1080, rotated 90°720 × 1280yes, 1.000
4:3 test card1440 × 1080960 × 720yes, 1.000
Wide 2.39:1 test card2560 × 10721280 × 536yes, 1.000
Anamorphic card (4:3 pixels)1440 × 10801280 × 720yes, 1.004

At 480p the vertical clip came out 480 × 854 in ffmpeg and 480 × 852 in the browser tool (1.40 MB, 63 seconds), because the tool's build of ffmpeg rounds the long side slightly differently. Two pixels of height are nothing you will see. At 1080p the vertical clip stayed 1080 × 1920, since it was already that size.

Roundness is the width of the test circle divided by its height as a player shows it; 1.000 is a perfect circle.

Step 2: the same resize with ffmpeg

For batches or files over 100 MB, use ffmpeg. Both commands below were run as printed, and their results are in the log. The first is the familiar recipe and is fine for a landscape clip with square pixels. The FFmpeg documentation explains the -2: when one of the two values is negative, "the scale filter will use a value that maintains the aspect ratio of the input image, calculated from the other specified dimension," and -2 keeps that number even. The second line is the one to use when you do not know the orientation.

# landscape clip with square pixels: 720 high, width follows the shape.
# Short form: it also ENLARGES a clip smaller than 720 high (a 320 x 180 file became 1280 x 720 in our check). To never upscale, use the second command below.
ffmpeg -i in.mp4 -vf "scale=-2:720" -c:v libx264 -pix_fmt yuv420p -crf 28 -preset veryfast -c:a aac -b:a 128k out.mp4

# any clip, vertical or anamorphic included: fit inside 1280 x 720 (turned for vertical), never upscale
ffmpeg -i in.mp4 -vf "scale='trunc(iw*sar/2)*2':ih,setsar=1,scale='if(gt(ih,iw),min(iw,720),min(iw,1280))':'if(gt(ih,iw),min(ih,1280),min(ih,720))':force_original_aspect_ratio=decrease:force_divisible_by=2,setsar=1" -c:v libx264 -pix_fmt yuv420p -crf 28 -preset veryfast -c:a aac -b:a 128k out.mp4
For 480p, change 720 and 1280 to 480 and 854; for 1080p, to 1080 and 1920.

Checkpoint: run the ffprobe line on out.mp4. With the second command, a landscape clip shows 1280 × 720 and a vertical one 720 × 1280, both with sample_aspect_ratio=1:1. If you see 406 × 720 on a vertical clip, the first command ran on it.

Why does a resized video look squashed or tiny?

Two recipes go wrong on vertical video, and they fail in opposite directions. The figure shows the four ways the test asked for 720p on the same vertical clip, drawn to scale. Both mistakes are easy to avoid.

  • Tiny: a fixed 1280 × 720 box, or a height of 720, treats 720 as the height of a vertical clip. Output 406 × 720, roughly a third of the pixels of a proper 720 × 1280.
  • Squashed: scale=1280:720 forces both sides. ffmpeg then marks the pixels as narrow (a pixel-shape flag of 81:256) so a careful player still shows a tall picture. Anything that ignores the flag shows the circle 3.17 times as wide as it is tall. In the same view, the forced line made the 4:3 card's circle 1.34 and the 2.39:1 card's 0.74.
  • Anamorphic sources: some cameras record 1440 × 1080 with wide pixels meant to fill 16:9. scale=-2:720 keeps those wide pixels (960 × 720 plus a 4:3 flag), so it looks right only where the flag is read. The second ffmpeg command makes the pixels square first, the fix the FFmpeg documentation gives: "Make pixels square by combining scale and setsar".
Four frames side by side: a fixed 1280 by 720 box and scale -2:720 both give a narrow 406 by 720 frame, forcing 1280 by 720 gives a wide frame with a stretched circle, and the turned box gives a 720 by 1280 frame with a round circle
Same 1080 × 1920 source, four recipes. Only the turned box keeps full 720p detail and a round circle everywhere.

How much smaller does the file get?

A lot, if the frame really shrinks. The pattern held on both clips. Each clip was encoded at the tool's own settings (CRF 28, AAC 128 kbps) at three sizes and once without resizing, as the control.

Claim: a smaller output resolution gives a smaller file at the same CRF 28 setting. | Varied: only the output box. | Held equal: the clip, CRF 28, the veryfast preset, AAC 128 kbps and the 8 second length. | Why this supports exactly this claim: the no-resize control used the same settings, so the drop comes from the frame size.

Does not prove: what your clip will weigh. Busy footage such as a waterfall needs more bits than a talking head, so the megabytes differ; the shares (34%, 13% and 5% of the unresized 4K file) are a guide, not a promise. Two clips, one run each.

If a form has a hard size limit, resolution is only half the story; the length and the bitrate decide the rest, which the file size guide below explains.

Bar chart of file sizes: the 4K clip is 49.96 MB unresized, 16.87 MB at 1080p, 6.62 MB at 720p and 2.51 MB at 480p; the vertical clip is 5.20 MB unresized and at 1080p, 2.54 MB at 720p and 1.45 MB at 480p
File size of an 8 second clip by output size, same CRF 28 setting.

Can you change it back to 4K later?

You can, but the detail does not come back. The 720p file was scaled up to 3840 × 2160 and compared with the original 4K clip using SSIM, a similarity score where 1 means identical. Similarity to the original is not the same as how good it looks to you, but it shows whether detail was recovered.

It was not. The 720p file scored 0.7679 against the original; the upscaled copy scored 0.7671 and weighed 3.55 times as much (23.51 MB instead of 6.62 MB). Keep your original file somewhere safe, and resize down from it each time a form, a client or a platform asks for a new size, because a copy of a copy can only hold less detail than the original, never more.

Uploading a smaller file is usually fine. YouTube Help says "The YouTube video player automatically adapts to the size of each individual video." Its list of 16:9 sizes runs from 240p up to 2160p (4K) and 8K, so a 4K original is still worth keeping for the upload that deserves it.

How we checked this, and where it stops

Two real clips of 8 seconds and six drawn test cards, one run each, on ffmpeg 6.1.1 and one headless Chromium on a Linux server. Your times in the browser will differ. Roundness was measured from a single frame per file, and "players that read the flag" means ffprobe's display numbers; no phones, TVs or social apps were tested.

The browser tool was run on the build that includes the November 20, 2026 change turning the box for vertical video. The 4K clip (119.5 MB) is over the tool's 100 MB limit, so it was resized in ffmpeg only, with the same filter. HDR clips and odd frame rates were not part of the test.

Do it in your browser

Free Koldflux tool, no account needed.

Compress a video (480p, 720p or 1080p, in your browser, 100 MB)

Questions people ask

How do I change the resolution of a video without losing quality?

Any resize down throws away pixels, so some detail goes. Keep it small by fitting the frame inside the target box with the shape kept, and by keeping your original so you never resize twice.

What is 720p for a vertical video?

720 × 1280. The 720 refers to the short side, so a vertical clip is 720 wide and 1280 tall. In the test, a fixed landscape recipe gave 406 × 720 instead.

Why is my resized video stretched?

Usually both width and height were forced to numbers that do not match the shape of the clip. Set one side and let the other follow, or use a fit-inside-the-box rule like the compressor's.

Does lowering resolution reduce file size?

Yes, at the same CRF 28 setting. The 4K test clip went from 49.96 MB unresized to 6.62 MB at 720p. Length and bitrate matter too.

Can I upscale 720p to 1080p or 4K?

You can. No detail is added, though. The upscaled 4K copy was 3.55 times bigger and no closer to the original than the 720p file.

Related

More guides on this topic

Sources and how we checked

  1. Koldflux video compressor (our own tool, run November 20, 2026) (checked 2026-11-20)
  2. Koldflux test log: outputs, roundness, file sizes, upscale check, browser runs (our measurement, November 20, 2026) (checked 2026-11-20)
  3. How to rerun every test (Koldflux, shell script) (checked 2026-11-20)
  4. How the compressor was driven (Koldflux, Playwright script) (checked 2026-11-20)
  5. FFmpeg filters documentation: scale and setsar (checked 2026-11-20)
  6. YouTube Help: video resolution and aspect ratios (checked 2026-11-20)
  7. Delaneys Falls video, Psypherium, CC0 (Wikimedia Commons, test clip) (checked 2026-11-20)
  8. Vettisfossen video, Kallerna, CC BY-SA 3.0 (Wikimedia Commons, test clip) (checked 2026-11-20)

We cut two Wikimedia Commons clips to 8 seconds (Delaneys Falls, 3840 × 2160, CC0; Vettisfossen, 1080 × 1920, CC BY-SA 3.0) and drew six test cards with a circle that is round on screen: 16:9, 9:16, 4:3, 2.39:1, an anamorphic 1440 × 1080 card with 4:3 pixels and a 1920 × 1080 card with a 90 degree rotation tag. Every input was asked for 720p four ways with ffmpeg 6.1.1 (a fixed 1280 × 720 box, scale=-2:720, scale=1280:720 and a box that turns with the frame after squaring the pixels). ffprobe read the output size and pixel shape, and the circle was measured in one frame as a player shows it and as an app ignoring the pixel shape would. File sizes at 480p, 720p and 1080p were compared with a same-settings encode without resizing, and a 720p file was scaled back to 4K and compared with the original by SSIM. The Koldflux compressor ran in headless Chromium at 720p on the vertical clip and the anamorphic card, and at 480p on the vertical clip. FFmpeg and YouTube pages were read on November 20, 2026. YouTube is a name of its owner; Koldflux is not affiliated with or endorsed by it.