Deskew PDF

Automatically straighten tilted scanned pages using OpenCV.

Click to select files or drag and drop

One or more PDF files

Your files never leave your device.

How It Works

1

Upload PDF

Select your scanned PDF with tilted pages

2

Auto-Detect

OpenCV analyzes and detects skew angles

3

Download

Get your straightened PDF instantly

Related PDF Tools

Rasterize PDF

Convert to image-based PDF

Compress PDF

Reduce PDF file size

Repair PDF

Fix corrupted PDF files

Rotate PDF

Rotate PDF pages

OCR PDF

Make PDF searchable

Frequently Asked Questions

How does the tool detect that a page is tilted?

Each page is rendered to an image at the DPI you choose, then OpenCV analyzes it: it fits a minimum-area rectangle around the dark pixels and, as a fallback, measures the angle of dominant text lines with a Hough transform. The resulting angle is what the results panel reports for that page.

What does the Skew Threshold setting do?

Pages whose detected tilt is below the threshold are left alone. The default of 0.5 degrees catches visible tilt without touching pages that are already straight; drop it to 0.1 degrees when you want the tightest alignment before OCR, or raise it to 1 or 2 degrees to correct only clearly crooked pages.

Does deskewing keep the text selectable?

No. Every page in the output, including pages that didn't need correction, is written as an image at the processing DPI, so any existing text layer is lost. Run the result through OCR PDF afterward if you need searchable text; OCR works better on straightened pages anyway.

Which DPI should I use when deskewing a scan?

150 DPI is fast and accurate for ordinary letter-sized scans. Use 200 or 300 DPI for small print or fine detail, and 100 DPI when speed matters more than precision. The setting also controls the resolution of the output pages, so higher values produce larger files.

Will the page size change after rotation?

Output pages keep the original page dimensions. The rotated image is padded with white in the corners exposed by the rotation and then fitted onto the page, so content may shrink by a hair but nothing is pushed off the sheet.

Does it work on every kind of scan?

It works best on pages with clear horizontal lines of text. Pages that are mostly photos, drawings, or diagonal design elements give the detector little to measure, so the angle can be off; check the results panel and keep your original for those.

How do I know which pages were corrected?

After processing, a results panel lists every page with its detected angle and marks the ones that were rotated; pages under the threshold show their angle but are labeled as untouched. If you queued several PDFs, each downloads under its original name and the panel shows the last file processed.

Are my scans uploaded for processing?

No. The PDF rendering and the OpenCV analysis both run in your browser through WebAssembly. The engine is downloaded the first time you use it, but your documents never leave your computer.