All PDF Tools
Navigation
Home
PDF Tools
Free PDF Deskew Tool — No Signup Required

Deskew PDF Online Free

Automatically straighten crooked scanned PDF pages, improve OCR accuracy, and fine-tune the angle by hand. Runs entirely in your browser — nothing is uploaded.

Drop your PDF to straighten crooked pages

Click to browse or drag & drop

No signup 100% private SSL encrypted

🔒 Your files never leave your device — detection and correction both run locally in your browser.

Pair Deskew PDF With These Tools

TL;DR

  • What it does: detects the tilt angle on every page of a scanned PDF and rotates each page back to straight.
  • How: converts each page to a binary image and searches for the rotation angle where lines of text line up most sharply — a coarse-to-fine "projection profile" search, not a lookup table or preset.
  • Privacy: 100% client-side. Detection, rotation, and PDF rebuilding all happen in your browser tab with pdf.js and pdf-lib — no file is ever sent to a server.
  • Cost & limits: completely free, no signup, no page or file-count cap, no watermark.
  • Limitation: works best on text-heavy scanned pages tilted up to about ±15°; pages that are mostly photos, blank, or rotated a full 90°/180° (use Rotate PDF for that) won't get a meaningful angle from this method.
Step-by-Step Guide

How to Straighten a Scanned PDF Free Online

Three steps. No install, no account. Files never leave your browser.

Upload Your PDF

Drag your scanned file into the box above, or click to browse. Nothing uploads to a server — the file is read directly by your browser.

Drag & Drop 100% Private

Review the Detected Angles

Every page is analyzed automatically. Check the dashboard and per-page cards, fine-tune any angle with the slider, or skip pages that don't need correction.

Auto-Detected Manual Fine-Tune

Straighten & Download

Click "Straighten All & Download." Your corrected PDF — and an optional JSON processing report — downloads instantly with no watermark.

No Watermarks Instant Download
Pro tip: if a page's auto-detected angle looks slightly off in the before/after preview, drag its slider by hand — the live preview updates instantly so you can dial in the exact angle before exporting.

Why PDFcrest

Built for Real Scanned Documents

Automatic detection with manual override, not a black box.

Per-page automatic detection

Every page gets its own detected angle and confidence score — a batch scan doesn't need to share one global rotation.

Manual angle control

Not fully happy with an auto-detected angle? Drag the -15° to +15° slider and watch the before/after preview update live.

100% private processing

Detection and correction both run in your browser tab using pdf.js and pdf-lib. Your file is never transmitted anywhere.

Three detection modes

Fast for a quick pass, Balanced for everyday scans, or High Precision for archival-quality accuracy — your choice, page by page.

Before/after split view

Drag the divider on any page to compare the original scan against the corrected version before you commit to a download.

Vector quality preserved

Pages that don't need correction are copied through untouched from the original file — only tilted pages get re-rendered.

Is This For You?

Who Should Use This Tool

Who It's For

Anyone with a scanned PDF that picked up a slight, consistent tilt — a page placed a little off-square on a flatbed, a batch pulled through a sheet-feeder, or a phone-camera scan at a small angle. Text-dense pages benefit most, since detection measures how sharply lines of text line up.

When to Use It

Right after scanning, before you OCR, archive, or file the document — the tool searches a ±15° range around straight, matching the manual slider. Pages already within about 0.3° of straight are left untouched, so running it on a clean scan costs nothing.

When Not To

Skip it for a page that's fully sideways or upside-down. The angle search only covers ±15°, so it can't find or fix a 90°/180°/270° rotation — use Rotate PDF first for orientation, then deskew for the finer tilt.

Comparison

PDFcrest vs. Other Deskew Options

FeaturePDFcrestAdobe AcrobatTypical Online Tool
PriceFree, unlimitedSubscription requiredFree tier capped
Signup requiredNoAccount requiredOften required
Per-page angle detectionYes, with confidence scoreNo built-in deskew toolRarely available
Manual angle override-15° to +15° live sliderN/AUsually none
Before/after previewSplit-view comparisonN/ARarely available
File privacy100% browser-basedDesktop app or cloudServer upload typical
Detection modesFast / Balanced / High PrecisionN/AFixed, no options
Watermark on outputNeverNeverCommon on free tiers

Use Cases

Who Straightens PDFs With PDFcrest

🎓

Students & Researchers

Straighten phone-scanned lecture notes, journal articles, and library photocopies before archiving or citing them.

⚖️

Legal Professionals

Clean up tilted contracts, filings, and evidence scans so they read cleanly and OCR reliably for e-discovery.

