Aspect Ratio Calculator
Scale Proportionally
Uses the ratio above (1.7778) to scale a single dimension.
What This Tool Does
Aspect Ratio Calculator is built for deterministic developer and agent workflows.
Calculate aspect ratios and proportionally scale width/height, with common presets and a CSS aspect-ratio output.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/aspect-ratio-calculator/
For automation planning, fetch the canonical contract at /api/tool/aspect-ratio-calculator.json.
How to Use Aspect Ratio Calculator
- 1
Enter your dimensions
Type a width and height into the two input fields, or click a preset button like 16:9 or 4:3 to fill them in for you.
- 2
Read the results
The simplified ratio, decimal ratio, and CSS aspect-ratio value appear immediately below the inputs as you type.
- 3
Lock and scale
Toggle the lock to preserve the ratio, then change one dimension and the other adjusts automatically to stay proportional.
- 4
Copy the CSS
Press Copy CSS to put the aspect-ratio declaration on your clipboard, then paste it straight into your stylesheet.