Sharp corners look fine on a table and harsh on a card. Border radius is the one line that softens them, and this tool writes it for you: four sliders, one for each corner, and a preview that shows the shape as you go.
Try the sample first
- Look at what is already there. All four sliders — “Top-left (px)”, “Top-right (px)”, “Bottom-right (px)” and “Bottom-left (px)” — sit at 16.
- Read the code. The Output box already shows border-radius: 16px 16px 16px 16px; — the four numbers in clockwise order, starting at the top-left.
- Look at the preview. A wide brown rectangle in a light-grey box, all four corners slightly rounded. That is what 16px looks like.
Change a corner — then click Generate
- Changing a slider does not change the code on its own. Move a slider and the Output box still shows the old numbers until you click “Generate radius”. The preview waits for the same click. Do that every time you change a value.
- Try one square corner. Set “Top-left (px)” to 0 and click “Generate radius”: the code becomes border-radius: 0px 16px 16px 16px; and the preview shows a square top-left corner with the other three still rounded.
- The order never changes. The four numbers always run top-left, top-right, bottom-right, bottom-left — clockwise from the top-left. So the first number is always the top-left corner.
- Equal corners can be shortened by hand. Four 16s work as written, but in your own stylesheet border-radius: 16px; means the same thing. The tool always writes out all four, which is fine to paste as it is.
- For a pill shape, go big. A button with a height of 40px turns into a pill at around 20px on every corner — or use a very large value like 999px and let the browser cap it. Try 40 on all four and watch the rectangle turn into a capsule.
- Copy or download it. “Copy output” copies the one line; “Download” saves it as radius.css.
- Your values stay on your device. Everything runs in the browser, so nothing you set is uploaded.