Straighten image to level a tilted photo
To straighten an image, open it here and type the tilt in degrees, or drag the slider until a horizon or wall lines up with a guide line. Select Download PNG and the tool turns the photo, crops away the empty corners or keeps the whole picture, and saves a PNG. It runs in your browser.
3. Compare and save
Original
Choose an image to see the original.
Result
Choose an image to preview the angle.
Your straightened PNG will appear here.
Download PNGGuides and checkerboard are only viewing aids; they are not part of the download. While you adjust, the result box shows a quick live preview. Download PNG prepares and saves the file. Preview PNG lets you inspect the exported image first.
Export creates a still PNG, resamples angled edges, removes source metadata and uses sRGB color. HDR and wide-gamut appearance may change.
How to straighten a photo
Select Choose image and pick a photo from your device. The Original preview shows it, and a line below the button gives its file name, its width and height in pixels and its file size. The button then reads Replace image.
Type a value into Angle (degrees), or drag the Fine angle slider. The Result box shows a live preview as you change it, and the line below it gives the new pixel size and the direction of the turn. Under Canvas, keep Crop empty corners or pick Keep whole image.
Select Download PNG to prepare and save the file with -straightened added to its name. Preview PNG lets you inspect the exported image first. Changing the angle, canvas or background restores the live preview. The next download uses your new settings.
- Select Choose image and pick a photo.
- Set the angle until the horizon follows a guide line.
- Choose a Canvas option and check the live preview.
- Select Download PNG to save the result.
Finding the right angle
The angle is in degrees. Positive values turn the picture clockwise and negative values turn it counterclockwise. If a horizon drops toward the right edge, the photo leans clockwise, so try a negative value such as −2. If it rises toward the right, try a positive one.
The Guides menu draws Thirds lines, a finer Grid of ten by ten boxes, or None over the Original and Result previews. Line up a horizon, a wall or a door frame with the nearest line. The guides and the checkerboard behind see-through areas only help you judge the picture. Neither is part of the download.
The slider covers −45° to +45°. The number field accepts any angle, so 90 or 180 works as well, and a value past 360 wraps around. When the field or the slider has focus, each arrow key press moves the angle by 0.1°. Reset puts the angle back to 0.
What Crop empty corners does
Turning a rectangle leaves four empty triangles at its corners. Crop empty corners removes them by keeping the largest centered rectangle that has the original aspect ratio and fits inside the turned picture. Its width and height are rounded down to whole pixels, and nothing is enlarged, so the result is smaller than the source.
The loss grows with the angle. A 4000 × 3000 photo straightened by 2° becomes 3824 × 2868 pixels and keeps 91.4 percent of its area. At 5° it becomes 3595 × 2696 and keeps 80.8 percent.
Keep whole image grows the canvas until all four corners fit, so the same photo at 2° becomes 4103 × 3138 pixels. The new corners are then transparent, or filled with a color you pick after you set Background to Solid color. A very narrow strip can leave no whole-pixel crop at a steep angle. Choose Keep whole image in that case.
What the downloaded PNG contains
The download is always a PNG. At an angle that is not a quarter turn, the browser resamples the pixels, which can soften fine detail a little. The file is encoded again even at 0°, and the PNG can be larger than the source file, especially for a JPEG photo. The summary line says so when it is.
That summary under the Result lists the new width and height next to the source size, the file size and the angle with its direction. It also says whether the edges were cropped or the whole image was kept.
EXIF and other metadata are not copied, and a phone photo is turned upright from its orientation tag before you set the angle. An animated image gives one still frame. Colors are exported in sRGB, so wide-gamut or HDR colors can shift. Every export starts again from the decoded original, so trying a second angle does not add blur from the first.
Limits
The tool turns the picture by the angle you set and does not measure the tilt for you. It cannot correct perspective, such as tall buildings that lean inward, and it cannot flatten a warped or curled scan. It has no free crop box either. To cut the result to another frame, open the PNG in Crop image afterward.
You straighten one image at a time, and choosing another file replaces the current one. The page has no drag-and-drop area and no batch mode. While the tool works, Clear image reads Cancel & clear and stops the work.
The tool sets no file size or pixel limit. A very large result can exceed what your browser's canvas or memory allows. The page then keeps your image and settings and suggests Crop empty corners, a smaller angle or a smaller image. An empty, damaged or unsupported file shows an error.
Questions
How can I straighten an image?
Open it with Choose image, then set Angle (degrees) or drag the Fine angle slider until a horizon or edge follows a guide line. Negative values turn it counterclockwise and positive values clockwise. Keep Crop empty corners to trim the blank edges, select Download PNG to save the result. Preview PNG lets you inspect the exported image first.
Can this tool straighten a picture automatically?
No. Some photo apps and AI tools detect the tilt for you. Here you choose the angle yourself, with a number field that takes tenths of a degree, a slider and guide lines for judging the line by eye. The live preview shows each value before you create the file, so you can compare a few angles first.
Why is the straightened photo smaller than the original?
Crop empty corners trims the edges so that no blank triangles remain, and it never enlarges the picture to make up for them. A 4000 × 3000 photo turned by 2° comes out at 3824 × 2868 pixels. Choose Keep whole image under Canvas to keep every pixel on a larger canvas with transparent or filled corners.
Which images can I open?
Any picture your browser can decode opens here. JPEG, PNG and WebP work in current browsers, and other formats open only where the browser supports them, whatever the file extension says. Transparent areas in a PNG or WebP stay transparent in the result unless you set Background to Solid color, which fills them as well.
Does my image leave this device?
No. Decoding the photo, turning it, cropping it and building the PNG all happen in your browser on this device. The tool does not upload or store the image. Clear image releases it, Cancel & clear stops work in progress and releases it, and leaving the page releases it too.
Related tools
- Rotate an image by a quarter turn or any angle: turn a sideways photo and keep every corner.
- Crop the straightened photo to a new frame: keep the part you need and download a PNG.
- Flip an image horizontally or vertically: mirror a photo and download a PNG.
- Resize the straightened image: give the picture the dimensions you need.