unrestricted.image
Free tool · runs in your browser

SDXL and FLUX resolution calculator

Diffusion models produce their best images near the pixel count they were trained on. Pick a ratio and a target size and get dimensions that keep composition clean and avoid duplicated subjects.

Aspect ratio
Most diffusion models need dimensions divisible by 8; many prefer 64.
0 × 0width × height (px)
0actual megapixels
0 × 0after 2× upscale
0%ratio error from rounding

Why native resolution matters

SDXL and most FLUX-family models were trained around one megapixel (for example 1024 x 1024). Generating far above that in one pass often produces doubled heads, extra limbs or repeated objects, because the model tries to fill more space than it learned to compose. Far below it, detail suffers.

The usual workflow is to generate near native size, then upscale with a hires fix or a dedicated upscaler.

Common SDXL-style sizes

  • 1:1 - 1024 x 1024
  • 3:2 - about 1216 x 832
  • 16:9 - about 1344 x 768
  • 9:16 - about 768 x 1344
  • 21:9 - about 1536 x 640

Common questions

Why round to multiples of 64?

The VAE works on blocks of 8 pixels and many models prefer dimensions divisible by 64. Odd sizes can cause artefacts or be resized silently.

Can FLUX go above 1 megapixel?

FLUX-family models tolerate somewhat higher resolutions than SDXL, but very large single-pass sizes still risk artefacts. Upscaling is safer.

What size for SD 1.5?

Around 512 x 512, or about 0.26 megapixels, adjusted for ratio.

Now render it in the studio.

Paste your prompt into the unrestricted image studio and pick a model.