CSS Border Radius Generator
Design rounded corners per corner and copy the CSS.
Design rounded corners per corner and copy the CSS. Free, instant and private in your browser.
Loading the interactive tool… This page needs JavaScript to run the CSS Border Radius Generator.
How to use CSS Border Radius Generator
- Choose your colors or values.
- Preview the result live.
- Tweak until it looks right.
- Copy the CSS or code into your project.
How CSS Border Radius Generator works
Four number fields set the top-left, top-right, bottom-right and bottom-left corner radii in pixels, each limited to 0 through 500. The tool writes the border-radius shorthand in that clockwise order and draws a preview box using the same values. It handles circular corners only, not the elliptical slash syntax or percentage values.
Worked example
Input top-left 24, top-right 0, bottom-right 24, bottom-left 0 → Output border-radius: 24px 0px 24px 0px; which rounds two opposite corners and leaves the other two square.
Common uses
- Creating a leaf or tab shape where only some corners are rounded.
- Matching the exact corner values from a design spec for a card.
- Checking the clockwise order of the shorthand before writing it by hand.
Best for
- web and UI design
- front-end development
- quick visual experiments
Tips for better results
- Different values per corner give organic shapes.
- Check color contrast for accessibility.
- Test designs on light and dark backgrounds.
- Keep a copy of final values in your design system.
Frequently asked questions
How do I make a circle?
Use a square element with a border-radius of 50%.
Is my data sent to a server?
No. This tool runs in your browser, so what you enter stays on your device.
Do I need an account to use CSS Border Radius Generator?
No account or sign-up is needed. Just open the tool and use it.
Related tools
- CSS Clamp Generator — Create fluid font sizes with the CSS clamp() function.
- CSS Gradient Generator — Create linear and radial CSS gradients with ready-to-copy code.
- CSS Text Shadow Generator — Build CSS text shadows with a live preview.
- Glassmorphism CSS Generator — Create frosted-glass CSS with blur, transparency and border.
- Box Shadow Generator — Design CSS box shadows visually and copy the code.
- Color Palette Generator — Generate harmonious color palettes from a base color.