Border Radius Previewer
Design and preview CSS border-radius values visually. Adjust each corner independently and copy the generated CSS. Free and instant.
border-radius: 16px;rounded-[16px]Design Perfect Rounded Corners Visually
The CSS border-radius property transforms sharp rectangular elements into shapes with rounded corners, circles, pills, and organic blobs. It is one of the most frequently used CSS properties in modern web design, appearing on buttons, cards, avatars, input fields, and modal dialogs. Despite its apparent simplicity, getting the exact radius right by editing numbers in code is a trial-and-error process that interrupts your design flow.
This visual previewer lets you drag sliders and see the result instantly on a live element. When it looks right, copy the CSS and move on.
Understanding Border Radius Values
The border-radius shorthand accepts one, two, three, or four values. One value applies uniformly to all corners. Two values set top-left/bottom-right and top-right/bottom-left as pairs. Four values address each corner individually in clockwise order: top-left, top-right, bottom-right, bottom-left.
Each corner can also take two values separated by a slash to create elliptical corners — one value for the horizontal radius and one for the vertical. This produces asymmetric curves useful for organic shapes and creative UI elements. The tool handles both circular and elliptical radius modes.
Common Patterns and Recipes
A border-radius of 4 to 8 pixels is the industry standard for subtle rounding on cards and containers. Buttons typically use 6 to 12 pixels, or a large value like 9999px to create a pill shape that adapts to any content width. Setting border-radius to 50% on a square element produces a perfect circle, which is the standard technique for avatar images.
Asymmetric radii create distinctive shapes. A large radius on only the top corners produces a tab-like appearance. Different radii on adjacent corners generate organic, blob-like forms popular in contemporary design.
From Experimentation to Production
The tool generates the most concise valid CSS syntax for your configuration. If all corners are equal, it outputs a single value. If corners differ, it uses the appropriate shorthand. The output is clean, standards-compliant CSS ready to paste into any project — vanilla CSS, Tailwind arbitrary values, styled-components, or CSS modules.
Frequently Asked Questions
Can I set different values for each corner?
Yes. The tool lets you control each of the four corners independently — top-left, top-right, bottom-right, and bottom-left. You can also link all corners to change them uniformly with a single slider.
What is the difference between border-radius and individual corner properties?
The CSS border-radius shorthand sets all four corners at once. When all corners differ, the shorthand uses a space-separated syntax like border-radius: 10px 20px 30px 40px. The tool generates the most concise syntax automatically.
Does border-radius work with percentages?
Yes. Setting border-radius to 50% on a square element creates a perfect circle. The tool supports both pixel and percentage values. Percentage values are relative to the element's dimensions.
Is the generated CSS compatible with all browsers?
The border-radius property is supported in all modern browsers without vendor prefixes. It works in Chrome, Firefox, Safari, Edge, and Opera. No compatibility concerns for current web projects.
Related Tools
Explore More Free Tools
UtilityDocker has 73+ free tools. New tools added every week.
Get notified about new tools
We launch new free tools every week. No spam, unsubscribe anytime.