CSS Border Radius Generator
Design rounded corners and copy the border-radius CSS.
CSS
border-radius: 16px;Last updated:
Design rounded corners and copy the CSS
This CSS border-radius generator lets you drag sliders to round the corners of a box and see the shape change right away. When it looks right, you copy one line of CSS.
How to use it
- Leave Link all corners ticked to move all four corners with one slider, or untick it to set each corner on its own.
- Drag the slider or sliders. Each runs from 0 to 200 px.
- Watch the preview square update.
- Click Copy and paste the line into your stylesheet.
How it works
The CSS box shows your values in pixels. If all four corners are equal, you get the short form, for example border-radius: 16px;. If they differ, the tool writes four values in the order CSS expects: top left, top right, bottom right, bottom left.
What you see
- A 120 by 120 px preview box with your radius applied.
- The sliders, with the current value in px beside each label.
- The ready-to-copy CSS line.
Assumptions and limits
- Values are in pixels only. Percent, em and rem units are not offered.
- Each corner gets one circular radius. Elliptical corners (the slash syntax, such as
50% / 20%) are not supported. - The preview box is a fixed size, so a large radius on a small element can look different on your real element.
Frequently asked questions
How do I make a circle?
The slider stops at 200 px, which makes the 120 px preview a circle. On your own square element, copy the value or change it to 50% by hand.
What order are the four values in?
Top left, top right, bottom right, bottom left, going clockwise from the top left, as CSS reads them.
Will the unlinked values stay when I link again?
Moving the single slider sets all four corners to that value, replacing the different ones you had.
Related Developer Tools
Browse all tools from the same category.
Domain Authority Checker
Check Moz authority, page authority, spam score, and backlink metrics
Open toolSEO Audit Tool
Audit a website URL for technical SEO, metadata, headings, broken internal links, hreflang, canonical and X-Robots-Tag checks, with report exports
Open toolShowing 1-2 of 49