How it works
Resize an image to a new width while preserving its aspect ratio. Rounded pixel height may cause a tiny ratio difference.
Worked example
Show example inputs and result
Original width: 1,920 · Original height: 1,080 · New width: 1,280.
- New height
- 720 px
Questions and answers
Why are some results rounded?
Results display up to 8 decimal places. Calculations use the unrounded values; very small values use scientific notation. JavaScript floating-point arithmetic can introduce tiny rounding differences.
Are my inputs sent to a server?
The calculator processes inputs in your browser. Its code does not send your values to a server.
Method reviewed: October 8, 2026 · Methods & accuracy