Creative
Hybrid (Browser + In-Memory API)

Deskew Image

Detect and straighten crooked document scans, receipts, and photos with alignment grids and auto-crop.

Last updated:

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.

1. Upload & Analyze

Drag in any crooked document or image. Our engine parses the pixels to prepare in-memory rendering parameters instantly.

2. Automatic Scan

The Auto-Detect search runs high-speed projections to locate structural lines and text rows in less than 50ms.

3. Straighten & Crop

Straighten the image. Use Auto-Crop to clip blank rotating corners and export a perfect rectangular document.

Deskew Options

Correction Angle0°
Alignment GridShow helper lines to align content
Auto-Crop CornersCrop empty margins after rotation
Background Fill

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.

Processing Engine

Client-side Canvas angle detection paired with Sharp backend rotation (/api/deskew-image).

Supported Inputs & Outputs

Input & output: PNG, JPG, WebP.

Limits & Edge Cases

Auto-detection works best on high-contrast text documents; final image rotation and auto-crop execute transiently on /api/deskew-image.

Automatic skew-angle detection plus manual fine rotation
Interactive horizontal/vertical alignment grid overlay
Auto-crop option to trim rotated edge triangles
Transparent, white, black, or custom margin fill colors

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

Step 1

Upload a tilted document scan or crooked photo.

Step 2

Click 'Auto-Detect Angle' or adjust the angle manually with the grid overlay enabled.

Step 3

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.

Explore All Tools