How to Straighten an Image Online (5 Free Methods)
A crooked photo is distracting. You need to straighten an image when the horizon tilts two degrees and the ocean looks like it is pouring off the frame, or a scanned document comes out skewed, or an architectural shot makes a building lean like it lost an argument with gravity.
The fix: rotate by a small angle to bring key lines back to horizontal or vertical. Here are five free tools.
If your image needs a full 90° or 180° turn rather than a subtle correction, see How to Rotate an Image instead. Straightening is about small-angle adjustments, typically between -10° and +10°.
Tool Comparison
| Tool | Cost | Platforms | Auto-Detect | Precision | Batch Support | License |
|---|---|---|---|---|---|---|
| Pixotter | Free | Browser (any OS) | Manual (fine-angle slider) | 0.1° increments | Yes | Proprietary |
| GIMP 2.10.38 | Free | Windows, macOS, Linux | Manual (Measure tool + rotate) | 0.01° | No (scriptable) | GPL-3.0 |
| ImageMagick 7.1.1-41 | Free | Windows, macOS, Linux (CLI) | Yes (-deskew) |
Automatic threshold | Yes (glob/loop) | Apache-2.0 |
| Google Photos | Free | Android, iOS, Web | Auto-suggest on edit | 0.1° | No | Proprietary |
| Apple Photos | Free | iOS, macOS | Auto-suggest on edit | 0.1° | No | Proprietary |
Pick based on your context: Pixotter for speed and privacy, GIMP for surgical precision, ImageMagick for automation, and mobile apps for quick fixes on your phone.
Try it yourself
Reduce file size without visible quality loss — free, instant, no signup. Your images never leave your browser.
Method 1: Straighten Online with Pixotter
Pixotter's Rotate tool runs entirely in your browser using WebAssembly. No upload, no account — your images never leave your device.
Steps:
- Open pixotter.com/rotate.
- Drop your image onto the page (or click to browse).
- Use the angle slider to dial in the correction in 0.1° increments. A gridline overlay helps you judge alignment.
- Preview the result. Edges will show blank corners where rotation moved the original content.
- Switch to Pixotter's Crop tool or check Auto-crop to trim those corners.
- Download the straightened image.
Done in under fifteen seconds. Even large images (30 MP+) process quickly with no quality loss until final export. Need to crop a whole batch afterward? Batch cropping handles that.
Method 2: GIMP 2.10.38 (Measure Tool + Arbitrary Rotation)
GIMP gives you the most control. The Measure tool lets you draw a reference line along a horizon or edge, then rotate by the exact measured angle.
Steps:
- Open the image in GIMP 2.10.38.
- Select the Measure tool (
Shift+M). - Click and drag along a line that should be horizontal (a horizon, table edge, row of text). GIMP displays the angle in the status bar.
- Go to Image → Transform → Arbitrary Rotation. GIMP fills the measured angle automatically.
- Set Interpolation to Cubic for the best quality. Click Rotate.
- Use Image → Autocrop Image or the Crop tool (
Shift+C) to remove blank corners. - Export via File → Export As (
Shift+Ctrl+E).
GIMP's 0.01° precision makes it ideal for architectural photography. The trade-off: more steps than a browser tool.
Method 3: ImageMagick 7.1.1-41 (CLI Deskew)
ImageMagick's -deskew flag automatically detects and corrects skew in scanned documents and text-heavy images — the fastest path for batch processing.
Single image:
magick input.jpg -deskew 40% output.jpg
The 40% is a confidence threshold. Lower values make correction more aggressive. For most scanned documents, 40% works well.
Batch processing:
for f in *.jpg; do
magick "$f" -deskew 40% "straightened_$f"
done
For photos without dominant straight lines, measure the angle manually and use -rotate:
magick input.jpg -rotate 2.3 -background white +repage output.jpg
Replace white with transparent for PNG images with alpha channels.
Method 4: Google Photos (Android, iOS, Web)
- Open the photo in Google Photos.
- Tap Edit → Crop.
- Drag the rotation dial beneath the image. A grid overlay appears — align the horizon to it.
- Tap Done, then Save copy.
Google Photos sometimes auto-suggests a correction when it detects a tilted horizon. Tap the suggestion and fine-tune.
Method 5: Apple Photos (iPhone, iPad, Mac)
On iPhone/iPad: Open the photo → Edit → Crop icon → drag the numbered dial at the bottom. Tap Done.
On Mac: Open in Photos → Edit → Crop → use the Angle dial on the right side. Click Done.
Both platforms auto-detect tilted photos and suggest corrections. The suggestion is usually close — adjust manually after accepting.
Tips for Better Results
Use gridlines as your reference. Align the grid to a known horizontal (horizon, table edge, text baseline) or vertical (door frame, building edge). Small angles are hard to judge by eye alone.
Straighten before other edits. Rotation resamples pixels, introducing tiny quality loss. Apply it early so later edits work on the cleanest data.
Crop after rotating. Every non-90° rotation leaves blank triangles in the corners. Pixotter's auto-crop handles this. In GIMP, use Autocrop. In ImageMagick, add +repage. See how to flip an image for related orientation edits.
Watch for perspective distortion. Straightening fixes rotation but not converging vertical lines. If a building still leans inward after straightening, you need perspective correction — a different edit entirely.
FAQ
How many degrees of rotation does straightening typically require? Most crooked photos need 0.5° to 5° of correction. Handheld shots rarely tilt more than 3°. Scanned documents can skew up to 5-10° depending on the scanner feed. Anything beyond 15° is usually intentional.
Does straightening reduce image quality? Slightly. Non-90° rotation requires pixel interpolation, which softens the image. At small angles (under 5°) the loss is invisible. Use cubic or Lanczos interpolation and straighten once — repeated rotations compound the softening.
Can I straighten a scanned PDF?
ImageMagick's -deskew works on rasterized images, not PDFs directly. Convert each page to an image first (magick input.pdf[0] page.jpg), deskew it, then reassemble.
What is the difference between straightening and rotating? Rotating means turning an image by a large fixed angle (90°, 180°, 270°) to change orientation. Straightening means rotating by a small angle (often under 5°) to correct a tilt. Same tools, different intent. See how to rotate an image for full-rotation workflows.
Why does my photo still look tilted after straightening? Converging vertical lines create the illusion of tilt even with a level horizon. This is perspective distortion, common with wide-angle lenses pointed slightly up or down. Perspective correction requires a lens profile or manual keystone adjustment.
How do I straighten a photo on a Chromebook? Use Pixotter's Rotate tool in Chrome — it works entirely in the browser with no installation. Google Photos' web editor at photos.google.com also has a straighten dial. Both free.
Can I auto-straighten multiple photos at once? ImageMagick is the best option for batch deskewing — use a shell loop to process every file in a folder (see Method 3). Pixotter also supports batch rotation for applying the same angle correction to multiple files.
Should I straighten before or after cropping? Straighten first. Rotation changes the frame boundaries, so a prior crop may cut off content or leave blank corners. Straighten, then crop to your final composition.
Try it yourself
Resize to exact dimensions for any platform — free, instant, no signup. Your images never leave your browser.