Round Image Corners: Why Max Radius Makes a Pill Shape

PublishedToolRound Corners

Contents
  1. Why maxing out the radius turns the image into a pill shape
  2. What radius (%) is actually measured against: and how to check it yourself
  3. Where people get stuck
  4. The takeaway
  5. Frequently asked questions

If you've ever dragged the radius slider all the way up in a tool that rounds image corners, you may have ended up with a pill (capsule) shape with fully rounded ends instead of the soft rounded rectangle you expected. With a square photo, you might get a perfect circle instead. This isn't a bug — it's a predictable result that depends on which side the radius (%) is measured against.

The short version ① Radius (%) is calculated from the shorter of the image's width and height. ② Once that value reaches half the short side, the corners on that side become perfect half-circles — a square becomes a circle and a rectangle becomes a pill. ③ If you want to keep the rectangle look, set the radius below the maximum, calculated to match your original image ratio.

Why maxing out the radius turns the image into a pill shape

If you crank corner rounding all the way up to give a wide banner photo or thumbnail a card look, it's common for the whole photo to turn into a pill shape with fully rounded left and right ends instead of a rounded rectangle with four distinct corners. On a square icon or profile photo, the same move can produce a perfect circle.

All you did was set the number to its maximum, but if you don't know why you get a pill or a circle instead of a rectangle, you'll end up nudging the slider back and forth and eyeballing it every time. That's because the same % value produces a completely different shape whenever the image ratio changes.

What radius (%) is actually measured against: and how to check it yourself

Tools that round off corners usually calculate radius (%) from the shorter of the image's width and height. You can get the radius in pixels with "(radius % ÷ 100) × pixel length of the short side," and once that value reaches half the width or height, the corners in that direction join into a perfect half-circle. On a square, all four corners become half-circles at the same time, so you get a circle; on a rectangle, only the two corners on the short side do, so you get a pill.

Take an 800px wide, 400px tall photo with a 50% radius: the short side is the 400px height, so the radius is 200px — exactly half the height — which means the top and bottom become perfect half-circles, in other words a pill shape. Give the same photo just 10% and the radius is only 40px, so it still reads as a rectangle.

In programs like Photoshop or GIMP, where you enter the radius in pixels rather than %, you can reproduce the same result by working out the pixel radius for the % you want with the formula above and typing it in. If you'd rather not do that math by hand and want to drag a slider and see the result right away, you can try it below.

Round Corners

Free · No sign-up · Runs only in your browser, nothing is uploaded to a server · Download as a transparent PNG

Where people get stuck

SymptomCauseHow to check
A square image won't become a perfect circle at 50%The actual pixel width and height differ by even 1pxCheck the original file's properties or your editing program to confirm the width and height in pixels are exactly the same
It looks like a pill even at a low radiusThe image itself is already so long and narrow that the short side is small, so even a low % puts the radius close to halfRecalculate the radius from the short side's length, or crop the image closer to square first
The downloaded PNG picks up a white background again on another siteThe site you uploaded to re-saved the PNG as a JPG and filled the transparent area with a solid colorDownload it again after uploading and check the file still ends in PNG
The preview or download button doesn't show upYou haven't picked an image yet, or the preview is still being calculatedPick an image, wait a moment, and check whether the preview appears

The takeaway

Image corner radius (%) is measured against the shorter of the width and height. Once that value reaches half the short side, a square becomes a circle and a rectangle becomes a pill. Once you know how the math works, you can predict the result no matter where you move the radius slider.

If you want to keep the rectangle look, set the radius clearly below the maximum — work backward from the short side's length until it matches the card corner you're after.

Round Corners

Free · No sign-up · Runs only in your browser, nothing is uploaded to a server · Download as a transparent PNG

Frequently asked questions

Does a 50% radius always give me a perfect circle on a square image?

If the width and height in pixels are exactly equal, yes. A 50% radius produces a radius equal to half the short side (which in this case is both the width and the height), so all four corners become perfect half-circles at once and the whole square fits inside a circle. That said, if resizing or cropping left the width and height off by even 1px, you can end up with a very slightly oval shape.

How much radius should I use for a subtle card-style rounding?

There's no single right answer, but the further the radius sits from half the short side, the more it still looks like a rectangle; the closer it gets, the more it looks like a pill or a circle. If you want to match the subtle 8 to 16px rounding common in design tools, divide that pixel value by the image's short side length and multiply by 100 to convert it to a %, then enter that.

Why can I only save as PNG instead of the original JPG?

The area cut away outside the rounded corners needs to stay transparent, and PNG is the format that can store that transparency (alpha channel) information. JPG doesn't support an alpha channel, so transparent areas get filled with a solid color — which makes PNG the only way to keep the area outside the rounded corners empty.

This article was adapted from our Korean original. Read the Korean original

Related articles

  1. Image Text Cut Off? Why It Happens and How to Fix ItWhy text on your image gets cut off when you save, and how to size and position it first — with the math and a free tool to check it before you export.
  2. JPG vs PNG vs WebP: Lossy, Transparency, and How to ChoosePhotos are JPG, logos and screenshots are PNG, and the web uses WebP. Here's how lossy compression and transparency decide, plus how to compare file sizes.
  3. Meme Caption Fonts: Why White Text With a Black OutlineThere's no official meme font. The look comes from bold text, white fill, a black outline, and center alignment. Here's how to reproduce it and what trips people up.
  4. Why adding a border to a photo changes its image sizeAdding a frame around a photo increases its width and height in pixels and shifts the aspect ratio. Here's the formula and how to hit your target size.
  5. Photo Collage Cropping: Why Edges Get Cut and How to CheckWhen a photo's aspect ratio doesn't match its collage cell, the edges get cropped. Learn which side loses how much, and how to prep photos first.
  6. Remove GPS Location Data from Photos: EXIF Metadata GuideYour phone saves GPS coordinates, device model, and time in every photo. Here's how EXIF works, how to check it, and how to remove it before posting.

Related tools