Feature

Straighten a Skewed or Crooked Document Photo

Photographing a document at a slight angle is almost unavoidable when shooting handheld — the page looks trapezoidal instead of rectangular, with one edge closer to the camera than the other. PhotoToScan's AI straightens it automatically, no manual cropping tool required.

Upload your document photo. The AI detects the four corners of the page, calculates the perspective distortion, and warps the image back into a true rectangle — the same geometric correction a flatbed scanner gives you for free, applied after the fact to a handheld photo.

Original Photo Document photo shot at a crooked angle with visible perspective skew
Crooked angle Perspective skew Uneven margins
Clean Scan Cleaned scan with straighter page structure and squared margins

Perspective corrected, page squared into a true rectangle, margins evened out on all four sides.

Why document photos come out skewed

A flatbed scanner presses the page flat against a fixed glass plane, with the sensor perfectly parallel to it — that geometry guarantees a true rectangle every time. A handheld phone photo rarely has that guarantee.

  • Holding the phone at a slight tilt while shooting down at the page
  • Photographing a document lying at an angle on a desk, lap, or car seat
  • Documents shot on uneven or curved surfaces — books, binders, clipboards
  • Wide-angle phone lenses that exaggerate distortion near the edges of the frame

The result: the page looks like a trapezoid instead of a rectangle, with text that appears to converge toward one edge — exactly the kind of artifact that gets a submission flagged as "not a proper scan."

How the straightening works

PhotoToScan's model approaches straightening as a geometry problem, not a simple rotate or crop.

  • Corner detectionlocating the four corners of the document within the photo, even against a busy background
  • Perspective transformcalculating the exact warp needed to map those four corners onto a true rectangle
  • Re-samplingrebuilding the image content along that transform so straight lines and text stay straight edge-to-edge
  • Rotation fine-tuningcorrecting small residual rotation in the same pass, so the page also sits level

This is not the same as a "rotate 90°" tool. Rotation only spins the whole image; it can't fix a page that's trapezoidal because it was photographed off-axis. Perspective correction reshapes the geometry itself.

How to use it

  • Step 1Upload your document photo (JPG, PNG, HEIC, WebP)
  • Step 2PhotoToScan automatically detects the page and straightens it
  • Step 3Preview the result, then download as JPG or PDF

No account required to preview. Works in any browser, on any device.

When to use this

  • Forms and ID documents photographed at a slight angle in a hurry
  • Pages photographed inside a book or binder, where the surface itself sits on a tilt
  • Quick snapshots taken on the go — a desk, a car, a counter
  • Visa, residence permit, or ID submissions that require a "flat, front-facing" copy
  • Photos someone else took for you at an awkward angle

Frequently asked questions

Does it work if the photo was taken at a steep angle?
Yes, within reason — as long as all four corners of the page are visible in the frame, the AI can compute the correction. Extremely oblique angles reduce accuracy near the corners.
Will straightening distort the text?
No. Perspective correction re-maps pixel positions using the detected page geometry, so text lines that were converging become parallel and evenly spaced again — matching what a flatbed scan would show.
Is this different from just rotating the image?
Yes. Rotation only fixes a photo that's sideways or upside down. Straightening fixes a document that's trapezoidal because it was photographed off-axis — a problem rotation alone can't solve.
What if the page corners aren't fully visible in the photo?
The AI needs to see all four corners to compute an accurate correction. If a corner is cropped out of frame, retake the photo with the full page visible and a small margin around it.
Also try

Other document cleanup tools

See real document examples →

Straighten It Out. Keep the Document.

Upload the photo you already have and get a squared-up, scan-quality result in seconds.

Try It Free
Preview first. No account required.