Border Radius Generator
Workspace
What is the Border Radius Generator?
The Border Radius Generator builds the CSS border-radius value for a box, one corner at a time. Set the radius for the top-left, top-right, bottom-right, and bottom-left corners in pixels, and it outputs a single border-radius declaration you can paste into your stylesheet. Use it to round buttons, cards, images, and containers consistently.
How to Use the Border Radius Generator
- Enter a radius in pixels for Top Left, Top Right, Bottom Right, and Bottom Left. The workspace starts at 12 px for each corner.
- Keep Link corners checked to keep all four corners equal, or uncheck it to set each corner independently.
- Click Process to generate the CSS.
- Use Copy to copy the declaration, or Clear to reset the workspace.
Worked Example
Input: Top Left 12, Top Right 12, Bottom Right 12, Bottom Left 12, with Link corners checked. Observed output: border-radius: 12px 12px 12px 12px; In the shorthand, the four values run clockwise from the top-left corner. So a card with this rule gets a 12 px rounding on every corner.
Limitations
- The workspace uses pixel values only. It does not offer percentage radii, elliptical radii with a slash syntax, or per-corner horizontal and vertical values.
- No live preview box was shown in the workspace during testing, so check the result in your own page or preview.
- No presets were shown, and there is no Reset button in the workspace; use Clear to start over.
- The tool outputs CSS text only. It does not apply the style to your site or save your settings between visits.
Frequently Asked Questions
What order do the four values follow?
Clockwise from the top-left: top-left, top-right, bottom-right, bottom-left.
What does Link corners do?
When checked, the four corners stay equal. Uncheck it to give each corner a different radius.
Can I use this for a circle or pill shape?
For a circle, use equal width and height with a large radius, such as 50 percent in your own CSS. This tool works in pixels, so for a pill button, set a radius at least half the button height.
Does the tool change my website?
No. It only generates CSS text. Paste the copied declaration into your stylesheet to apply it.
Related Tools
From the Blog
How to Split a Bill Fairly (With Tip and Tax, Without the Awkward Maths)
Quick Answer Agree the method before ordering, split the food by what each person ordered, and split tax and tip in proportion…
Read article →How to Use the Pomodoro Technique to Actually Finish Your Work
Most productivity advice tells you what to do and leaves the when to you. That is exactly where the day falls apart.…
Read article →How to Merge PDF Files Into One Document (Without Losing Pages)
You have five PDFs. Your bank wants one file. Your university wants one file. Your client wants one file. Merging them is…
Read article →