How to straighten a document photo
-
Add the photo
Choose a photo of a document or take one with Take a photo. The edges are detected automatically. -
Check the corners
Press Adjust corners to see the four handles over the photo. -
Drag each corner
Move each handle to a corner of the paper. Use Detect edges to try again automatically. -
Rotate if needed
Use Rotate right or Rotate left until the page is upright, then press Apply. -
Optionally clean it up
Leave Original to keep colors, or pick Enhanced, Grayscale or Black and white. -
Download
Choose JPG or PDF and press the download button.
Turn an angled photo into a flat, cropped page
Not every photo of a document is taken carefully. Maybe it was snapped quickly on a desk, held in someone's hand, or photographed on a wall notice board. The page is tilted, the table or wall shows around it, and the text runs at an angle. Sending a photo like that looks careless and is harder to read.
Straightening fixes this. You tell the tool where the four corners of the page are, and it redraws the page as a flat rectangle, cropped to the paper. The result looks like a scan.
Features
Automatic corner detection
When you add a photo, the tool searches it for the page and sets the four corners for you. For a light page on a darker surface, this usually works on the first try.
Precise manual adjustment
Press Adjust corners to open the editor. Each corner has a large handle you can drag with a finger or mouse. On a computer, select a handle and use the arrow keys for fine movement, with Shift for bigger steps. Detect edges tries automatic detection again, and Whole photo resets the corners to the edges of the image.
Real proportions
The size of the straightened page is calculated from the lengths of its edges in the photo, so the output has the true shape of the paper. You do not have to choose a paper size.
Rotation
Use the rotate buttons in the editor, or Rotate right in the workspace, to turn the page upright. Rotation is applied after straightening, without any extra loss.
Optional cleanup
The default filter is Original, which keeps the photo's colors and only fixes geometry. You can also apply Enhanced to whiten the paper, Grayscale, or Black and white, which are the same filters used in the scanner.
JPG or PDF
Download the straightened page as a JPG, or as a PDF. With several photos, JPGs come as a ZIP, or all pages go into one PDF.
Tips for best results
- Place corners on the paper, not the shadow. Shadows make edges look further out than they are.
- Zoom in with your eyes, not the screen: move each corner slowly and watch the edge line it creates; it should run along the paper edge.
- Use the original photo, not a screenshot or a compressed copy, for maximum detail.
- If a corner is out of the photo, place the handle on the image edge where the page leaves the frame. The result will be slightly cut off there.
- Retake steep shots if you can. Straightening works best when the photo was taken within about 30 degrees of straight above.
- Combine with enhancement for photos taken in poor light.
Getting the corners exactly right
Precise corners make the difference between a page that looks scanned and one that looks slightly warped. A few techniques help:
- Start from the automatic result. It is usually close; you only need to nudge one or two corners.
- Look along each edge. The line between two handles should run exactly along the paper edge. If it cuts into the page or runs outside it, move the handle at one end.
- Use the keyboard for fine moves on a computer: select a handle and press the arrow keys. Hold Shift for bigger steps.
- For rounded or torn corners, imagine where the corner would be if the edges continued, and place the handle there.
- For pages with a dark border, such as a framed notice, decide whether you want the frame included and place the corners accordingly.
How much angle can be corrected?
Straightening can correct a lot, but not everything. The table gives a rough idea of what to expect.
| Camera angle from straight above | Result |
|---|---|
| Up to about 15 degrees | Practically identical to a flat scan |
| 15 to 30 degrees | Very good; far edge slightly softer |
| 30 to 45 degrees | Usable; small text at the far edge may be blurry |
| More than 45 degrees | Readable for large text only; retake if you can |
Common uses
- Fixing photos of documents sent to you by others before forwarding them.
- Notice boards and posters photographed on a wall at an angle.
- Slides on a screen photographed from a seat in a lecture hall.
- Pages in a binder that could not be laid flat.
- Paintings and artwork photographed on a wall, squared up for a portfolio.
- Signs and menus photographed from the side.
Straighten, then enhance
Straightening fixes geometry; it does not change brightness. For photos taken in poor light, first straighten here with Original, then run the result through Enhance document photo or pick Enhanced directly in this tool.
How it works
Corner detection runs on a small copy of the photo in a background worker. The photo is converted to brightness, blurred slightly, and split into bright and dark areas with an automatic threshold. The largest bright area is traced, and the four points that best describe its outline become the corners. The shape must be large enough and close to a real quadrilateral, or detection reports no result.
Straightening uses a perspective transform, also called a homography. From the four corners in the photo and the four corners of the output rectangle, the tool solves for the transform that maps one onto the other. Then, for every pixel of the output, it computes the matching position in the photo and samples it with bilinear interpolation, blending the four nearest pixels for smooth results. The output size comes from the longest top/bottom and left/right edges of the selected shape, capped at 3,000 pixels on the long side.
Privacy: your files stay on your device
Your photos are processed in your browser and are never sent to a server. Detection, straightening, filtering and file creation all happen on your device, and the result is saved directly to your downloads. Close the page and everything is cleared from memory.
Troubleshooting
- The corners are placed on the table edge. The page and table may have similar brightness. Drag the corners to the paper manually.
- Text looks wavy after straightening. The page itself was curved. Flatten the paper and take a new photo.
- The result is stretched. A corner is in the wrong place. Open the editor and check that each handle sits exactly on a paper corner.
- Part of the page is cut off. A handle was placed inside the page. Move it outward to the real corner.
- The page is upside down. Rotate twice in the editor.
Supported devices and browsers
Works in current versions of Chrome, Edge, Firefox and Safari on computers, and in Safari, Chrome and Samsung Internet on iPhone and Android. Touch, mouse and keyboard can all be used to place corners. To capture new pages with live edge detection, use the camera scanner.
Frequently asked questions
What does straightening do?
It corrects perspective. When a page is photographed at an angle, it looks like a trapezoid. Straightening maps its four corners onto a rectangle, so the page appears flat and its lines of text become straight and parallel.
Does it work on photos I took earlier?
Yes. That is what this tool is for. Choose any photo of a document from your device.
Can it fix a curved or bent page?
It fixes perspective, which is the angle of the camera, but it cannot unbend paper that is curved or folded. Flatten the page and retake the photo if lines are wavy.
How does it find the corners?
It looks for the brightest large four-sided region in the photo, which is usually the page. If the page is on a light surface, detection may fail, and you can place the corners yourself.
Will the page keep its proportions?
Yes. The output size is calculated from the length of the page edges in the photo, so an A4 page stays A4-shaped and a receipt stays tall and narrow.
Can I straighten several photos?
Yes. Add multiple photos, set the corners of each one, and download them as a ZIP of JPGs or as one PDF.
Are my photos uploaded?
No. Corner detection and straightening happen in your browser.
Why is the straightened image slightly blurry at one end?
The far end of a page photographed at a steep angle has fewer pixels. Straightening stretches it to full size, which shows the lower detail. Shoot more directly from above for sharper results.
Related tools
Last updated 29 November 2026