Image square
Centre-crop landscape or portrait images into a 1:1 square, optionally resize to a fixed side length and round the corners, then export PNG/JPEG.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Images are processed locally in your browser with Canvas and never uploaded.
Enter the square side length; leave it blank to use the shorter edge. The image is scaled to fit.
Leave blank or use transparent for an alpha background, or enter a colour such as #ffffff.
Pick an image first (PNG / JPEG / WebP / GIF all work).
Result details
Pick an image and the centred square preview shows up immediately.
What this tool does
- Match a platform upload size: e-commerce listings and avatars want 1:1, so the image is centre-cropped on the shorter edge and never stretched.
- Produce a fixed side length: enter 800 to get exactly 800 × 800 (nearest-neighbour scaling), handy for checking a batch pipeline first.
- Build rounded square artwork: set the corner radius to 15%–25% so the corners are cut and stay transparent, then export PNG.
- Need a solid backdrop? Set the corner fill to #ffffff so a JPEG export has no black edges.
Example
Input
Source 4 × 2, side left blank, radius 0%
Output
Crop origin x=1, y=0 · 2 × 2 Output size 2 × 2 (4 pixels)
This is the real output of the pure pixel logic: the square side is the shorter edge (2) and the horizontal offset is (4 - 2) / 2 = 1. Entering a side of 4 upscales the 2 × 2 crop to 4 × 4 with nearest-neighbour sampling, giving 16 pixels.
Frequently asked questions
Will cropping stretch the image?
No. The image is first centre-cropped to a square on the shorter edge and then scaled proportionally to the requested side length, so the aspect ratio is always preserved.
Can the side length be larger than the source?
Yes, but that is nearest-neighbour upscaling: pixels are enlarged rather than invented. Use a dedicated upscaler for smooth results.
What is the difference between a blank and a coloured corner fill?
Blank (or "transparent") sets the corner alpha to 0, which needs a PNG export to survive. A colour such as #ffffff gives an opaque fill, so a JPEG export has no black edges.
How large can the image be?
Up to 8,000,000 input pixels, and the output side can be at most 2828 (2828² ≈ 8,000,000). Larger values report an explicit side-length error.
Are my images uploaded?
No. Decoding, cropping, scaling, corner masking and encoding all happen in browser memory; there is no upload endpoint, so it works offline.
Keywords:1:1square crop