Midjourney aspect ratio (--ar)
Enter a ratio, a decimal ratio or the pixel size you need. You get the --ar value Midjourney accepts, ready to paste at the end of your prompt.
Enter a width and a height greater than 0.
Ratio or size
A ratio (16 : 9), a decimal (2.39 : 1) or a pixel size (1920 : 1080).
- Parameter
--ar–: - Decimal
– - Orientation
Paste it at the end of your prompt, after a space.
Common targets
Writing --ar so Midjourney accepts it
Midjourney expects two whole numbers joined by a colon. Anything else is rejected, usually with a message that the aspect ratio should be in the format width:height.
| Written as | Write instead | Why |
|---|---|---|
--ar 1.39:1 | --ar 139:100 Decimals are not allowed. Multiply both sides by 100. | Decimals are not allowed. Multiply both sides by 100. |
--ar 16x9 | --ar 16:9 The separator is a colon, not the letter x. | The separator is a colon, not the letter x. |
--ar 16 : 9 | --ar 16:9 No spaces inside the ratio. | No spaces inside the ratio. |
—ar 16:9 | --ar 16:9 Autocorrect turned the two hyphens into a dash. Type two hyphens. | Autocorrect turned the two hyphens into a dash. Type two hyphens. |
--ar 1.78 | --ar 16:9 A single decimal is not a ratio. Write both sides. | A single decimal is not a ratio. Write both sides. |
How --ar works
Midjourney makes square images unless you say otherwise. Add --ar followed by width and height to the end of the prompt, for example a lighthouse at dusk --ar 16:9. --aspect is the long form of the same parameter. On midjourney.com you can also set a default ratio in the settings panel, which then applies to every prompt without a parameter.
The numbers describe the shape, not the size in pixels. --ar 16:9 and --ar 1920:1080 ask for the same shape. Midjourney decides the pixel size itself, and the finished image can come out very slightly off the requested ratio. Older model versions do not accept every ratio, so an unusual one may be refused there.
Getting an exact size
If you need an exact pixel size, such as 1080 × 1350 for an Instagram post, generate with the matching ratio, then scale and crop the result. The aspect ratio calculator gives the missing side for any width or height, and the image aspect ratio detector shows what Midjourney actually produced. For models that take a pixel size instead of a ratio, such as Stable Diffusion or Flux, use the AI image size calculator.