# Straighten Skewed PDF Pages

> Detects skew on each page by measuring text baseline angles, then rotates the page around its center to correct it. Bookmarks and form fields keep their targets, and PDF/A inputs come out as PDF/A. Detection and rewrite run locally via PDF.js and pdf-lib, so the document never leaves the tab.


Live tool: https://lofttools.com/tools/pdf-tools/deskew-pdf

Category: PDF & Documents

## How it works

1. **Select PDF** — Drag and drop your skewed PDF file or click to browse
2. **Deskew** — Skew angle is automatically detected and pages are straightened
3. **Download** — Download your straightened PDF instantly

## FAQ

### How does deskew detection work?

The tool analyzes text line angles to detect skew and applies precise rotation to straighten each page.

### Does this preserve bookmarks and form fields?

Yes. Each page rotates around its center; bookmarks and form fields keep their target positions on the deskewed page.

### What PDF versions are supported?

PDF 1.0 through 2.0. Encrypted files require unlocking first; PDF/A inputs come out as PDF/A.

## Tips

- **Detects skew from text lines** — Each page is analysed independently using text baseline angles, so a stack of crooked phone-camera scans gets straightened page by page.
- **Bookmarks keep their targets** — Rotation pivots around the page center, so existing bookmark and form-field positions still land where they should.
- **Encrypted PDFs need unlocking first** — PDF/A inputs come out as PDF/A. Encrypted inputs fail explicitly until you remove the password.

## Privacy — what we do not do

This tool runs entirely in the browser via WebAssembly. Your file never reaches a Loft Tools server. Specifically:

- **No upload.** The file bytes load into the browser tab's memory and process on your own CPU. Open DevTools → Network and observe zero outbound requests carrying file data while Straighten Skewed PDF Pages runs.
- **No AI training on your file.** Loft does not train models. We could not train on a file we cannot see.
- **No content scanning.** No virus, copyright, or content-moderation pass against your file. The bytes are not accessible to us.
- **No server-side log of file contents, filenames, or EXIF metadata.** Cloudflare edge captures URL and truncated IP for abuse defense (standard CDN behaviour). Cloudflare Web Analytics records anonymous page hits, no cookies, no PII. Nothing about your file content reaches any log.
- **No retention.** Close the tab and the file leaves browser memory. No backups exist on our side because no copy ever existed on our side.
- **No account.** No email, no signup, no auth, no telemetry tied to you.
- **Offline-capable after first visit** (PWA). Once you've loaded a tool, it caches; later sessions work without internet. For high-sensitivity files, run the tool once online to warm the cache, then disconnect before processing.

Compare with upload-based services: each transmits your file to a processing server. Even over HTTPS, each has logs, retention windows, and subpoena exposure. Loft has none of these because the server architecture does not include your file.

## More

- All tools: https://lofttools.com/tools
- Category: https://lofttools.com/tools/pdf-tools
- LLM index: https://lofttools.com/llms.txt
