What Skew Is and Why Scans Have It
A degree sounds like nothing until you read a page of it: lines drift, the eye keeps re-finding the margin, and anything downstream that assumes upright pages — OCR especially — starts making mistakes. Skew is also contagious in archives: a crooked scan photocopied or re-scanned for years stays crooked in every copy. Straightening once, at the source file, fixes every future use.
This tool corrects the fractional tilts that scanning produces. It is not a page rotator: a page turned sideways or upside down needs quarter-turns, which the PDF Page Rotator does without touching the page's content at all.
How to Straighten a Scan, Step by Step
Read the per-page report before you file the result away. A healthy run on a typical feeder scan shows most pages corrected by a consistent small angle — the same crooked feed tilts every sheet alike. Wildly varying angles, or a big correction on an unusual page (a photo, a chart), deserve an eyeball on that page in the output.
Under the results sits a share row. Copy Summary puts the page-by-page angle report on your clipboard; Share Link passes this page on; Email Summary opens your mail app with the report written. Reset clears everything and asks for confirmation first.
How the Tool Detects the Angle
Two guards keep the measurement honest. First, a confidence check: the best angle must beat the untilted profile by a clear margin, or the page is declared straight — noise is not allowed to become a correction. Second, a floor: tilts under about a third of a degree are reported but not applied, because rotating by less than the measurement's own uncertainty trades one guess for another.
The search is deliberately narrow. Skew from real scanning lives within a few degrees; widening the range would mostly give weird pages (diagonal artwork, landscape tables) more room to fool the profile. A page tilted beyond 5° has a different problem and better tools — a re-scan, or a manual rotation.
Best-Effort, Honestly: When Detection Misses
This page uses the words “best-effort” in its title, its settings and its results because the alternative — presenting an estimate as a certainty — is how tools quietly ruin documents. You are the final check, and the tool is built to make checking easy: consistent angles across a run of similar pages are trustworthy; a lone strange angle on an odd page is a flag, not a fact.
If a document matters and one page is wrong, the practical routes are: re-scan that page straighter (best), fix it in a desktop editor with a manual angle (full control), or accept the tilt on that page. What the tool will not do is pretend.
Pages Become Images — the Standing Trade-Off
For the tool's actual job this trade is usually fair: the input was a scan, whose pages were images already — nothing structural existed to lose. The honest exception is the mixed document (some born-digital pages, some scans): the digital pages also come out as images. If that matters, split the document, deskew only the scanned part, and merge it back.
Searchability can be rebuilt afterwards with OCR PDF — and OCR genuinely works better on straightened pages, so the chain scan → deskew → OCR is the standard order for a reason.
Born-Digital PDFs Gain Nothing
If a born-digital document looks tilted, the odds are that the tilt is inside an image placed on the page (a crooked scan embedded in a report). Deskewing the whole page would tilt everything else to favour that image. The right fix is at the source: straighten the image, then rebuild the document — or extract the image with Extract Images from PDF, straighten it as a scan of its own, and rebuild the page.
Reading the Per-Page Results
Patterns in the report are diagnostic. The same angle on every page: one crooked feed, perfectly corrected. Angles alternating in sign: pages fed from a stack that rocked, or a book scanned two-up. A single page at the range edge (±5°): treat it as suspect and look at it — the true tilt may be larger than the search window. No corrections at all on an obviously crooked scan: the content gave the profile nothing to hold, and a re-scan is the honest fix.
Choosing a Render Resolution
Because the output is image-based, the DPI you pick is also the output's ceiling of quality: a page rendered at 150 DPI and later printed large will look like what it is. For an archive master, 200 DPI is the safer default; for a working copy you will OCR and discard, 150 DPI is plenty and faster.
What to Do After Straightening
One ordering note if you plan several fixes: rotate first (quarter-turns, content-preserving), deskew second (fractional tilt, image-based), OCR last (it wants final geometry). Doing OCR before deskew bakes the tilt into the text layer's coordinates; doing it after gives the recogniser the straightened pages it assumes.
What This Tool Cannot Do
Perspective deserves its own sentence because phone “scans” suffer from it most: if the top of the page is narrower than the bottom in the image, no rotation straightens it — the geometry is a projection, not a tilt. Dedicated scanner apps correct perspective at capture time; this tool's honest advice for a keystoned page is to re-capture it flatter and squarer.
Your Files Never Leave Your Device
Close the tab and everything is gone — which also means you should download the straightened copy before you close it, and keep your original scan as the untouched source.
Sources & References
- pdf.js — Mozilla's PDF renderer, which this page uses to render every page for measurement and rebuilding; the project site explains what the library does.
- pdf.js on GitHub — the source of the renderer loaded here (version 3.11.174), including the canvas rendering API the measurement is built on.
- pdf-lib — the open-source library this page loads (version 1.17.1) to rebuild the straightened page images into a new PDF.
- Wikipedia — Hough transform — the classic family of techniques for detecting lines and angles in images, closely related to the projection-profile measurement used here.
- Wikipedia — Optical character recognition — why recognisers assume upright text lines, and therefore why deskewing comes before OCR in a scanning workflow.
- MDN Web Docs — ImageData — the pixel array interface the detector reads to find each page's ink.
- Wikipedia — ISO 32000 — the international standard that defines the PDF format this tool reads and writes.
Sources checked December 2026.