When and How to Rotate a QR Code
Rotation is one of the safest edits you can make to a QR code, because the code itself is rotationally symmetric in a specific sense: scanners read it in any of the four upright orientations. A code rotated by 90, 180, or 270 degrees is exactly as scannable as the original, with every module still perfectly square and every finder pattern still intact. That makes rotation the right fix when a code arrives sideways from a camera, a scanner, or a layout tool, and it is why the quarter-turn buttons on this tool are the ones to reach for first.
The practical use cases are mostly about fixing other people's orientation mistakes. A photo of a printed code taken with the phone sideways, a scan that saved the image rotated, or a label designed in landscape while the code was built in portrait all produce a sideways code that looks wrong to a human even though a scanner could still read it. Rotating the file back to upright makes it look professional and makes it easier for people to recognize as a code worth scanning. The same applies to codes printed on the side of a box or a bottle, where the artwork is correct for the package but sideways in the file.
Arbitrary angles are a different tool with a different purpose. They exist to straighten a code photographed at a slight tilt, where the whole image is a few degrees off level. A small correction of two to ten degrees can turn a skewed photo into a usable image, because the rotation fills the exposed corners with the background color and leaves the modules intact. Large arbitrary angles are a bad idea for a code you intend to print, because rotating a square grid by, say, 37 degrees forces the pixels to be resampled, which softens the module edges. If a code needs a large arbitrary rotation for display, regenerate it at the correct orientation instead.
Two details decide whether a rotation is safe. The first is the background fill: when an image rotates by an angle that is not a quarter turn, the corners of the canvas are exposed, and they must be filled with the background color, not left transparent over a dark page or filled with black. This tool fills exposed corners with your chosen background, defaulting to white. The second is the quiet zone: rotation never removes the quiet zone, but cropping after rotation can. If you rotate and then crop the result to remove the empty corners, you may cut into the margin, so check all four sides before you export.
As with every image edit, finish by scanning the rotated file with a real phone and confirming the decoded content. Quarter turns should scan instantly, every time. If an arbitrary-angle rotation scans slowly or not at all, the resampling has softened the edges too much, and the fix is a smaller correction, a sharper source image, or a fresh generation of the code. Rotation is a repair for orientation, not a substitute for a clean original.
