Image Crop Calculator

Calculate a maximal crop rectangle for a target aspect ratio.

Scope: No image is uploaded or processed; results use supplied pixel dimensions and an explicit anchor only.

Workbench

Inputs stay on this page.

Pixel-rectangle arithmetic only. No image is loaded or modified.

How to use Image Crop Calculator

  1. 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.
  2. Press “Calculate crop”.

  3. 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.