DESIGN TOOL

Aspect Ratio Calculator

Calculate dimensions, compare ratios visually, and get CSS code. Presets for social media, video, devices, and print.

px
px
Ratio
16:9
1.778
2,073,600 pixels · 2.07 MP

Standard Resolutions

Name Width Height Megapixels

Visual Compare

Dimension Presets

CSS / HTML Code

aspect-ratio property
Padding-bottom trick
Image tag
Responsive container

Image Resizer

Upload an image to resize it to the calculated dimensions. All processing happens in your browser.

Drop an image here or browse

PNG, JPG, WebP — processed entirely in your browser

Related Tools

Frequently Asked Questions

Is the aspect ratio calculator and image resizer free?
Yes, completely free with no signup required. All features including the calculator, image resizer, and social media presets are available at no cost.
Is my uploaded image kept private?
Yes, all image processing happens entirely in your browser using the Canvas API. Your images are never uploaded to any server.
What is the difference between Cover and Contain fit modes?
Cover mode crops the image to fill the entire target dimensions with no empty space. Contain mode fits the entire image within the target dimensions, adding letterbox or pillarbox bars if needed.
What social media image sizes are supported?
Presets for Instagram Post (1080x1080), Instagram Story (1080x1920), YouTube Thumbnail (1280x720), Twitter Post (1200x675), Facebook Cover (820x312), LinkedIn Banner (1584x396), TikTok Video (1080x1920), and many more.