Perspective Corrector

Turn a tilted, trapezoid scan of a photo or document back into a clean rectangle by dragging its four corners — then fine-tune the rotation.

Private by design — your photo is processed locally and never uploaded.

Drop a photo here, or click to browse

Supported formats: JPG, PNG, WebP, GIF, BMP

Before After

Drag to compare

Tip: this is perfect for photos taken of a print from an angle, scans with keystone distortion, or documents shot on a phone.

How It Works

When you photograph a print or scan from an angle, the rectangular picture projects as a trapezoid — one side looks longer, edges converge. The Perspective Corrector inverts that projection: you mark the four corners of the picture as it appears, and the tool remaps that quadrilateral onto a clean rectangle using inverse bilinear interpolation.

Four corner handles

Drop each handle onto a real corner of the content. The overlay shows the quad you are selecting.

Perspective unwarp

Every output pixel is sampled from inside your quad, so converging edges become parallel and the content reads straight.

Fine rotation

A small rotation slider (±30°) trims off the last crooked degree after the corners are set.

Fully local

Warping and rotation run in your browser on the Canvas API — no upload, no server, works offline.

An honest note: perspective correction can only flatten the trapezoid you trace. It does not fix motion blur, low resolution, or a picture that is partly out of frame, and extreme warping can soften fine detail. For best results, photograph or scan as squarely as you can first.

How to Use

  1. Upload the skewed photoDrag it in or click to browse. A scan or phone photo of a print works equally well.
  2. Place the four cornersDrag each circular handle onto the four corners of the actual picture content (not the whole scan edge).
  3. Fine-tune rotationUse the Rotation slider by small steps until horizontal lines look level.
  4. Compare and downloadDrag the compare handle to check the straightened result, then export as PNG, JPG or WebP.

Who this is for — and what it will not do

For photographs taken at an angle: a print on a table, a framed picture on a wall, a document photographed by hand. It warps the quadrilateral back towards a rectangle so the content stops looking trapezoidal.

  • Hand-held document photos. Certificates and letters shot quickly, now readable and printable.
  • Framed pictures on a wall. Removing the keystone effect without a tripod or a copy stand.
  • Album pages. Flattening a page photographed from above at a slight angle.

Mistakes that ruin the result, and the fix for each

  • Correcting a curved page as if it were flat. Warping fixes perspective, not paper curl. A bent page needs a different workflow and will still look wrong.
  • Cropping tight to the corners. Leave a little margin, because the warp resamples and slightly softens the outermost pixels.
  • Correcting at preview size only. Check the export: a warp that looks fine small can show stair-stepping in fine print at full size.

Field Notes: Settings That Actually Work

Concrete starting values taken from the tool's own parameters, plus what to change when the first result is not right.

The output size of this tool is not something you type — it is derived from the four corners you drag. Width becomes the average of the top and bottom edge lengths, height becomes the average of the left and right edge lengths, and the result is never smaller than 8 px. That makes resolution predictable: if the traced quad measures 1200 px across in the loaded photo, the corrected rectangle is 1200 px wide, no more. Both output numbers drop when the photo was imported small, because every image here is loaded with its long edge capped at 2000 px.

That cap interacts badly with scanning, and it is worth doing the arithmetic before you start. A 300 DPI scan of a 6×4 inch print is 1800×1200 px, but if the whole scan is 3000 px on the long edge it gets downscaled to 2000 px on load — a factor of about 0.67. The print inside it then measures roughly 1200 px wide instead of 1800, and the corrected result prints 6 inches at about 200 DPI, not 300. If the output is destined for print, scan a tight copy around the photo rather than the entire scanner bed.

What you seeStart hereWhy it worksIf it is still wrong
A phone shot of a print lying on a table, edges convergingFour corners on the print's own corners, Rotation 0The quad is what gets flattened; corner accuracy is the whole correction, and the readout shows the resulting widthCorners keep the keystone: zoom the browser in and place each handle on the actual paper corner, not the table edge
A flatbed scan that is only slightly crookedKeep the default corners (4% inset), set Rotation to 1.5 or −1.5With no keystone the quad stays nearly rectangular, so the small rotation does the work without resampling the edgesHorizontal lines still dive: nudge rotation in 0.5° steps — that is the slider's actual step
A document photographed hard from one sideCorners tight on the paper, then inspect the after pane at full zoomHeavy flattening stretches one side the most, and that is exactly where bilinear sampling blur appears firstIf letters look bent rather than just soft, reshoot flatter; no corner placement will straighten a bowed page
The print runs off the edge of the photoDo not correct here — crop the usable area firstA quad needs four real corners inside the frame; a missing corner turns the whole shape into a guessUse Photo Cropper on the partial area, or rescan with the whole print visible

Rotation is applied after the warp, on the flattened rectangle, and the rotated image is re-fitted into a larger canvas with the empty triangles filled in flat white. That means any non-zero rotation adds white wedges at the edges — visually obvious on a dark photo. Crop them off afterwards in Photo Cropper, which does not resample and therefore will not cost you a second round of softness. If the corrected file is then too small for its intended print size, Photo Resizer can bring it to a target width, though it will interpolate rather than restore detail.

What this tool cannot do: the warp is a bilinear quad mapping, not a full projective transform, so a strongly keystoned shape can bow straight lines slightly instead of keeping them dead straight. It cannot recover a corner that is outside the frame, cannot undo motion blur or lens distortion, and cannot add detail — the output is sampled from the pixels you already have, and extreme stretching visibly softens them.

Sources & further reading

FAQ

What is perspective correction used for?
It fixes keystone distortion — when a rectangular photo or document looks like a trapezoid because you shot it at an angle. Common cases: photos of old prints taken from a chair above a table, and scans where the lid was slightly skewed.
Will it make my photo perfectly straight?
It flattens the quadrilateral you define into a rectangle and lets you trim rotation ±30°. Very curved distortion (wide-angle, barrel distortion) is beyond this tool's reach.
Why does the corrected result look softer?
Warping resamples pixels to new positions, so strong corrections can soften fine detail. Keep the corner selection tight and shoot/scan as squarely as possible to minimize warping.
Is my photo uploaded?
No. Perspective warping and rotation run entirely in your browser with the Canvas API. The photo never leaves your device and the tool works offline after loading.
Can I rotate a full 90°?
The slider is intentionally limited to ±30° because it is meant for small trims after perspective correction. For 90°/180° turns, crop and rotate in your usual image viewer first.