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:
- Finds the greatest common divisor of your width and height using the Euclidean algorithm.
- Divides both numbers by that GCD to reach the lowest-terms ratio — so
1920 x 1080becomes16:9, and1500 x 1000becomes3:2. - Formats the flag as
--ar W:Hexactly as Midjourney expects it. - 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
--aris 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:1square (default),16:9widescreen,9:16vertical/stories,4:3and3:2classic photo,2:3portrait,21:9cinematic. - Avoid extremes. Ratios beyond roughly
7:1can 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.