Images and Photos

How to Straighten Buildings and Skewed Photos With Perspective Correction

Why tall buildings lean in photos, how four-corner perspective correction works, and tips for architecture, signs, paintings and documents.

Saizul Amin
Saizul Amin28 Oct 2026 · 3 min read
How to Straighten Buildings and Skewed Photos With Perspective Correction

How to Straighten Buildings and Skewed Photos With Perspective Correction

Point a camera up at a tall building and its walls lean inwards, as if it were falling backwards. Photograph a painting from the side and its rectangle turns into a trapezium. These are not lens faults; they are perspective, the natural result of the camera not facing the surface squarely. The Perspective Correction Tool straightens them by warping the photo so that a chosen shape becomes a true rectangle.

Why it happens

When the camera's sensor is parallel to a flat surface, parallel lines on that surface stay parallel in the photo. Tilt the camera upwards and the sensor is no longer parallel to the building's facade. The top of the building is farther away than the bottom, so it appears smaller and the vertical lines converge. Architectural photographers avoid this with shift lenses or view cameras that keep the sensor vertical. Everyone else corrects it afterwards.

The maths in one paragraph

A flat surface seen from any angle can be mapped back to a straight-on view with a projective transform, also called a homography. It is defined by eight numbers, and four pairs of corresponding points are exactly enough to calculate them. When you drag four handles onto the corners of a facade, the tool solves those equations and then, for every pixel of the output, finds where it came from in the original and samples it with bilinear interpolation. The same method is used in document scanners and panorama software.

Corners or sliders

For documents, signs, screens and paintings, the four-corner method is the most direct: put each handle on a corner and the object becomes a rectangle. For buildings, you often only need to fix the converging verticals. The vertical keystone slider pulls the top or bottom corners inwards, which is quicker than placing four precise points. Horizontal keystone does the same sideways, for a facade shot from an angle.

Getting the size right

After correction, how wide and tall should the result be? By default the tool averages the lengths of opposite edges of your shape, which approximates the real proportions. For documents you can force A4 portrait or landscape, and for artwork you can choose a square or keep the original photo size. Buildings often look slightly stretched vertically after a full correction; many photographers reduce the height by a few percent so the result matches what the eye expects.

Practical uses

  • Property listings, where straight walls look more professional.
  • Photographing artwork, posters and whiteboards.
  • Product boxes and packaging shot at an angle.
  • Receipts and pages before text recognition.
  • Street signs and shop fronts for maps or reports.

Tips for better results

Shoot from as straight a position as you can; correction can only work with the pixels that exist, and a surface seen at a steep angle has little detail on its far side. Leave space around the subject, because correction crops the edges. Place handles at 100 percent zoom for accuracy. If the photo was taken with a wide or action camera, fix lens distortion first, because curved lines cannot be straightened by a perspective warp.

Step by step

  1. Load the photo and open the Corners view.
  2. Drag each handle to a corner of the flat surface.
  3. Use keystone sliders for fine tuning if needed.
  4. Choose the output proportion.
  5. Check the result and download it.

Limits

Perspective correction assumes a flat surface. Curved book pages, rounded objects and scenes with several planes at different angles will not be fully straightened. The transform runs in your browser, and the photo is not uploaded.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages