Deskew PDF
Straighten crooked scanned pages in your browser. The tilt of every page is measured and corrected automatically, and you can turn any page by hand before you download.
Free · no sign-up · nothing uploaded
How to straighten a scanned PDF
- Choose your scanned PDF, or drop it onto the box. It opens in your browser, so the file never leaves your device.
- Let the tool measure each page. It finds the lines of text on every page and works out how far they lean. The small page buttons show the result, such as 3 · ↻ 1.6°.
- Check the preview. The blue guide lines are level, so the lines of text should run along them. If a page is still off, drag the slider or type an angle.
- Download the straightened PDF. The button says how many pages will be turned, for example Straighten 7 pages and download. You get a copy named
yourfile-straightened.pdf; the original file is not changed.
Pages that already look straight are left exactly as they were. The tool corrects tilts of up to 15° either way.
Why scanned pages come out crooked
A scan is a photo of the page, so if the paper wasn’t square to the scanner, the text leans in the picture. The usual causes:
- The document feeder pulled the paper in at an angle. Thin receipts, mixed paper sizes and loose guides are the main culprits. The whole batch often leans by the same amount.
- The page was placed on the glass by hand and wasn’t lined up with the edge.
- It was photographed with a phone that wasn’t held level over the page.
- The original was printed or photocopied crooked, so even a perfect scan of it leans.
Straightening matters for more than looks. Crooked text is harder to read and print, and text recognition (OCR) makes more mistakes on it, because it reads the page one line at a time.
Automatic or by hand: when to adjust a page
The automatic measurement works from lines of text, so it is reliable on letters, invoices, forms and book pages. Check these pages by eye:
| Page shows | What it means |
|---|---|
| ↻ 1.6° | Leans anticlockwise; it will be turned 1.6° clockwise to level it |
| ↺ 2.0° | Leans clockwise; it will be turned 2° anticlockwise |
| straight | Already level (less than 0.2° off), so it is left alone |
| ? | Too little text to measure, such as a photo, a drawing or an almost blank page. Turn it by hand if it looks crooked |
| … | Still being measured |
- Photos and drawings have no neat lines to measure, so the tool leaves them alone. Use the slider and line up an edge you know should be level, such as a table border or the edge of a photo.
- Handwriting rarely runs perfectly level, so check those pages by eye and nudge the angle if needed.
- A whole batch leaning the same way: set one page right, then click Use … on every page to give every page the same angle.
- A page that is sideways or upside down is not crooked. It needs a quarter or half turn, which is more than this tool corrects.
Example: a bundle of receipts fed in at an angle
10 receipts scanned in one go for an expense claim
- Open the PDF. The tool measures each page; nine of them show between ↻ 2.1° and ↻ 2.4°, because the feeder pulled every sheet in at about the same angle.
- Page 6 shows ?. It is a faded till receipt with only a few printed lines, too little to measure.
- Go to page 6, type
2.3in the angle box and check that its lines now run along the guide lines. - The status line reads Straightens 10 pages of 10. Click Straighten 10 pages and download. The new PDF is only a couple of kilobytes bigger than the original.
Will it lower the quality or remove text?
No. The tool turns what is already on each page instead of taking a new picture of it. The scan keeps its original sharpness and file size, and any text you could select or search before (including text added by OCR) turns with the page and still works.
Two things to be aware of:
- The corners are trimmed slightly. The page keeps its size, so turning the content pushes a thin sliver past each corner and leaves a small white wedge at the others. On an A4 or Letter page turned by 2°, that is about 4 mm at the corners, usually just empty margin.
- Links and form boxes stay where they were. They don’t turn with the page, so on a turned page they can be a few millimetres off what they belong to.
If the PDF was digitally signed, the straightened copy no longer has a valid signature, because the file has changed. The tool warns you when it finds a signature.
Frequently asked questions
How do I straighten a page that is sideways or upside down?
That is a quarter or half turn, not a tilt, so it needs a page rotate rather than a deskew. This tool corrects pages that lean by up to 15° either way.
Should I deskew before running OCR?
Yes. Text recognition reads a page line by line, and crooked lines make it miss or mix up words. Straighten the PDF first, then run OCR on the straightened copy.
Can I straighten pages photographed with a phone?
Yes, if the photo is only tilted. The tool measures and turns the page up to 15°. It can’t fix the keystone shape you get when the phone was held at an angle over the page, where the top is narrower than the bottom.
Is my PDF uploaded?
No. The PDF is opened, measured and saved by your browser, so it never leaves your device. That makes it safe for bank statements, contracts and ID scans.
Sources
- Tesseract OCR documentation: Improving the quality of the output: skewed pages reduce the quality of line finding, so pages should be deskewed before OCR.
- PDF 32000-1:2008, section 8.3: coordinate systems and the transformation matrix, which turns page content without redrawing it.
Related Tools
Trim margins or whitespace from pages.
Apply legal Bates numbering.
Remove comments and markups.
Remove specific pages from a PDF.
Modify text and layout in-place.
Update title, author, and metadata.