2:1 Aspect Ratio - Width, Height & CSS Dimensions
A 2:1 aspect ratio means width is 2 units for every 1 units of height. X (Twitter) post images and link cards (1200×600). At 1200px wide, the matching height is 600px. Use the calculator below for any width or height.
Dimensions
Simplified ratio
2:1
Common ratios
Social media
Photography
Common ratios
Social media
Photography
2:1 dimensions reference
X (Twitter) post images and link cards (1200×600). Sample calculation: 1200px × 600px preserves 2:1. Adjust width in the tool above to regenerate height instantly.
2:1 Aspect Ratio FAQ
What is the 2:1 aspect ratio?
2:1 expresses width-to-height as 2:1. X (Twitter) post images and link cards (1200×600). In CSS, write aspect-ratio: 2 / 1. The decimal width÷height value is approximately 2.0000.
If width is 1200px at 2:1, what is the height?
Multiply width by 1/2: 1200 × (1 ÷ 2) = 600px. Enter 1200 in the width field with ratio locked to 2:1 and the tool returns 600px automatically.
What pixel dimensions are common for 2:1?
X post images frequently target 1200×600 px at 2:1 for in-feed cards and link previews.
How do I set 2:1 in CSS?
Use aspect-ratio: 2 / 1 on a block container. Pair it with width: 100% or a fixed max-width; the browser computes height. For embedded video, wrap the iframe in a 2:1 box to prevent cumulative layout shift.
2:1 calculator vs generic resize tool: why use a ratio-specific page?
Ratio-specific pages document common resolutions and use cases for 2:1 without hunting presets. The embedded calculator is pre-loaded with 2:1 so you skip manual ratio entry - helpful when sharing links with teammates or clients.
Where is the full aspect ratio calculator?
The main Aspect Ratio Calculator supports any custom ratio, simplified GCD output, and all presets. Visit /dev-tools/aspect-ratio-calculator/ for the complete tool with methodology and cross-links to other Dev Tools.
Sources & review
Last reviewed: