# Deskew PDF Online - Straighten Crooked Scans Automatically

> Straighten skewed scanned PDFs and images: per-page skew detection (±15°, 0.1° steps), before/after preview, manual override, border removal, original sizes.

- URL: https://qilingtools.com/en/pdf/deskew
- Category: PDF Tools (https://qilingtools.com/en/pdf)
- Tags: [PDF](https://qilingtools.com/en/tags/pdf), [Scanning](https://qilingtools.com/en/tags/scan)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

When paper goes into a scanner or copier at an angle, every page of the PDF comes out tilted — awkward to read, ugly to print, and worse for OCR. This tool renders each page, binarizes it and measures the angle of the text lines with a projection profile: it searches ±15° coarsely, then refines to 0.1°, and rotates the page back, filling the corners with white. After detection you get a before/after preview of every page with horizontal guide lines, and you can type a different angle or rotate a whole page by 90°, 180° or 270°. Optionally paint dark scanner borders around the edges white, and auto-fix sideways or upside-down pages (judged from text-line direction and the balance of ascenders and descenders, which suits horizontal text). Besides PDFs you can upload several scanned images (JPG, PNG and more) to get one straightened PDF. Output pages keep the original page sizes, with 150, 200 or 300 DPI and adjustable JPG quality. Everything runs in your browser; files are never uploaded.

## How to use

1. Upload a scanned PDF or scan images (several allowed)
2. Choose resolution, JPG quality, border removal and auto-rotation, then click Detect skew
3. Review each page’s before/after preview, adjust angles or rotation if needed, then click Create straightened PDF and download

## Features

- Automatic skew detection by projection profile, ±15° at 0.1°
- Per-page before/after preview with guide lines
- Manual angle and 90° rotation override per page
- Dark scan border removal
- Optional auto-fix for sideways and upside-down pages
- Works with PDFs and JPG/PNG scans
- Original page sizes, selectable DPI and JPG quality
- Runs locally, nothing uploaded

## FAQ

### How does automatic detection work, and how accurate is it?

Each page is turned into black and white, and for every candidate angle the ink pixels are projected along that direction. When the angle matches the text lines, the projection forms sharp peaks (lines) and valleys (line spacing), giving the highest concentration. The search runs from −15° to +15° in 0.5° steps, then refines around the best value in 0.1° steps. Text-heavy pages are usually accurate to 0.1°; pages that are mostly pictures may show “No text lines found” and stay at 0°, in which case you can type the angle yourself.

### Will the text still be searchable after deskewing?

No. Straightening rotates each page as an image, so every output page is a JPG and any text layer in the original PDF is rasterized. Scans are images anyway, so little is lost; if you need search, run the straightened file through our Scanned PDF OCR tool — recognition usually improves once pages are level.

### When should I use auto-fix for sideways or upside-down pages?

Use it when some pages were scanned turned around or sideways. The tool compares horizontal and vertical projections to see whether text lines run across or down the page, then uses the fact that Latin text has more ascenders (b, d, h, k…) than descenders (g, p, y…) to tell upright from upside down. It suits horizontal English or mixed text; vertical CJK or picture-only pages may be misjudged, so it’s off by default and every page’s rotation can be changed back by hand.

### Will the file get bigger? Do page sizes change?

Page sizes stay exactly the same (width and height swap only when you rotate a page by 90° or 270°). File size depends on resolution and JPG quality: 200 DPI at 85% is usually similar to a typical scan; choose 150 DPI or lower quality for smaller files, or 300 DPI for print and archiving. Everything runs in your browser and nothing is uploaded.

## Related tools

- [Merge PDF](https://qilingtools.com/en/pdf/merge): Free online PDF merger: combine several PDF files into one in the order you choose, with reordering. Processed locally in your browser, no upload, no sign-up.
- [Split / Extract PDF](https://qilingtools.com/en/pdf/split): Free online PDF splitter: extract a page range into a new PDF, or split every page into its own file and download them as a ZIP. Processed locally.
- [Rotate PDF](https://qilingtools.com/en/pdf/rotate): Free online PDF rotator: rotate all or selected pages by 90°, 180° or 270° to fix scanned documents. Processed locally, no upload.
- [PDF to Image](https://qilingtools.com/en/pdf/to-image): Free online PDF to image converter: render every page as a high-resolution JPG or PNG at 72/150/300 DPI, download all as a ZIP. Processed locally, no upload.
- [Image to PDF](https://qilingtools.com/en/pdf/from-image): Free online image to PDF converter: combine JPG, PNG and WebP images into one PDF in order, with A4 or image-sized pages. Processed locally, no upload.
- [Compress PDF](https://qilingtools.com/en/pdf/compress): Free online PDF compressor: re-render pages with compressed images to shrink scanned and image-heavy PDFs, with adjustable quality. Processed locally.
- [Watermark PDF](https://qilingtools.com/en/pdf/watermark): Free online PDF watermark tool: add text watermarks to every page, tiled or centred, with opacity and angle controls. Any language, processed locally.
- [Delete PDF Pages](https://qilingtools.com/en/pdf/delete): Free online tool to delete PDF pages: remove pages by number or range and keep the rest, then download. Processed locally, no upload.
