Keep the red/blue boundary in a square
Input and settings
4×2 px, two red columns and two blue columns; 1:1 preset, PNG.
Expected result
A 2×2 px crop starting at x=1. Each exported row contains one red pixel and one blue pixel.
Crop JPEG, PNG, or WebP images freely or with common aspect-ratio presets.
Drag across the preview to change the crop area.
The preview may be scaled down to fit the page, but the crop summary reports the approximate pixel dimensions taken from the original image. The saved file uses that crop area rather than the smaller on-screen preview size.
Drag with a pointer to redraw or move the crop. After choosing a fixed ratio, arrow keys move the selected area by one preview pixel, or ten while holding Shift.
Drag across the preview for a free crop. Choosing a preset creates the largest centered crop at that ratio, which you can reposition by dragging.
Processing stays in your browser. Images are not stored or uploaded, metadata is not carried into the output, and transparent pixels become white in JPEG files.
Compare a centered square crop with exporting the full source image.
Example buttons replace the inputs and settings above and calculate. Restore previous input steps back one example at a time. After trying multiple examples, repeat restore to return to your original input. This history is lost when the page closes.
4×2 px, two red columns and two blue columns; 1:1 preset, PNG.
A 2×2 px crop starting at x=1. Each exported row contains one red pixel and one blue pixel.
Select the same 4×2 px fixture; Free preset, PNG.
A 4×2 px export. Each row remains red, red, blue, blue.
Ratio presets choose the largest centered area. Free starts with the whole image and supports dragging. Arrow keys move the selection by 1 px, or 10 px with Shift. Preview dimensions can differ from source dimensions.
One JPEG/PNG/WebP up to 20,000,000 bytes and 40 megapixels. Browser redrawing rounds output dimensions to integers. JPEG flattens transparency onto white and is lossy. Metadata and hidden RGB values are not guaranteed. Restore includes the original file, manually moved crop and format.
Independently select the middle two columns or all columns from the known 4×2 pixels, then decode and verify every exported PNG pixel.
Selecting 1:1 for a 4000 × 3000 image starts with a centered 3000 × 3000 crop, leaving 500 pixels outside the selection on each side.
If the subject is off-center, reposition the selection before saving. Output dimensions follow the crop in the original image, not the on-screen preview size.
No. The crop is saved as a new file.
No. Canvas export does not copy EXIF or GPS metadata.
Files are limited to 20 MB and 40 megapixels.
Share only the tool name and public URL. Your input and results are not included.
Keep any content you need before clearing. This tool does not autosave inputs or results. Reloading or closing the page, clearing inputs or resetting may discard your work.
Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.