Perspective Correction Tool

Drag four corners onto a building, poster or page and the tool warps it into a straight rectangle; keystone sliders and a grid help with architecture.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add a photo

    Choose the image you want to straighten.

  2. 2
    Open Corners

    Drag the four handles onto the corners of the flat object.

  3. 3
    Use keystone

    Optionally pull top or side corners inwards with the sliders.

  4. 4
    Choose the output size

    Keep proportions, or pick A4, square or the original size.

  5. 5
    Check the result

    Switch to Result and compare with Before / after.

  6. 6
    Export

    Download the straightened image.

About this tool

When you photograph a tall building from the street, its vertical lines lean inwards; when you photograph a sign or a painting from an angle, its rectangle becomes a trapezium. Both are perspective distortions, and both can be corrected with a projective transform, also called a homography. You show the tool where the four corners of something that should be rectangular are, and it computes the transform that maps them onto a true rectangle and resamples the whole picture.

Four-corner correction

Open the Corners view and drag the four handles onto the corners of the building facade, sign, whiteboard or document. A light grid inside the shape shows how the lines will run after correction. The tool solves an eight-equation linear system for the homography that maps the output rectangle onto your four points and then samples every output pixel with bilinear interpolation.

Output size

By default the width and height come from the average lengths of the opposite edges of your shape, which keeps the proportions close to the real object. You can instead force an A4 portrait or landscape ratio for documents, a square, or the size of the original photo.

Keystone sliders

For architecture you often only need to fix the converging verticals. The vertical keystone slider pulls the top or bottom corners inwards, and the horizontal slider does the same for the left or right side. They combine with the corner handles.

Typical uses

Straightening buildings for property listings and architecture portfolios, making product boxes and signs face the camera, flattening paintings photographed in a gallery, turning a whiteboard photo into a straight image, and preparing a page for OCR.

Undo and batch

Every handle drag can be undone. The corner positions are stored as fractions of the picture size, so they apply to the full-resolution export exactly as you placed them on the preview. If several photos were taken from the same tripod position, the same corners work for all of them.

Quality tips

Place the handles on the outer corners as precisely as you can; switch to 100 percent zoom for fine adjustments. Strong corrections stretch the far side of the object and soften it, so shoot as straight as possible to begin with. After correcting a building, the result may look slightly too tall; a small reduction in height often looks more natural.

Limits

A homography corrects flat surfaces. Curved pages, lens distortion and 3D objects with several faces are not fully straightened; use the lens distortion tool first for wide-angle photos. Everything happens in your browser.

Worked example

A photo of a 3 m by 2 m mural taken from the left has corners at 12 percent, 8 percent; 86 percent, 18 percent; 88 percent, 82 percent and 10 percent, 93 percent. The tool outputs a 2470 x 2230 pixel straight image, which is cropped to 3 : 2 afterwards.

Quick facts

Frequently asked questions

What can I straighten?

Anything flat that should be rectangular: facades, signs, paintings, screens, whiteboards, receipts and documents.

How do I fix leaning walls in a building photo?

Place the top handles on the top corners of the facade and the bottom handles on the bottom corners, or use the vertical keystone slider until the verticals are parallel.

Why is the far edge blurry?

That part was small in the original photo and has been stretched. Shoot closer to straight-on or accept a smaller output size.

Can I get an A4 document?

Yes. Choose A4 portrait or landscape as the output size and the page is warped to that ratio.

Does it keep full resolution?

Yes. The corners are stored relative to the photo and the export is computed from the full-size original.

Is the photo uploaded?

No. The transform runs in your browser.

Guides for this tool

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