Favorite places of your favorite city
Home
Add to preferred sources on Google

Aspect Ratio Calculator

Check the shape of an image, video or layout from its width and height. To plan another size with the same proportions, choose a target width or height and calculate the other side.

Your dimensions

Use the same unit for both sides, or enter ratio parts such as 16 and 9. Decimals such as 1.85 and 1 also work. Use values from 0.001 up to one million, with up to three decimal places. A point or comma is decimal: 1,000 means one. Do not group digits.

Aspect ratio

Enter a width and height, then a target size if needed.

Dimensions only. No image or video file is uploaded or changed.

Calculation details

How to calculate an aspect ratio or matching size

  1. Choose Find aspect ratio, or Calculate matching pixel size if you already know one target dimension.
  2. Enter width and height in the same unit, or enter ratio parts such as 16 and 9. Decimal ratio parts are accepted too.
  3. For a matching size, choose target width or target height and enter that side in whole pixels. The other side is calculated for you.
  4. Read the exact ratio or new pixel dimensions. Check any rounding notice, open the calculation details if useful, and copy the result.

What this aspect ratio calculator does

  • Reduces width and height to an exact whole-number ratio, keeping width first.
  • Accepts existing dimensions and decimal ratio parts without guessing a nearby standard.
  • Calculates one missing pixel dimension from a chosen width or height.
  • Clearly marks a derived dimension rounded to the nearest pixel and shows the resulting ratio in the details.
  • Keeps calculations in page memory and provides a localized result to copy, without a file upload.

When a ratio or matching size helps

  • Check whether a photo, video frame or presentation shape has the proportions you expected before editing or exporting it elsewhere.
  • Plan the height for an image at a chosen website width, or the width for a fixed-height layout.
  • Find the exact ratio of a nonstandard resolution instead of relying on a rounded screen or format label.

Understanding width, height and proportional sizes

An aspect ratio compares width with height, in that order. A 16:9 rectangle is wider than it is tall; 9:16 is portrait and 1:1 is square. A ratio describes shape, not the number of pixels or the physical size.

The exact ratio comes from dividing both entered values by their greatest common divisor after accounting for decimal places. Thus 1920 × 1080 becomes 16:9, while 1920 × 1200 reduces to 8:5, the same proportion often written 16:10.

To calculate a matching height, multiply the target width by the original height and divide by the original width. To calculate a matching width, multiply the target height by the original width and divide by the original height.

Useful starting ratios include 16:9, 9:16, 1:1, 4:3, 3:2 and 4:5. Enter their two parts as width and height. A decimal ratio such as 1.85:1 is entered as 1.85 and 1; it reduces exactly to 37:20.

Raster dimensions must be whole pixels. When the calculated side is fractional, this tool rounds it to the nearest pixel, with half-pixel ties upward. The ratio can change, noticeably for tiny sizes. The target side is not rounded or altered.

Use a decimal point or comma for source values and do not group digits: 1,000 means one, while 1000 means one thousand. For physical print dimensions, PPI and fit or crop checks, use the separate Print Size tool.

Worked aspect ratio and pixel-size examples

1920 wide and 1080 high reduce exactly to 16:9. A target width of 1280 pixels gives a height of 720 pixels with no rounding.

For a 9:16 portrait ratio, a target width of 1080 pixels gives 1080 × 1920 pixels.

1366 × 768 reduces to 683:384, not exactly 16:9. Likewise, 3440 × 1440 reduces to 43:18, not exactly 21:9.

At 16:9 and a target width of 1000 pixels, the exact height is 562.5. The result is about 1000 × 563 pixels; that whole-pixel size is not exactly 16:9.

At 2:1 and a target width of one pixel, the exact height is half a pixel. Rounding gives about 1 × 1 pixel, now square. Very small targets can change the shape substantially.

What the dimensions do not guarantee

This tool calculates numbers; it does not resize, crop, pad, compress or improve an image or video file.

Width and height must use the same unit. Pixel-based shape assumes square pixels; anamorphic display corrections and physical-size or PPI conversions are not included.

Source values accept 0.001–1,000,000 with up to three decimal places. Target and rounded output dimensions accept 1–1,000,000 whole pixels. These are calculator limits, not platform or file-format limits.

A matching size does not confirm upload acceptance, codec requirements, image quality or suitability for a device. Check those requirements separately; rounding may change the exact ratio.

Your dimension inputs

The tool keeps figures in page memory, with no upload, saved history, account or share link containing them. Copy happens only when requested.

The surrounding website can make normal requests under its existing consent and analytics settings. Local calculation is not whole-site privacy certification.

Questions about aspect ratios and matching sizes

Enter both values using the same unit. The calculator reduces their proportion to the smallest whole-number width:height pair. For example, 1920 and 1080 give 16:9.

The ratio describes shape; pixel dimensions describe the raster's width and height. Both 1920 × 1080 and 1280 × 720 have a 16:9 shape, but they contain different numbers of pixels.

Choose Calculate matching pixel size, enter the existing width and height or ratio parts, select Set target width, and enter the new width in whole pixels. The calculator derives and, if needed, rounds the height.