🏛️

Government & Archives

Digitize historical records and forms from flatbed and sheet-fed scanners without re-scanning misaligned batches.

🏥

Medical & HR Offices

Straighten patient forms and employee records so scanned files stay legible and privacy-compliant since nothing leaves the browser.

🧾

Accountants & Bookkeepers

Fix crooked receipt and invoice scans in bulk before running them through OCR for expense tracking.

📚

Libraries & Archivists

Correct book and periodical scans distorted by page curvature or hand positioning during digitization projects.

Workflow Recipes

Common Deskew Workflows

Deskewing is rarely the only step — here's how it usually fits into a real scan-cleanup pipeline.

Fix Orientation, Then Fine-Tune Tilt

A page scanned sideways needs a 90° flip before a few degrees of tilt correction makes sense.

Rotate PDFDeskew PDF

Straighten, Then Trim Borders

Cropping a still-tilted page trims an uneven margin — straighten first so the crop box lines up with the page edge.

Deskew PDFCrop PDF

OCR-Ready Preparation

Text recognition engines assume roughly horizontal lines — straightening first measurably improves extraction accuracy.

Deskew PDFOCR PDF

Batch Scan Cleanup

A stack from a sheet-fed scanner often mixes blank sheets with tilted pages — drop the empties, then straighten what's left.

Remove Blank PagesDeskew PDF

Straighten, Then Shrink for Sharing

Corrected pages are re-rendered as images — compressing afterward keeps email attachments and uploads small.

Deskew PDFCompress PDF

Related Searches

People Also Search For

How It Works

Why Scans Get Crooked, and How Deskewing Fixes It

"Skew" is the small rotation a page picks up when it isn't perfectly aligned with the scanner bed, the sheet-feeder rollers, or the camera in a phone-scanning app. A flatbed scanner tilts a page by a degree or two when it's placed even slightly off-square; automatic document feeders introduce skew when paper shifts as it's pulled through; phone cameras add skew from any angle between the lens and the page. None of this is usually visible to the naked eye at a glance — a 2-4° tilt looks almost normal on screen — but it's enough to measurably hurt OCR accuracy, since text-recognition engines are tuned to expect roughly horizontal lines of text.

PDFcrest's deskew tool finds that tilt using a technique called projection-profile analysis. Each page is converted to grayscale and reduced to pure black-and-white using Otsu's method, a standard algorithm that automatically finds the brightness threshold separating ink from background. From there, the tool tests a range of candidate rotation angles between -15° and +15°: for each candidate angle, it rotates the coordinates of every dark pixel and counts how many land in each horizontal row. When a candidate angle matches the page's true tilt, rows of text stack up sharply — lots of dark pixels in the rows that contain a text baseline, very few in the gaps between lines — which shows up as a high-variance row histogram. The angle that produces the sharpest, most peaked histogram is the detected skew. The search runs coarse-to-fine (a wide pass in large steps, then progressively narrower passes around the best candidate) so it converges quickly without brute-forcing every fraction of a degree from the start.

Once an angle is chosen, correcting it is comparatively simple: the page is rotated by the opposite angle around its own center, with the small triangular corners that rotation exposes filled in white to match a typical scanned page background. Pages that come back essentially flat (within 0.3°) are left as the original vector page rather than being redrawn as an image, so documents that are already straight lose no quality at all. The net effect for OCR is straightforward — text-recognition software segments a page into lines and characters far more reliably when those lines are actually horizontal, so straightening a page before running OCR (see the OCR PDF tool) typically produces cleaner, more complete extracted text than running OCR on the crooked original.

Pro tip: if a batch of scans came from the same scanner in one sitting, the skew angle is often similar across pages. Run "High Precision" mode on the first couple of pages to sanity-check the detector, then switch to "Balanced" for the rest of the batch to save time without losing much accuracy.

Under the Hood

The Actual Detection Parameters

These are the real constants and passes used by the detector running on this page — not marketing copy.

