Generate CSS border-radius with independent control over all four corners. Choose from presets or set each corner manually up to 200px — copy the CSS instantly.
border-radius: 12px;
Use this border-radius generator to build rounded corners visually, compare common shapes, and copy a CSS declaration without remembering shorthand order. Adjust all corners together for consistent cards and buttons, or unlink them for asymmetric designs.
CSS reads four radius values clockwise:
When every corner matches, CSS allows one compact value. When corners differ, the generator returns all four values.
| Shape | CSS |
|---|---|
| Square | border-radius: 0 |
| Rounded | border-radius: 12px |
| Pill | border-radius: 9999px |
| Asymmetric | border-radius: 30px 10px 30px 10px |
Choose a preset or adjust each corner slider. Use Link corners while designing a uniform shape; disable it when one or more corners need different values. Copy the resulting declaration into a selector:
.card {
border-radius: 12px;
}
<button class="cta">Start now</button>
<article style={{ borderRadius: "30px 10px 30px 10px" }}>
Featured content
</article>
The preview controls use pixel values, which are predictable for fixed-size UI elements. CSS also supports percentages and other length units when you need a radius that scales with an element:
.avatar {
border-radius: 50%;
}
.responsive-card {
border-radius: 4vw;
}
For a true circle, use a square element with border-radius: 50%. A large pixel radius creates a pill-like result on many rectangular elements, but it is not equivalent to a percentage in every layout.
This tool is provided for general informational and utility purposes only. Results may be inaccurate, incomplete, outdated, or contain errors. Always verify results before relying on or using them.
Some tools may use AI, automated processing, third-party services, or server-side processing. Do not rely on these tools as a substitute for professional advice.
Use at your own risk. BestToolOnline makes no guarantees regarding the accuracy, reliability, completeness, availability, or suitability of results, to the maximum extent permitted by applicable law.
See our Terms of Service and Privacy Policy for complete details.