Image Crop Calculator
Calculate a maximal crop rectangle for a target aspect ratio.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: No image is uploaded or processed; results use supplied pixel dimensions and an explicit anchor only.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use Image Crop Calculator
Fill in the fields:
- Source width (px): 1 to 1,000,000.
- Source height (px): 1 to 1,000,000.
- Target ratio width: 0.001 to 1,000,000.
- Target ratio height: 0.001 to 1,000,000.
- Horizontal anchor (%): 0 to 100.
- Vertical anchor (%): 0 to 100.
Press “Calculate crop”.
Copy the result, or download it as image-crop.json.
About this tool
Calculate a maximal crop rectangle for a target aspect ratio.
Pixel-rectangle arithmetic only. No image is loaded or modified.

