Midjourney Aspect Ratio Calculator

Convert pixel dimensions to Midjourney --ar flags instantly.

Ad placeholder (leaderboard)

Midjourney’s --ar flag wants a clean width-to-height ratio like 16:9, not raw pixel dimensions. This calculator takes any width and height you have in mind and reduces it to the simplest whole-number ratio, formats the flag, and shows you the frame shape so there are no surprises.

How it works

The maths is simple but easy to get wrong by hand. The tool:

  1. Finds the greatest common divisor of your width and height using the Euclidean algorithm.
  2. Divides both numbers by that GCD to reach the lowest-terms ratio — so 1920 x 1080 becomes 16:9, and 1500 x 1000 becomes 3:2.
  3. Formats the flag as --ar W:H exactly as Midjourney expects it.
  4. Shows the decimal ratio (width ÷ height) and a live preview rectangle so you can confirm the orientation at a glance.

Because Midjourney v5 and v6 accept arbitrary ratios, you are not limited to presets — but the tool warns you if a ratio is extreme enough to risk tiling artifacts.

Tips and notes

  • --ar is shape, not size. It never sets your output resolution. To get a bigger file, generate at your chosen ratio and then upscale.
  • Common presets: 1:1 square (default), 16:9 widescreen, 9:16 vertical/stories, 4:3 and 3:2 classic photo, 2:3 portrait, 21:9 cinematic.
  • Avoid extremes. Ratios beyond roughly 7:1 can cause the model to repeat elements to fill the long axis. If you need a banner, generate at a moderate ratio and crop or extend.
  • Whole numbers only. Midjourney expects integers in --ar, which is exactly what the lowest-terms reduction produces.
Ad placeholder (rectangle)