Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

Aspect Ratio Calculator

Resize images and videos without distortion: fill in a ratio and one side to get the other, or enter a size to find its ratio — with ready-to-paste CSS.

Mis à jour le
Resize with an aspect ratio
:
×

Change the width or height — the other side is calculated from the ratio.

Find the ratio of a size
×
683:384
≈ 16:9 · 1.7786 · landscape
CSS
aspect-ratio: 16 / 9;
1.7778 · 56.25%
Preview
16:9
Common sizes for 16:9
WidthHeightNote

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : Aspect Ratio Calculator

  1. Enter a ratio (or click a common one like 16:9 or 9:16).
  2. Type a width to get the matching height — or a height to get the width.
  3. To find the ratio of an existing image or screen, enter its size under Find the ratio of a size; click Use this ratio to resize with it.
  4. Copy the CSS (aspect-ratio plus the padding-top fallback) and pick a standard size from the table.

What is an aspect ratio?

An aspect ratio is the proportional relationship between width and height, written as width:height. A 1920 × 1080 video and a 1280 × 720 video are different sizes but share the same 16:9 ratio, so one scales to the other without stretching or cropping. Keeping the ratio when resizing is what prevents distorted images and black bars.

Aspect ratio formulas

  • New height = new width × ratio height ÷ ratio width — e.g. 1280 × 9 ÷ 16 = 720.
  • New width = new height × ratio width ÷ ratio height — e.g. 1080 × 16 ÷ 9 = 1920.
  • Simplify a size: divide both sides by their greatest common divisor (GCD). 1920 and 1080 share a GCD of 120, giving 16:9.

Some sizes don’t reduce neatly: 1366 × 768 (a common laptop resolution) simplifies to 683:384, which is approximately 16:9. The calculator shows the exact ratio and the nearest common ratio.

Common aspect ratios and where they’re used

RatioDecimalTypical use
16:91.778HD/4K video, YouTube, monitors, presentations
9:160.5625Stories, Reels, TikTok, YouTube Shorts
4:31.333Older TVs and monitors, iPad, many compact cameras
3:21.535 mm film, DSLR/mirrorless photos, Surface laptops
1:11Square social posts, avatars, product thumbnails
4:50.8Portrait feed posts on Instagram and Facebook
21:9≈ 2.33Ultrawide monitors, cinematic video
1.91:11.91Open Graph / link preview images (1200 × 630)

Aspect ratio in CSS

Modern browsers support the aspect-ratio property: aspect-ratio: 16 / 9; on an element with a width gives it the matching height — perfect for responsive video embeds, cards and image placeholders that prevent layout shift (good for Core Web Vitals CLS). The older technique is the padding-top hack: a wrapper with height: 0; padding-top: 56.25% (9 ÷ 16 × 100), because vertical padding percentages are relative to the element’s width. Both are generated above. For the image files themselves, use the Image Resizer; for link previews, the OG Image Generator creates 1200 × 630 images.

Aussi recherché comme : aspect ratio, 16:9 calculator, ratio calculator, resolution calculator, image ratio, video aspect ratio, css aspect-ratio, padding-top hack.

Outils complémentaires : Aspect Ratio Calculator

  • Calculateur de colliers de serrage — Saisissez une taille minimale et maximale ainsi que la plage de la fenêtre d'affichage — obtenez une valeur adaptée au zoom clamp() , accompagnée d’explications mathématiques, d’un aperçu en temps réel et d’une échelle complète de la typographie fluide ou de l’espacement.
  • PX to REM Converter — Convert between pixels, rem and em with your own root font size — or paste a whole stylesheet and convert every px value in one go.
  • Calculateur de pourcentage — Sept calculs de pourcentage courants sur une seule page.
  • Convertisseur de chiffres romains — Convertissez n'importe quel nombre compris entre 1 et 3 999 999 en chiffres romains — ou transformez des chiffres romains en nombres — avec une explication détaillée de chaque symbole.

Questions fréquentes

How do I calculate height from width and aspect ratio?
Multiply the width by the ratio’s height and divide by its width. For 16:9 and a width of 1280: 1280 × 9 ÷ 16 = 720 px.
Is 1920×1080 16:9?
Yes. Dividing both by their greatest common divisor, 120, gives exactly 16:9. Other 16:9 sizes include 1280×720, 2560×1440 and 3840×2160 (4K UHD).
What aspect ratio is 1080×1350?
4:5 (0.8), the portrait format recommended for Instagram feed posts.
What is the padding-top value for 16:9?
56.25% — that is 9 ÷ 16 × 100. For 4:3 it is 75% and for 21:9 about 42.86%.
Should I use aspect-ratio or the padding hack in CSS?
Use aspect-ratio; it is supported by all current browsers and needs no wrapper. Keep the padding hack only if you must support very old browsers such as Safari before 15.
Puis-je installer Aspect Ratio Calculator en tant qu’application web et l’utiliser hors ligne ?
Oui. Aspect Ratio Calculator est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires