Use this CSS border radius generator to round cards, buttons and images, edit individual corners, or make elliptical shapes. Paste existing CSS, adjust the preview and copy the result.
Shape your corners
Adjust the radius, check the preview and copy your CSS.
Linking uses the top-left values. Turning separate axes off matches vertical to horizontal.
Edit existing CSS
One to four values per axis. px, %, rem and zero are supported, including mixed units. Full rules, extra properties, var() and calc() are not supported.
More options
Width 64-1200 px, height 32-800 px, root font 8-64 px. The root font controls the rem preview and conversions.
Preview settings stay out of the copied CSS. Calculations run in your browser.
Choose a shape and adjust the corners
- Rounded, Pill and Circle: start with 16px corners, a capsule-shaped button, or a circular image. Circle uses a square preview; 50% on a rectangle produces an ellipse.
- More shapes: Top corners rounds only the upper corners. Leaf and Blob apply asymmetric shapes to the image preview.
- Link corners: change all corners with one slider or number field. Unlink to edit top-left, top-right, bottom-right and bottom-left separately. Linking again uses the top-left values.
- Separate horizontal/vertical radii: use two values for linked corners or eight values for independent corners. Turning this off matches vertical values to horizontal.
- Exact values: type decimals or large radii directly. Sliders work with keyboard arrows. The numeric field can exceed the convenient slider range. The editor accepts nonnegative values up to 1000000.
Preview the result at the right size
Card, Button and Image switch the preview without changing your radius values. More options lets you set width from 64-1200px, height from 32-800px, and a light, dark or checkerboard background. The size label shows the target dimensions and any display scaling. A neutral reference surface makes the corners visible; its fill and contents are not part of the generated CSS.
px, % and rem are available globally and for each field. Mixed units are supported. Unit changes convert values for the current preview, rather than simply replacing the unit. For example, 16px on a 320 x 200 box becomes 5% / 8%. Separate axes turn on when the conversion needs them.
Percentages use the box width horizontally and its height vertically. The rem preview assumes a 16px root font; change it from 8-64px in More options to match your project. Conversions preserve the current appearance within rounding, while relative units respond to later size or root-font changes.
Paste CSS, copy code and undo changes
Edit existing CSS accepts a radius value or one declaration, up to 512 characters:
16px 16px 0 0
border-radius: 1rem 0 25% 0;
border-radius: 30% 70% 65% 35% / 40% 30% 70% 60%;
Unitless zero is accepted. Use one to four values per axis, with an optional slash between horizontal and vertical groups. The editor expands the values into the correct corner controls. Full CSS rules, extra properties, negative values, var() and calc() are not supported.
- Output format: choose a declaration, the value alone, or a rule using
.rounded-element. Matching values are shortened automatically. Preview styling and obsolete vendor prefixes stay out of the output. - Copy CSS: copies the displayed output. If clipboard access is blocked, the code is selected for manual copying.
- Undo: restores up to 20 previous committed edits. A slider drag counts as one edit.
- Reset: restores the 16px card and default preview settings. Undo can recover the preceding design.
- Input errors: copying pauses while an invalid value is present. The last valid preview stays visible, with an explanation.
Two CSS details to know
The corner order is clockwise: top-left, top-right, bottom-right, bottom-left. Two values alternate across opposite corners; three values repeat the second value at bottom-left. Values after a slash specify the vertical radii.
Very large radii are scaled together by the browser when adjacent corners would overlap. The tool shows a note and keeps the entered values in your CSS. A radius on a parent also does not automatically clip its children; use overflow: hidden; on that parent when clipping is intended. Applying the radius directly to an image rounds the image itself.
The tool runs in your browser. For the CSS rules, see the MDN border-radius reference and corner-overlap specification. Finish the surrounding design with the Box Shadow Generator or Gradient Generator.








Leave A Comment