Deskew a scan
Level the pages of a scan that went through the feeder at an angle.
or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To deskew a scanned PDF, choose the file and press Straighten. Your browser renders each page, tests angles up to the limit you set in half-degree steps, picks the one where the text lines are level and rotates the page to match. The result is a straightened image PDF. Nothing is uploaded; every page is processed on your device.
How to straighten a scanned PDF
- STEP 1
Choose your scan
Pick one scanned PDF or several. Each page is checked separately, so a mix of straight and crooked pages is fine.
- STEP 2
Set the resolution
"Render resolution" from 1x to 3x controls how sharp the straightened pages are. 2x suits most office scans.
- STEP 3
Set the search range
"Search up to" sets the largest angle tested, from 2 to 10 degrees. The default 6 degrees covers normal feeder skew.
- STEP 4
Straighten and save
Press "Straighten the pages". The report shows the largest correction; save the file named with -straightened.
What skew is and why it matters
Skew is the small rotation a page picks up when it is fed into a scanner or photographed slightly off square. A tilt of one or two degrees looks careless in print, makes columns of figures hard to follow and noticeably hurts OCR, which expects lines of text to run horizontally.
Deskewing measures that angle and rotates the page back to level. It is usually the first clean-up step for scanned contracts, receipts and archives, before OCR or before the file is filed away.
What survives, and what does not
Each page is rendered with pdf.js and its skew is estimated by projection profile: the page is rotated through a range of angles and, at each one, the darkness of every row is summed. When lines of text are level, the profile shows sharp peaks and troughs; when they are tilted, it smears flat. The angle with the strongest contrast wins, the page is rotated by it on a white background, and the result is saved as a JPEG page in a new PDF of the same size.
What you keep
Page size and page order
The visual content of each page, levelled and on a clean white ground
A report of how many pages were processed and the largest correction applied
What you lose
Any text layer: pages come back as images, so run OCR afterwards to make it searchable
Every page is re-encoded as a JPEG, even pages that needed no correction
Pages that are mostly photos or diagrams have no text lines to measure and may not be corrected
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
Deskew a scan at a glance
| Input | Scanned PDF, several at once |
|---|---|
| Output | Image-based PDF, same page size |
| Angle range | Up to 2 to 10 degrees, in 0.5 degree steps |
| Runs on | Your device, in the browser |
| Engine | pdf.js, canvas and pdf-lib |
| Batch | Yes |
If something goes wrong
A page is still slightly crooked
The search moves in half-degree steps, so a small residual tilt can remain. If a page was skewed by more than the search range, raise "Search up to" and run it again.
I can no longer select or search the text
Straightening redraws each page as an image, which removes any text layer. Run the straightened file through OCR to make it searchable again.
It takes a long time on a big scan
Every page is rendered and tested at many angles. Lower the render resolution to 1x for a quicker first pass, or process long scans in sections.
Deskew a scan questions
How do I deskew a PDF for free?
Choose the scanned PDF here and press Straighten. Every page is measured and levelled automatically, with no watermark, account or page cap beyond what your device can hold in memory.
Is my scan uploaded to straighten it?
No. Rendering, angle detection and rotation all happen in your browser. That matters for scanned ID documents, contracts and medical letters, which are exactly the files people deskew.
Should I deskew before or after OCR?
Before. OCR reads level lines far more accurately, and deskewing removes any text layer anyway. Straighten first, then run OCR on the result.
How much tilt can it fix?
Up to 10 degrees either way, set by "Search up to". Typical feeder skew is a degree or two. A page scanned sideways needs Rotate PDF, not deskew.
Will deskewing change pages that are already straight?
The angle reads 0 and the page is not rotated, but it is still re-rendered as an image. If only a few pages are crooked, you can deskew those and merge them back.
Can I deskew a PDF on iPhone or Android?
Yes, in Safari or Chrome. Phones have less memory, so use 1x or 2x resolution for long scans to keep the tab responsive.