Calculate dimensions while maintaining aspect ratio. Perfect for resizing images, videos, and responsive design.
| Name | Resolution | Ratio | Use |
|---|
Aspect ratio is the proportional relationship between width and height. Maintaining aspect ratio when resizing prevents distortion — images stay sharp, videos don't stretch, and layouts remain proportional.
Use the aspect-ratio property: aspect-ratio: 16 / 9; Or for older browsers, the padding-top trick: set padding-top: 56.25% (which is 9/16 × 100) on a container.
Instagram feed: 1:1 or 4:5. Stories/Reels: 9:16. YouTube: 16:9. Twitter: 16:9 or 2:1. LinkedIn: 1.91:1. Always check platform-specific guidelines as they change.