Border Radius Generator
Design rounded corners visually and copy the exact CSS.
How Border Radius Generator works
Set each corner independently and copy the ready-to-use border-radius CSS. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.
That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.
Four corners, one shorthand
Each corner can have its own radius. The generated declaration uses the standard shorthand order — top-left, top-right, bottom-right, bottom-left — so a value of 24px 24px 0 0 gives a card with a flat bottom.
The preview updates as you drag, which matters more than the numbers: a radius that looks right at 200 px wide looks wrong on a full-width element.
The trick most people miss
The slash syntax gives each corner two radii, one horizontal and one vertical. That is how leaf shapes and asymmetric pills are made: 50% / 20% produces a curve that is much wider than it is tall.
Mixing px and % is legal and useful: a fixed radius on two corners and 50% on the other two gives a shape that stays round at any size on one side and fixed on the other.
| Value | Shape |
|---|---|
| 4px | Subtle rounding on a card |
| 12px | Modern software UI |
| 999px | Full pill |
| 50% | Circle on a square element |
| 50% / 20% | Leaf / lens shape |
Accessibility and clipping
A radius clips the element's background but not always its children. An image inside a rounded container needs its own radius or overflow: hidden on the parent, otherwise the corners show square image content.
Very large radii on focusable elements can clip the focus ring. Check the focus state after rounding, especially on buttons.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Can corners differ?
Yes, each corner has its own slider.
How do I make a pill shape?
Set the radius to half the element's height.
Does the order follow CSS shorthand?
Yes, clockwise from top-left: tl, tr, br, bl.
Can I use different units per corner?
In the generated CSS, yes — the shorthand accepts any valid length or percentage per corner.
Keep going
More design tools
Color Contrast Checker
Check the contrast ratio between text and background and see WCAG AA and AAA results.
Open toolColor Picker
Pick the exact colour of any pixel in a photo and read it as HEX, RGB and HSL — useful for matching a brand colour from a screenshot.
Open toolColor Converter
Convert colours between HEX, RGB, HSL and HSV, check contrast ratios and copy ready-to-use CSS values.
Open toolCSS Gradient Generator
Design a gradient with two or three colours, adjust the angle and copy the CSS.
Open toolBox Shadow Generator
Create a box shadow with live preview and copy the exact CSS declaration.
Open toolColor Palette Generator
Start from any colour and get five tints, five shades and three harmony colours with one-click copying.
Open tool