Find the perfect size and aspect ratio for AI-generated images
An image aspect ratio is the proportional relationship between width and height (e.g., 16:9, 1:1). Choosing the correct ratio ensures images display properly across platforms without cropping or stretching.
Copy these prompts and replace [SUBJECT] or [PRODUCT] with your content.
Professional product photography of [PRODUCT], studio lighting, white background, high detail, commercial quality, aspect ratio 1:1
Eye-catching [SUBJECT] for social media, vibrant colors, modern style, clean composition, trending aesthetic, aspect ratio 1:1
Stunning hero image of [SUBJECT], dramatic lighting, cinematic quality, high resolution, website header style, aspect ratio 1:1
Digital illustration of [SUBJECT], flat design, vector style, bold colors, minimal background, aspect ratio 1:1
Different platforms and use cases require specific image dimensions. Using the correct aspect ratio ensures your images display properly without cropping or stretching.
Midjourney: /imagine [prompt] --ar 16:9
DALL-E: Select size in the interface
Stable Diffusion: Set width/height params
Tip: Include aspect ratio in your promptFormula
Aspect Ratio = Width / Height | GCD Simplification: W:H = (W/GCD):(H/GCD) | Scale to target: NewW = TargetH × (W/H)GCD = Greatest Common Divisor — used to simplify ratio (e.g., 1920/1080 → GCD=120 → 16:9)
TargetH = Desired output height; multiply by ratio to get correct width
W/H = Decimal ratio used to maintain proportions when scaling to new dimensions
Worked Example
Instagram Post: 1080×1080 → ratio
Did you know? The 16:9 widescreen aspect ratio was chosen as the HDTV standard in 1988 because it is the geometric mean of 4:3 (traditional TV) and 2.35:1 (cinematic widescreen), giving it the best average letterboxing for both formats.
Sources
Convert text to ASCII codes and back. Supports decimal, hex, binary, and octal formats.
Convert width/height to aspect ratios, scale dimensions, and generate responsive embed CSS for any layout.
Calculate required internet bandwidth based on devices and activities in your household.
Encode and decode Base64 strings. Convert text for data URIs, APIs, and safe data transmission.
Create CSS border-radius with visual controls for each corner. Generate circles, pills, and custom shapes.
Create CSS box shadows with multiple layers, live preview, and copy-ready code.