Skip to content
Images · free, no sign-up

Image Aspect Ratio Checker

Checks that images have width and height set, and compares a sample with the real file to find stretched pictures.

Why it matters

Without a set size, the browser doesn't know how much room to leave, so the page jumps when the image arrives. A wrong shape makes photos look squashed and unprofessional.

How to fix it

  • Add width and height attributes that match the real shape of each image.
  • In CSS, use height: auto with max-width: 100% so images can still scale.
  • Crop images to the right shape rather than forcing them into it.

What a good result looks like

Images have width and height set, and those numbers keep the same shape as the file, within about 5%.

Common mistakes

  • Setting width and height to fit a layout, which stretches the image.
  • Leaving the size out, so the page jumps as images load.

Questions about the Image Aspect Ratio Checker

If I use CSS for sizes, do I need width and height?

Yes. Browsers use the attributes to reserve the right shape before the image loads. Add height:auto in CSS, and the image stays responsive.

Why does it only flag some images?

We compare the HTML with the actual file. CSS can also resize images, and we don't run that here, so a page can look different from these numbers.

Check everything at once

Run our other instant checks on your site in one report.

Full SEO check-up

More images tools