Image Cropper
Professional photo cropping tool with social media presets, aspect ratio locking, and rotation control. Edit images locally in your browser.
Upload an image to start
About
Visual composition defines the impact of digital imagery. Whether adjusting a photograph for a specific social media layout or isolating a subject for a product catalog, precise cropping is the primary step in the post-processing workflow. Incorrect dimensions often lead to automatic center-cropping by platforms, which can remove critical visual information or text overlays. This tool allows users to manually define the active area of an image using coordinate-based logic rather than relying on automated algorithms.
Accuracy in aspect ratios is mathematically significant. A mismatch between the source ratio Rsrc and the target container Rtgt forces the rendering engine to either pad the image with empty space or stretch the pixels, causing distortion. By enforcing constraints such as w = h for square avatars or 16:9 for video thumbnails, this utility ensures pixel-perfect alignment. The process occurs entirely within the browser client, ensuring that high-resolution assets are processed without the latency or privacy risks associated with server-side uploads.
Formulas
The cropping operation relies on a coordinate mapping function that translates the visual DOM elements to the intrinsic pixel data of the source image. If the display width is wdisp and the natural image width is wnat, the scale factor k is defined as:
When a crop region is selected with top-left coordinates (xui, yui) and dimensions (wui, hui), the extraction parameters passed to the canvas context are calculated by applying the scalar:
Reference Data
| Platform | Placement | Dimension (px) | Aspect Ratio |
|---|---|---|---|
| Square Post | 1080 × 1080 | 1:1 | |
| Portrait Post | 1080 × 1350 | 4:5 | |
| Landscape Post | 1080 × 566 | 1.91:1 | |
| Stories / Reels | 1080 × 1920 | 9:16 | |
| Profile Picture | 170 × 170 | 1:1 | |
| Cover Photo | 820 × 312 | 2.63:1 | |
| Shared Image | 1200 × 630 | 1.91:1 | |
| Twitter (X) | Header Photo | 1500 × 500 | 3:1 |
| Twitter (X) | In-Stream Photo | 1600 × 900 | 16:9 |
| YouTube | Thumbnail | 1280 × 720 | 16:9 |
| YouTube | Channel Art | 2560 × 1440 | 16:9 |
| Banner Image | 1584 × 396 | 4:1 | |
| Post Image | 1200 × 627 | 1.91:1 | |
| Standard Pin | 1000 × 1500 | 2:3 | |
| TikTok | Video Frame | 1080 × 1920 | 9:16 |