Straighten the pages of a PDF

A slightly tilted scan — two or three degrees — tires the reader and gives a sloppy look to an otherwise fine document: an ID photographed in a hurry, a form scanned askew on the glass, an invoice shot at a slight angle. Deskew detects the tilt angle of each page by analysing its text-line orientation, then rotates it around its centre to square it up — automatically, page by page. It is the standard fix after fast scanning or photographing documents, before archiving or sending. Detection covers typical tilts — up to about five degrees, in half-degree steps — relying on line alignment: a dense text page yields a reliable angle, a purely graphic or very noisy page may stay as-is. Honest limit: corrected pages are then rewritten as images — the result’s text is no longer selectable, which matters little on a scan but counts on a native PDF. Angle analysis and correction run locally, up to 100 pages and 50 MB per file. Straightening also improves downstream processing: OCR on squared text gives far better results than on a tilted scan — chain deskew then “OCR” for a searchable document, or deskew then “Split pages in two” for a book photographed as a double spread.

FAQ

Up to which angle does the correction work?

Typical scan tilts — up to about five degrees, measured in half-degree steps from text-line alignment; beyond that the document was probably photographed at an angle rather than scanned, and perspective correction is a different problem.

How is the angle detected?

By analysing the orientation of text lines and strokes on each page — which is why a text document straightens better than a purely graphic page.

Is the scan quality affected?

Rotating by a few degrees slightly resamples the page image — imperceptible in use, as pages are rendered at high resolution then re-encoded as good-quality JPEG. The real consequence: pages become images, so the output text is no longer selectable — irrelevant for a scan, worth knowing for a native PDF.

Can I straighten then split double pages?

Yes — deskew first so each half-page is square, then “Split pages in two” restores one page per sheet; the chain works in either order but deskew-first gives cleaner cuts.

Are my scans sent for analysis?

No — angle detection and correction run in your browser on your device; you can verify in the Network tab that no request carries the document.

Should I deskew before or after OCR?

Before — squared text lines give the recognizer far better results than tilted ones; deskew then OCR is the reliable chain for a searchable scan.

Why do some pages stay tilted?

Pages with little or no text — photos, graphics, very noisy scans — give the detector too few alignment cues to measure a reliable angle; they are left untouched rather than risk a wrong rotation.

Does deskew change the page size?

No — page dimensions are preserved: the content pivots around the centre inside the same frame. Rotation exposes thin background corners at the edges, invisible on a light-background scan.

Up to which tilt does deskew correct?

Detection sweeps up to about five degrees in half-degree steps — the standard case of pages laid askew on the glass. A page lying at 45° calls for “Rotate pages”, not straightening.

Does deskew fix perspective distortion?

No — the tool rotates the page within its plane to correct tilt; it does not undo the trapezoid warp of a photo taken at an angle. For those, crop the photo first or rescan properly.

Can I straighten only some pages?

The tool processes the whole document — already-square pages come out nearly unchanged, detection measuring an almost-zero angle. To treat only a section, extract it first with “Extract pages”.

Does the straightened file get heavier?

Often a little: each page becomes a good-quality JPEG image, which can outweigh a native-text document. Follow with “Compress a PDF” if size matters.

Is my scan uploaded for straightening?

No — angle detection and rotation run locally in your browser: a confidential scan never leaves your device, which also makes the tool usable offline once the page is loaded.

How much tilt can the correction handle?

The deskew straightens the small rotations typical of scanners — a few degrees of drift per page. A page scanned sideways (90°) is a rotation, not a skew: fix those with Rotate pages instead.

How to proceed

  1. Drop your scanned PDF into the upload area
  2. Run the deskew — each page angle is measured then corrected
  3. Download the straightened PDF
  4. Check a few pages of the result, especially low-contrast or text-poor ones
  5. Chain with OCR if the scan must become searchable — squared text improves recognition