Resizing a video thumbnail and a social image to the right shape
A thumbnail must be 16:9 and the design is 1280 pixels wide. Type 16:9 and 1280, and the height is 720. That one is easy because 1280 is a multiple of 16: 1280 divided by 16 is 80, and 80 times 9 is 720. Now say the design is 1000 pixels wide. 1000 divided by 16 is 62.5, so the height is 562.5 pixels, and an image cannot have half a pixel.
There are two honest answers. Round the height to 563, and the image is 1000 × 563, which is off 16:9 by less than a tenth of a percent; no one will see it. Or move to the nearest size that is exact. Every exact 16:9 size is 16 times some whole number wide and 9 times the same number high, so the neighbours of 1000 are 992 × 558 and 1008 × 567. The page lists both, so you can pick the one that suits the layout.
The same method checks a size you already have. Type 1366 for the width and 768 for the height. At 16:9, 1366 wide would need 768.375 high, so the page says it does not quite match, and its own ratio is 683:384, which it names as approximately 16:9. Laptop screens of that size were sold as 16:9 for years. When a video looks letterboxed by a pixel on such a screen, this is the reason.
Ratios also need converting between the forms people use. Image specs often give a decimal, such as 1.91:1 for link preview images. Type it, and the page simplifies it to 191:100 and writes aspect-ratio: 191 / 100 for CSS. A width of 1200 then gives a height of 628.27, which is why the common size 1200 × 630 is very close to, but not exactly, 1.91:1.
The calculator has limits. It handles ratios of two parts, width to height, and not three-part ratios. It works out sizes; it does not change any image, so use an image tool to resize or crop. It treats pixels as square, which nearly all modern screens and cameras use. The common ratios in the table describe typical use, and each platform publishes its own exact sizes, which change from time to time.