▭

Aspect Ratio Calculator

Calculate proportional image and video dimensions

16:9

Aspect Ratio Calculator — what it does

Give this calculator an original width and height plus one new dimension, and it returns the matching dimension that keeps the proportions identical. It is the arithmetic behind every correctly scaled image, video frame and layout box, done without the mental division that produces one-pixel rounding mistakes.

Worked example

Four resizing jobs typed into the calculator. In each row the original width and height plus one new dimension were entered; the fourth box and the ratio readout were filled in by the tool.

OriginalYou typeTool fills inReadout
1600 × 1200New width 800New height 6004:3 · 800 × 600
1920 × 1080New height 450New width 80016:9 · 800 × 450
3000 × 2000New width 1000New height 6673:2 · 1000 × 667
1366 × 768New width 1000New height 562683:384 · 1000 × 562

3000 × 2000 at width 1000 is exactly 666.67 high and is rounded to 667; 1366 × 768 is not a true 16:9, so the readout shows the reduced fraction 683:384.

When this tool helps

  • Resizing a hero image to a fixed column width while keeping it from stretching or squashing.
  • Working out the height of a 16:9 video embed at an arbitrary container width for responsive CSS.
  • Checking whether a supplied asset actually matches the ratio a template or ad slot demands.

How to use it

  1. Enter the original width and height of the asset.
  2. Type the new width you need, and the height appears.
  3. Or type a new height instead to get the width.
  4. Copy the resulting number into your editor or CSS.

Accuracy, limits, and good practice

  • Results are rounded to whole pixels, so a scaled dimension can be half a pixel off the mathematically exact value.
  • Ratios simplify: 1920x1080, 1280x720 and 640x360 are all 16:9 and produce identical scaling behaviour here.
  • Upscaling keeps the ratio but not the detail — enlarging a small photo cannot recover pixels that were never captured.

Frequently asked questions

What ratio do my dimensions represent?

Divide both numbers by their greatest common divisor. 1600x1200 reduces to 4:3, and 1080x1920 reduces to 9:16, the standard vertical video shape.

Does this change my image file?

No. This is a calculator only. To actually resize a file, use the resize or batch resize tools, which re-encode the image in your browser.

Which dimension should I fix first?

Fix whichever one your layout constrains. Column-width layouts fix width; fixed-height banners and headers fix height.

Why does the readout say 683:384 instead of 16:9?

The ratio is reduced by the greatest common divisor of the two whole numbers you typed, with no tolerance. 1366 and 768 only share a factor of 2, so the laptop size that is sold as 16:9 is shown as 683:384. Type 1920 × 1080 or 1280 × 720 if you want the familiar label; the scaled result is the same to within a pixel.

What do the 16:9, 4:3, 1:1 and 9:16 buttons do?

Each one writes the two small numbers into the original width and height boxes (16 and 9, not 1920 and 1080) and recalculates the new height from whatever new width is currently entered. They are a shortcut for the ratio only; type your real original size afterwards if you also need it in the readout.

Related tools on this site

Everything above runs inside this page. Aspect Ratio Calculator needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

長寬比例計算器能做什麼

輸入原始寬高,再填入新的其中一邊,計算器會回傳維持相同比例的另一邊尺寸。這正是圖片、影片畫面與版面方塊等比縮放背後的算術,不必自己心算,也不會出現差一像素的四捨五入問題。

實際範例

四筆常見的縮放需求:每列輸入原始寬高加上其中一個新尺寸,另一個欄位與比例讀數由工具自動填入。

原始尺寸你輸入工具填入讀數
1600 × 1200新寬度 800新高度 6004:3 · 800 × 600
1920 × 1080新高度 450新寬度 80016:9 · 800 × 450
3000 × 2000新寬度 1000新高度 6673:2 · 1000 × 667
1366 × 768新寬度 1000新高度 562683:384 · 1000 × 562

3000 × 2000 縮到寬 1000 時,高度精確值是 666.67,工具四捨五入為 667;1366 × 768 並非真正的 16:9,所以讀數顯示約分後的 683:384。

什麼時候用得上

  • 把主視覺圖縮到固定欄寬,同時避免被拉長或壓扁。
  • 為響應式 CSS 推算 16:9 影片在任意容器寬度下的高度。
  • 檢查素材是否真的符合版型或廣告版位要求的比例。

使用步驟

  1. 輸入素材的原始寬度與高度。
  2. 填入需要的新寬度,即可得到對應高度。
  3. 或改填新高度,取得對應寬度。
  4. 把結果數值複製到編輯器或 CSS 中。

精確度、限制與實務建議

  • 結果會取整到整數像素,因此縮放後的邊長可能與數學精確值差半個像素。
  • 比例可約分:1920x1080、1280x720 與 640x360 都是 16:9,在此的縮放行為完全相同。
  • 放大只保住比例、留不住細節,小圖放大無法還原原本就沒拍到的像素。

常見問題

我的尺寸是什麼比例?

把兩個數字同除以最大公因數即可。1600x1200 約分為 4:3,1080x1920 約分為 9:16,也就是標準直式影片比例。

這會改到我的圖片檔嗎?

不會,這只是計算器。要真的縮放檔案,請使用縮放或批量縮放工具,它們會在瀏覽器內重新編碼圖片。

應該先固定哪一邊?

看版面限制哪一邊:欄寬型版面固定寬度,固定高度的橫幅與頁首則固定高度。

為什麼讀數顯示 683:384 而不是 16:9?

比例是用你輸入的兩個整數的最大公因數直接約分,沒有任何容許誤差。1366 與 768 只有公因數 2,所以市面上稱為 16:9 的筆電尺寸會顯示成 683:384。想看到熟悉的標籤請改輸入 1920 × 1080 或 1280 × 720;縮放結果最多只差一個像素。

16:9、4:3、1:1、9:16 這幾個按鈕有什麼作用?

按下後會把那兩個小數字(例如 16 和 9,而不是 1920 和 1080)填進原始寬高欄位,再依目前的新寬度重新算出新高度。它們只是比例的捷徑;若讀數也需要真實原始尺寸,之後請再自行輸入。

本站相關工具

以上步驟全部在這個頁面內完成,長寬比例計算器 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。