Deskew Image
Detect and straighten crooked document scans, receipts, and photos with alignment grids and auto-crop.
Last updated:
Upload an image
Drag & drop or browse
Try with an Example
Don't have a tilted image ready? Click one of our pre-coded samples to see how the deskew algorithm works instantly.
Drag in any crooked document or image. Our engine parses the pixels to prepare in-memory rendering parameters instantly.
The Auto-Detect search runs high-speed projections to locate structural lines and text rows in less than 50ms.
Straighten the image. Use Auto-Crop to clip blank rotating corners and export a perfect rectangular document.
Deskew Options
All rotations are rendered live in CSS for previewing. Click 'Apply Changes' to execute high-fidelity cropping and downloading.
Deskew Image Overview
Fix tilted phone scans of receipts, book pages, contracts, and whiteboards without manual trial-and-error.
Use the browser-side Auto-Detect Angle button or toggle the alignment grid overlay to dial in tilt angle manually, select transparent, white, black, or matched border fill, optionally enable Auto-Crop to trim angled margins, and apply lossless-grade Sharp rotation via /api/deskew-image.
Client-side Canvas angle detection paired with Sharp backend rotation (/api/deskew-image).
Input & output: PNG, JPG, WebP.
Auto-detection works best on high-contrast text documents; final image rotation and auto-crop execute transiently on /api/deskew-image.
Straightening & Auto-Crop Features
Cleaner OCR accuracy: Straightening skewed scans improves downstream text extraction.
Zero leftover triangles: Auto-Crop trims the slanted corners created by rotation.
Document & Photo Cleanup
Straightening crooked receipt photos for expense reports and bookkeeping
Leveling tilted horizon lines in architectural or travel photographs
Deskewing a Scan
Upload a tilted document scan or crooked photo.
Click 'Auto-Detect Angle' or adjust the angle manually with the grid overlay enabled.
Toggle Auto-Crop or margin color and click 'Apply Changes' to download the straightened file.
Deskew Image FAQ
Why does Auto-Crop trim a bit of the outer image border?
Rotating a rectangular image creates triangular empty corners. Auto-Crop inscribes the largest clean interior rectangle so no angled background bars appear.
Are scanned documents stored on Imgira servers?
No. The file is sent transiently to /api/deskew-image for Sharp rotation in memory and discarded once the response finishes.
Discover More Tools
Related utilities across the Imgira catalog.