Calculate dimensions with fixed aspect ratio
Current Rate
16:9
({ratio.toFixed(4)})
Tan Phat Digital's Aspect Ratio Lock tool helps you calculate dimensions with a fixed aspect ratio. Lock proportions when resizing - changing width automatically calculates height and vice versa. 8 popular ratio presets: 1:1 (Square), 4:3 (Standard), 16:9 (Widescreen), 21:9 (Ultrawide), 9:16 (Portrait), 3:2 (Photo), 2:3 (Portrait Photo), 4:5 (Instagram). Automatically calculate and display ratio in its simplest form (GCD). Export CSS aspect-ratio property. Visual preview with scale box. The tool is completely free.
Aspect ratio is the relationship between width and height of an element. Scale locking ensures images, videos, and containers are not distorted when resized. In responsive design, maintaining aspect ratio is important for: Images and thumbnails - avoid stretched or squished images. Video embeds - YouTube, Vimeo need to be exactly 16:9 so there are no black bars. Card layouts - consistent card sizes in grids. Hero sections - maintain proportions across screen sizes. Social media images - each platform has preferred ratios (Instagram 1:1, 4:5; Facebook 1.91:1; Pinterest 2:3). New CSS aspect-ratio property helps maintain ratios without padding hacks.
We not only design websites, but also help businesses build strong digital brands. Providing comprehensive website design services from design to SEO optimization. Please contact Mavis Digital immediately to create breakthrough, effective and sustainable technology solutions for your business in Ho Chi Minh.
Create custom border-radius.
Create CSS filter effects.
Create a CSS frosted glass effect.
Create Soft UI effect.
Create text-shadow CSS.
Create a font size system.
Create a brand color palette.