
Rotating and Flipping Images: Complete Tutorial

Michael Foster
Content Creator & Tutorial Expert
Photos in the wrong orientation? Need to mirror an image? This complete tutorial covers every method to rotate and flip images — 90 degrees, 180 degrees, custom angles, and mirror flips — using free and paid tools.
Table of Contents
- Rotation vs. Flipping: What Is the Difference?
- Why Rotate or Flip Images?
- Method 1: Rotate and Flip Images Online
- Method 2: Rotate and Flip Images on Desktop
- Method 3: Rotate and Flip Images on Mobile
- Method 4: Rotate and Flip Images with Command-Line Tools
- Straightening Tilted Photos
- Common Rotation and Flipping Problems
- Best Practices for Rotation and Flipping
- Conclusion
Rotating and flipping images are fundamental photo editing operations. Whether a photo was taken sideways, you need to straighten a tilted horizon, or you want to create a mirror effect, knowing how to rotate and flip images is essential. This complete tutorial covers every method for rotating and flipping images using free and paid tools.
Rotation vs. Flipping: What Is the Difference?
These two operations are often confused but serve different purposes:
Rotation
Rotation turns the image around its center point by a specified angle:
- 90° clockwise: Turns the image a quarter turn to the right.
- 90° counterclockwise: Turns the image a quarter turn to the left.
- 180°: Turns the image upside down (same as flipping both horizontally and vertically).
- Custom angle: Rotates by any angle (e.g., 5°, 15°, 45°). Often used to straighten tilted horizons.
When you rotate by 90° or 180°, the image dimensions swap (a landscape image becomes portrait when rotated 90°). When you rotate by a custom angle, the image canvas changes and may require cropping to remove empty corners.
Flipping (Mirroring)
Flipping creates a mirror image of the content:
- Flip horizontally: Mirrors left to right. The left side becomes the right side and vice versa.
- Flip vertically: Mirrors top to bottom. The top becomes the bottom and vice versa.
Flipping does not change the image dimensions — the canvas stays the same size, but the content is mirrored. Flipping is commonly used to create symmetrical designs, correct scanned film negatives, or create artistic effects.
Why Rotate or Flip Images?
Rotation Use Cases
- Fixing orientation: Photos taken with a phone may be sideways or upside down.
- Straightening horizons: Landscape photos with tilted horizons can be straightened with a small rotation.
- Creating variations: A landscape photo can become a portrait crop by rotating.
- Correcting scanned documents: Scanned pages may be in the wrong orientation.
- Artistic effect: Rotating by unusual angles can create dynamic compositions.
Flipping Use Cases
- Creating mirror images: For symmetrical designs and patterns.
- Correcting scanned film: Film negatives may need to be flipped during scanning.
- Creating reflections: Flipping an image vertically and reducing opacity simulates a reflection.
- Fixing selfie mirroring: Some phone cameras mirror selfies, and flipping corrects this.
- Text direction: Flipping may be needed for text that reads right-to-left (Arabic, Hebrew) in certain layouts.
Method 1: Rotate and Flip Images Online
Online tools are the fastest option for most users.
Step-by-Step: Rotating an Image Online
- Choose an image editing tool: Look for one that offers rotation and flipping. VisualDocs provides a free image rotator.
- Upload your image: Drag and drop the file or browse to select it.
- Choose rotation:
- 90° left/counterclockwise: Rotates a quarter turn left.
- 90° right/clockwise: Rotates a quarter turn right.
- 180°: Rotates halfway (upside down).
- Custom angle: Enter a specific angle for fine rotation.
- Click apply: The tool rotates the image.
- Download the rotated image: Save it to your device.
Step-by-Step: Flipping an Image Online
- Follow steps 1–2 above.
- Choose flip:
- Flip horizontal: Mirrors left to right.
- Flip vertical: Mirrors top to bottom.
- Click apply.
- Download the flipped image.
Custom Angle Rotation
For straightening tilted photos, custom angle rotation lets you rotate by a specific number of degrees:
- Upload the image.
- Enter the rotation angle (e.g., 3° clockwise to straighten a slightly tilted horizon).
- Some tools offer a slider for fine adjustment.
- The tool rotates the image. Corners may become empty — choose to crop or fill them.
- Download the result.
Method 2: Rotate and Flip Images on Desktop
Using Windows Photos App
- Open the image in the Photos app.
- Click Edit (or the edit icon).
- Click Crop & Rotate.
- Use the rotate buttons (left or right 90°).
- For flipping, the Photos app does not have a built-in flip option in all versions. Use another tool for flipping.
Using Paint (Windows)
- Open the image in Paint.
- Go to Home > Rotate.
- Choose "Rotate right 90°," "Rotate left 90°," "Rotate 180°."
- For flipping: Choose "Flip horizontal" or "Flip vertical."
- Save the image (File > Save As).
Paint handles both rotation and flipping easily.
Using Preview (macOS)
- Open the image in Preview.
- Go to Tools > Rotate Left (Command+L) or Rotate Right (Command+R) for 90° rotation.
- For flipping: Go to Tools > Flip Horizontal or Tools > Flip Vertical.
- For custom angle: Go to Tools > Adjust Size, or use the rotate handle in the markup toolbar.
- Save the image (File > Save or File > Export).
Using Image Editing Software
Full image editors (Photoshop, GIMP, Affinity Photo) offer comprehensive rotation and flipping:
- Open the image.
- Go to Image > Image Rotation (Photoshop) or Image > Transform (GIMP).
- Choose 90°, 180°, or arbitrary angle.
- For flipping: Go to Image > Image Rotation > Flip Canvas Horizontal/Vertical (Photoshop) or Layer > Transform > Flip (GIMP).
- Save the image.
Image editors also offer non-destructive rotation using the crop tool with a straighten feature, which lets you rotate and crop in one step.
Method 3: Rotate and Flip Images on Mobile
On iPhone/iPad
- Open the Photos app and select the image.
- Tap Edit.
- Tap the crop icon.
- Tap the rotate button (square with a curved arrow) for 90° rotation.
- For flipping: Tap the flip button (two triangles) in the crop menu.
- For custom angle: Use the dial at the bottom for fine rotation.
- Tap Done.
On Android
- Open the image in Google Photos.
- Tap Edit.
- Tap the crop/rotate icon.
- Use the rotate button for 90° rotation.
- For flipping: Some Android photo editors offer flip in the crop menu.
- Tap Save.
For more control, use a dedicated photo editing app from the App Store or Play Store.
Method 4: Rotate and Flip Images with Command-Line Tools
Using ImageMagick
ImageMagick can rotate and flip images with simple commands. For rotation, you specify the angle in degrees. For flipping, you use the flip (vertical) or flop (horizontal) operations. ImageMagick supports batch processing, so you can rotate or flip an entire folder of images with a single command.
Using ffmpeg
While primarily for video, ffmpeg can also rotate and flip images. This is useful if you already have ffmpeg installed and need to process an image quickly.
Straightening Tilted Photos
Straightening is a specific type of rotation that corrects a tilted horizon or subject. It is one of the most common uses of custom-angle rotation.
Step-by-Step: Straightening a Photo
- Open the image in a tool that offers a straighten or level tool (most image editors have this).
- Find the straighten tool — it is usually in the crop or rotate menu.
- Draw a line along the horizon or a reference line that should be level.
- The tool calculates the angle and rotates the image to make that line horizontal.
- The corners of the image become empty after rotation. The tool crops the image to remove the empty areas.
- Save the straightened image.
Alternative: Manual Angle Adjustment
If your tool does not have a straighten tool:
- Rotate by a small angle (e.g., 2° clockwise).
- Check if the horizon is level.
- Adjust the angle until the horizon is straight.
- Crop the image to remove empty corners.
Common Rotation and Flipping Problems
Problem: Empty Corners After Custom Rotation
When you rotate by an angle that is not a multiple of 90°, the corners of the image become empty (transparent or filled with a background color). Solution: crop the image to remove the empty areas, or fill them with a content-aware fill tool (available in advanced image editors).
Problem: Image Quality Decreases After Rotation
Rotating by 90° or 180° does not reduce quality — the pixels are simply rearranged. However, rotating by a custom angle requires resampling (interpolating pixels to new positions), which can slightly reduce sharpness. Apply a small amount of sharpening after custom-angle rotation.
Problem: EXIF Orientation Is Not Honored
Some images have EXIF orientation data that tells viewers how to display the image. If a tool ignores this data, the image may appear rotated even though the pixels are in the correct orientation. Solution: use a tool that honors EXIF orientation, or remove the EXIF orientation tag after physically rotating the image.
Problem: Flipping Text Makes It Unreadable
Flipping an image with text mirrors the text, making it read backward. This is expected behavior. If you need to flip an image but keep text readable, you need to manually add the text after flipping, or use a separate text layer that is not flipped.
Best Practices for Rotation and Flipping
- Use 90° increments when possible: 90° and 180° rotations do not require resampling and preserve full quality. Custom angles require resampling and may slightly reduce sharpness.
- Straighten before cropping: If you need to both straighten and crop, do the straightening first, then crop. This gives you a clean, level crop.
- Check the result: After rotating or flipping, verify the image looks correct — the subject is upright, the horizon is level, and the content is in the right orientation.
- Keep the original: Save the rotated or flipped version as a new file so you can go back to the original if needed.
- Watch for text: Flipping mirrors text. If the image contains text, be aware that it will be reversed after flipping.
- Consider EXIF data: Some cameras store orientation in EXIF data rather than physically rotating the pixels. If you need the rotation to be permanent (not dependent on EXIF), use a tool that physically rotates the pixels and removes or updates the EXIF orientation tag.
Conclusion
Rotating and flipping images are simple but essential editing operations. For most users, an online tool is the fastest option. Built-in tools on Windows, macOS, and mobile devices handle basic rotation and flipping. Desktop image editors offer more control, including custom-angle rotation and non-destructive straightening. Command-line tools enable batch processing. The key is understanding the difference between rotation and flipping, using 90° increments when possible to preserve quality, and always keeping the original image. With this tutorial, you can confidently rotate and flip any image for any purpose.
Sources & References
About the Author

Michael Foster
Content Creator & Tutorial Expert
Michael creates in-depth tutorials and guides that make complex tools accessible to everyone. He has a passion for teaching and clear communication.
Frequently Asked Questions
What is the difference between rotating and flipping an image?
Can I rotate an image by a custom angle (not just 90°)?
Does rotating an image reduce quality?
How do I straighten a tilted photo?
Why does my photo appear sideways when I open it?
Start working smarter today
Join 500,000+ users who trust VisualDocs for their daily image and PDF workflows.