Binarize: gray = 0.299R + 0.587G + 0.114B threshold = otsuThreshold(histogram) Search: for angle in [-15° .. +15°]: rotate dark-pixel coords by angle bin into rows, score = variance(rowCounts) bestAngle = argmax(score) // coarse → fine, 2-3 passes Confidence = clamp( (bestScore - meanScore) / stdDevScore * 11, 3, 99 ) Correction = bestAngle // same sign — applied via same-size canvas rotation, white fill Output = 200 DPI (2.78×), JPEG quality 0.92, flat pages kept as vector
ParameterValueWhy
Search range±15°Covers essentially all real-world flatbed/feeder/phone-scan tilt; matches the manual slider's range
"Already straight" threshold0.3°Below this, rotating would add JPEG re-encoding noise for no visible benefit
Fast modemaxDim 260px, 1 pass, 1.0° stepQuickest scan of the angle space for large batches
Balanced mode (default)maxDim 380px, 2 passes (1.0° → 0.15°)Good accuracy/speed trade-off for everyday scans
High Precision modemaxDim 520px, 3 passes (0.75° → 0.1° → 0.02°)Archival-quality accuracy; used automatically by the per-page "Recalculate" button
Output resolution200 DPI (2.78× scale)Matches common OCR-readiness guidance without producing oversized files
Output encodingJPEG, quality 0.92Balances file size and visual quality for rasterized scan pages

FAQ

Frequently Asked Questions

PDF deskew is the process of detecting and correcting the small rotation (skew) a scanned page picks up from a scanner or camera, so lines of text sit horizontally instead of at a slight angle.
Common causes include a page placed slightly off-square on a flatbed scanner, paper shifting inside an automatic document feeder, or an angled phone camera when scanning with a mobile app.
No. PDFcrest's deskew tool runs entirely in your browser using pdf.js and pdf-lib. Detection, rotation, and rebuilding the corrected PDF all happen locally — nothing is uploaded.
Each page is converted to a binary black-and-white image using Otsu's thresholding method, then the tool searches a range of candidate rotation angles and picks the one that makes rows of text align most sharply, measured by the variance of a horizontal projection profile.
Yes. OCR engines segment pages into lines and characters far more reliably when text is horizontal. Straightening a tilted scan before running OCR typically produces cleaner, more complete extracted text.
Yes. Every page has a -15° to +15° slider that overrides the auto-detected angle, with a live before/after preview so you can see the effect before exporting.
They control how thoroughly each page is analyzed. Fast uses a single coarse pass for speed, Balanced (the default) runs a two-pass coarse-to-fine search, and High Precision runs a three-pass search on a larger image for archival-quality accuracy.
Only pages that actually need correction are re-rendered as images; pages detected as already straight (within 0.3°) are copied through from the original file untouched, with no quality loss. Corrected pages are rendered at 200 DPI and saved as JPEG at 0.92 quality, which is a common balance of clarity and file size for scanned documents.
This tool is built for small tilt angles (roughly ±15°), not full 90°/180°/270° rotations. For a page scanned sideways or upside down, use PDFcrest's Rotate PDF tool first, then deskew for the finer angle.
Rotating turns a page in fixed 90° increments to fix orientation (sideways or upside-down). Deskewing corrects a small, arbitrary tilt angle — usually a few degrees — left by imperfect scanning alignment.
Yes. Every page is analyzed and can be corrected independently — a document doesn't need to share one global rotation, since different pages from the same scan job can have different tilt angles.
Accuracy depends on the detection mode and how much genuine text content the page has. Each page shows a confidence percentage so you can judge which pages to double-check manually; text-dense pages typically detect more reliably than sparse or mostly-graphical pages.
Yes. Each page card has an Included/Skipped toggle. Skipped pages are copied through to the output PDF unchanged.
Yes. Use "Reset All Angles" to discard manual overrides and return to the auto-detected angles, or re-upload the original file at any time before exporting — nothing is modified until you click download.
Once the page and its libraries (pdf.js, pdf-lib) have loaded, processing does not require a network connection since everything runs locally in your browser.
Yes, completely free with no signup, no file-count limit, and no watermark on the output.
Yes. Open pdfcrest.com/deskew-pdf in a mobile browser, upload a PDF from your device or cloud storage, and the same detection and correction runs locally on your phone.
Encrypted PDFs need to be unlocked first. Use PDFcrest's Unlock PDF tool to remove the password, then upload the unlocked file here.
If every page is already within about 0.3° of straight, the dashboard reports no significant skew. You can still fine-tune any page manually using its angle slider if you want a different correction.
Yes. After processing, a "Download processing report (JSON)" link provides the detected angle, applied correction, and confidence score for every page.
No. To keep the page lightweight and fast-loading, detection is implemented directly in JavaScript using a projection-profile angle search rather than loading a multi-megabyte OpenCV/WebAssembly build.
Corrected pages keep their original dimensions and rotate around the page center, so for the small angles typical of scan skew, only a thin sliver near the corners is affected — the same trade-off most deskew tools make to avoid changing page size.

References & Further Reading

Sources

Last updated: