CSS Border Radius Generator
Set each corner's radius in px or %, or use the 8-value elliptical syntax for blobs and eggs. Get the shortest border-radius CSS and a live preview.
border-radius rounds the corners of any box — from a subtle 4 px on cards to pills, circles and organic blob shapes. This generator lets you set each corner, or type the full elliptical syntax with horizontal and vertical radii (30% 70% 70% 30% / 30% 30% 70% 70%), checks it, and returns the shortest equivalent CSS, the four longhand properties and a Tailwind class. The preview is drawn by your own browser from the same value.
How to use this tool
- Pick a preset, or keep Custom and enter the four corner radii.
- Choose the unit — px for fixed corners, % for shapes that scale with the box.
- For blobs and eggs, type an advanced value with a "/" for different vertical radii.
- Set the preview size to match your element, then copy the CSS.
Formula
border-radius: <top-left> <top-right> <bottom-right> <bottom-left> [ / <vertical radii> ]
Like margin, missing values repeat: one value sets all corners, two set diagonal pairs (top-left & bottom-right, top-right & bottom-left), three use the second value for both top-right and bottom-left. Each corner is a quarter ellipse whose horizontal radius comes before the "/" and vertical radius after it.
Example
Corners 10, 20, 10 and 20 px shorten to border-radius: 10px 20px;. The egg preset — 50% horizontally, 60% at the top and 40% at the bottom vertically — becomes border-radius: 50% / 60% 60% 40% 40%;, because the four equal horizontal radii collapse to one value while the vertical ones cannot.
Frequently asked questions
How do I make a circle?
Give a square element border-radius: 50%. On a rectangle the same value makes an ellipse; use a very large value such as 9999px for a pill with round ends.
Why does 9999px work for pills?
When radii add up to more than a side, browsers scale all radii down by the same factor until they fit. A huge value therefore always ends up as exactly half the short side.
Does border-radius clip images and backgrounds?
Backgrounds and borders follow the rounded corners. Child content (an image inside a div) overflows the corners unless the parent also has overflow: hidden or the image itself has a radius.
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/css-border-radius-generator/
Cite or embed this tool
kakaoCalc. (2026, November 8). CSS Border Radius Generator. https://kakao.mobile/tools/css-border-radius-generator/
“CSS Border Radius Generator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/css-border-radius-generator/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms