Deskew
Straighten crooked scanned pages by detecting each page's tilt, or by rotating all pages by an angle you set.
Upload
Select or drag-and-drop your file.
Adjust
Choose your options. Everything happens in your browser.
Download
Save the finished file instantly. No watermarks.
A page fed into a scanner at a slight angle produces a scan where every line of text slopes. It is harder to read, looks careless when sent to a client or a court, and gives OCR software a harder time. Deskewing rotates the page back so the lines run level. A tilt of even one or two degrees is noticeable on a full page of text, because the error accumulates along every line. Straightening is therefore worth doing whenever a scan will be read on screen, printed again or passed through OCR, and it is quick enough to run as a routine step on every batch of scanned paperwork.
PDFora's deskew tool has two modes. Auto-detect looks at a small, low-resolution render of each page, collects its dark pixels, and tries angles from minus 6 to plus 6 degrees in half-degree steps. For each angle it counts how the dark pixels fall into horizontal rows; the angle where the rows are sharpest, meaning the text lines line up best, is chosen. Manual mode skips the detection: you enter the tilt in degrees (positive means the page leans clockwise) and every page is turned back by that amount.
The correction is applied to a full render of each page at twice the normal scale, and the rotated page is saved as a JPEG image at quality 0.9 on a page of the original size. The corners uncovered by the rotation are filled with white. The result, yourfile-deskewed.pdf, is a set of page images, so the text layer is gone. That trade-off is normal for deskewing a scan: the scan was already a picture of the page, so the main loss is any OCR text that had been added on top, and running OCR PDF on the straightened file afterwards gives you a searchable PDF again.
How to straighten a scanned PDF
- Open Deskew PDF and select one scanned PDF.
- Leave Skew angle on Auto-detect for documents scanned page by page, where each page may be tilted differently.
- If every page is off by the same amount, choose Manual and enter the tilt; a positive value means the content leans clockwise, and the tool turns it back the other way.
- Click Deskew & download and wait while each page is rendered, measured and rotated.
- Open the result and check a few pages with little text, such as covers or signature pages; those are where auto-detection is least reliable.
When to use this tool
- Tidying contracts or statements scanned on an office feeder that pulled pages in at an angle.
- Straightening phone scans of receipts and invoices before sending them to an accountant.
- Preparing scanned pages for OCR, which works better on level lines of text.
- Cleaning up archived letters or records before putting them in a shared folder.
- Fixing pages from a book or bound report that could not lie flat on the scanner glass.
- Making scanned exhibits look presentable in a legal or tender submission.
What to know before you start
- Auto-detect only searches between -6 and +6 degrees in 0.5-degree steps. A page tilted more than that, or by a fraction between steps, will be only partly corrected.
- Detection relies on lines of dark text. Pages that are mostly photos, very faint, or almost blank may get no correction or a wrong one. A page with fewer than about 100 dark pixels in the small preview is left at 0 degrees.
- Each page is measured separately in auto mode. Manual mode applies the same angle to every page.
- The output is image-only. Text selection, search, links and bookmarks are lost, even if the original scan had an OCR text layer. Run OCR PDF on the straightened file afterwards to add a new text layer and make it searchable again.
- Rotation keeps the page size, so the content's corners can be clipped slightly at the edges and white wedges appear in the opposite corners. With the small angles involved this is usually only a few millimetres.
- Pages are rendered at about 144 dpi and stored as JPEG, so a high-resolution original scan will lose some detail and the file size can change in either direction.
Tips for the best results
- Try Auto-detect first. If a few pages come out wrong, note their tilt and fix those pages separately in manual mode.
- To estimate a manual angle, measure how far a text line rises over its length: a rise of 1 cm over 19 cm is about 3 degrees.
- Deskew before OCR, not after. OCR reads straight lines more reliably, and deskewing after OCR would throw the new text layer away.
- If the original scan had wide margins, the clipping at the corners will not touch any content. Rescan with a little more margin if text sits close to the edge.
- Keep the original scan. Deskewing re-renders the pages, and repeating it on its own output reduces quality each time.
A worked example: a freelancer's scanned client contract
A freelance designer receives a signed 9-page contract back from a client, scanned on a sheet feeder. Most pages lean slightly to the right, by different amounts, and page 9 is the signature page with very little text.
She runs the file through Deskew with Auto-detect. Pages 1 to 8, full of text, come out level. Page 9 is barely changed because the detector has little text to work with. She extracts the original page 9, deskews it in Manual mode with the 2-degree tilt she measured on the signature line, and merges it back.
Finally she runs OCR PDF on the corrected file and keeps the searchable PDF it produces, so she can search it for the payment terms later. The original scan stays in her archive as the signed record.
The deskewed copy is the one she shares with her accountant, because it prints straight and reads easily on screen. The whole job, including the separate fix for the signature page, took a few minutes in the browser.
Troubleshooting
- A page was rotated the wrong way
- The detector picked the wrong angle, usually on pages with little text or with strong lines in images. Process that page in Manual mode with your own angle.
- The page is still slightly crooked
- Auto-detect works in 0.5-degree steps and only up to 6 degrees. Use Manual mode with a precise value, or rescan the page straighter.
- Text near the corners is cut off
- The rotated content keeps the original page size, so corners can be clipped. Use a smaller correction, or rescan with more margin around the text.
- I can no longer search the document
- The output is image-only. If you need the text, run OCR PDF on the deskewed file to make it searchable again.
- Nothing changed on any page
- The pages may be within half a degree of level, or too light for detection. Try Manual mode, or check the scan contrast.
- Processing is slow
- Each page is rendered twice and rotated in the browser. Long scans take time; split very large files into parts.
Frequently asked questions
How does auto-detection find the angle?
It tests angles from -6 to +6 degrees in 0.5-degree steps and picks the one where dark pixels line up into the most distinct horizontal rows, which is where text lines are level.
Which direction is a positive manual angle?
The field describes the tilt, not the correction: enter a positive value for a page that leans clockwise and the tool rotates it anticlockwise by that amount, and vice versa. If the result gets worse, flip the sign.
Will deskewing remove my OCR text layer?
Yes. Pages are re-rendered as images. Run OCR PDF on the deskewed file afterwards to get a searchable PDF again.
Does it work on digital PDFs, not scans?
It will run, but there is nothing to straighten in a digital document, and you would lose the real text. Use it on scans.
Can it fix pages that are sideways or upside down?
No. It handles small tilts. Use Rotate PDF for 90 or 180 degree turns.
Why is my deskewed file a different size?
Each page is saved as a JPEG at about 144 dpi, which can be smaller or larger than the original scan depending on its resolution and compression.