Yes. Choose Set target height and enter that height. The matching width is calculated. Switching the target dimension retains the number but reads it as the newly selected side.

Yes. Enter 1.85 as width and 1 as height. Source values allow up to three decimal places. The exact reduced integer result is 37:20, which represents the same proportion.

Its exact reduction is 683:384. Familiar format labels can be approximations; this calculator reports the entered proportion without replacing it with the nearest common ratio.

The exact calculated side was not a whole pixel, so it was rounded to the nearest integer, with ties upward. The final pixel size can have a different ratio; see the details, especially for tiny targets.

No. It calculates an aspect ratio and dimensions to use in another editor. It does not read, upload, change or download a media file.

Both source values may use the same physical unit, or be ratio parts. The matching-size target is always in pixels, not a print-resolution conversion. A comma is decimal, so 1,000 means one; use 1000 for one thousand.

A required input may be incomplete or invalid, or the derived side may round outside the supported 1–1,000,000 pixel range. Adjust the target or ratio. The calculator never silently clamps an unsupported result.

Sources and calculation notes

These references explain width-to-height proportions and resizing. The input limits and whole-pixel rounding are this calculator's stated policy.

References checked on 15 October 2026.

The calculator does not edit files, convert print resolution or validate platform requirements.

SVG to PNG

Convert a local SVG file or pasted markup into PNG, with explicit dimensions, transparency and bundled fonts.

Open tool — SVG to PNG

CSS Filter Generator

Order and repeat CSS effects, compare a specimen and copy the exact filter declaration.

Open tool — CSS Filter Generator

Fluid Font Size Calculator

Create root-relative CSS from viewport endpoints and inspect the copied size model.

Open tool — Fluid Font Size Calculator

CSS Button Generator

Style native button states, inspect keyboard focus and copy HTML and CSS.

Open tool — CSS Button Generator

CSS Border Radius Generator

Edit eight corner radii, preview a box and copy CSS in pixels or percentages.

Open tool — CSS Border Radius Generator

CSS Grid Generator

Build a bounded CSS Grid example with editable tracks, placement and named areas. Preview it, copy CSS or HTML and download the same standalone example.

Open tool — CSS Grid Generator

CSS Flexbox Generator

Build a Flexbox example with container and item controls, explicit layout axes, matching CSS and HTML, and a local complete-example download.

Open tool — CSS Flexbox Generator

CSS Text Shadow Generator

Build ordered text shadows, preview plain text and copy exact CSS.

Open tool — CSS Text Shadow Generator

CSS Transform Generator

Compose repeatable 2D CSS transforms, edit px or percentage translation and origin, inspect a reference box and copy the exact current declarations.

Open tool — CSS Transform Generator

CSS Box Shadow Generator

Create ordered CSS box-shadow layers with a live preview and copyable code.

Open tool — CSS Box Shadow Generator

Image Watermark

Add a text or logo watermark to a batch of images, review each result and download individual files or a ZIP.

Open tool — Image Watermark

CSS Gradient Generator

Create linear or radial CSS gradients with editable colors, opacity and stops.

Open tool — CSS Gradient Generator

Color Converter

Convert supported sRGB HEX, RGB and HSL literals with alpha, explicit precision and current code Copy.

Open tool — Color Converter

Image to Text (OCR)

Recognize printed text in local PNG or JPEG images, choose a language and review or correct the result before copying or downloading.

Open tool — Image to Text (OCR)

QR Code Reader

Read one QR code from a local PNG or JPEG and inspect its text or content bytes without opening links.

Open tool — QR Code Reader

Color Contrast Checker

Compare foreground and background colors, adjust opacity and check WCAG numerical contrast thresholds for text and essential interface details.

Open tool — Color Contrast Checker

Print Size & Resolution Calculator

Calculate print dimensions, required pixels and effective PPI with fit or crop.

Open tool — Print Size & Resolution Calculator

Image Compressor

Try to fit a JPEG, PNG or WebP within a target file size, with measured results and optional smaller dimensions.

Open tool — Image Compressor

HEIC to JPG

Convert supported HEIC photos locally into full-size JPG copies, with quality and background controls and verified individual or ZIP downloads.

Open tool — HEIC to JPG

Image Converter

Convert supported PNG, JPEG and WebP images locally with batch targets, transparency, background and quality controls, then review and download the encoded files.

Open tool — Image Converter

Photo Collage Maker

Arrange local photos in a grid, adjust crops and spacing, and download PNG or JPEG.

Open tool — Photo Collage Maker

Rotate & Flip Images

Rotate or mirror a local batch of static PNG, JPEG and WebP images, then review and download the processed results.

Open tool — Rotate & Flip Images

Image Cropper

Crop one local JPEG, PNG or WebP to exact pixels with visual and numeric controls. Download PNG or JPEG.

Open tool — Image Cropper

Image Resizer

Resize a JPG, PNG or WebP image by pixels or percentage, preview the result and download it.

Open tool — Image Resizer
View all tools in this category