Home › All Tools ›

CSS Border Radius Generator

Use CSS Border Radius Generator online for free at FreeToolZones — no sign-up, no watermark.

Loading tool...

The CSS Border Radius Generator lets you round each corner of a box independently and copy the border-radius declaration that produces the shape you see. Rounded corners soften an interface, signal that an element is a card or a button rather than a raw rectangle, and help the eye move around a page without snagging on sharp edges. Small radii feel crisp and professional, large radii feel friendly and playful, and asymmetric radii can give a design a distinctive character.

Remembering the order of the four values in a border-radius declaration is a common stumbling block, and guessing numbers in an editor means constant switching between code and browser. The CSS Border Radius Generator solves both problems. Four sliders control the top-left, top-right, bottom-right, and bottom-left corners, a unit switch changes between pixels and percentages, and the preview updates as you drag. The CSS panel always shows the four values in the correct order.

What Is the CSS Border Radius Generator?

The CSS Border Radius Generator is a visual editor for the CSS border-radius property. It produces a single declaration with four values, one for each corner, in clockwise order starting at the top-left: top-left, top-right, bottom-right, bottom-left. You can set all four corners to the same value for a uniformly rounded box, or set them differently to create shapes such as a card rounded only at the top, a pill with one square corner, or a blob-like panel.

The preview is a coloured box labelled as a border radius preview, tall enough to show the effect of large radii clearly. The default sets all four corners to 24 pixels, which is a comfortable radius for a card. Each slider runs from 0 to 100, and the unit dropdown switches the meaning of those numbers between pixels and percentages. In pixel mode, the radius is an absolute distance. In percentage mode, the radius is relative to the size of the element, so the same number can produce a much rounder shape on a wide box.

The output is deliberately simple: one border-radius line with four values and the chosen unit. There are no extra properties and no shorthand tricks. That simplicity makes the result easy to paste into an existing rule, easy to edit later, and easy to understand when you return to the code weeks later. If all four values are equal, the declaration still lists all four, which keeps the order explicit.

  • Four independent corner sliders: top-left, top-right, bottom-right, and bottom-left, each from 0 to 100.
  • Unit switch: pixels for absolute radii, or percentages for radii relative to the element size.
  • Live preview: a tall coloured box that shows the combined shape of all four corners at once.
  • Correct value order: the output always follows the clockwise order used by CSS.
  • One-click copy: a Copy CSS button copies the single declaration.

How to Use the CSS Border Radius Generator

Start from the uniform default and break the symmetry only when the design calls for it.

  1. Choose the unit. Use the Unit dropdown to select px or %. Choose pixels when you want the same corner size on every element regardless of its dimensions, and percentages when you want the rounding to scale with the element.
  2. Set the top-left corner. Drag the Top-left slider between 0 and 100. Zero leaves the corner square, and larger values round it more. The number beside the slider shows the current value.
  3. Set the top-right corner. Drag the Top-right slider to match the top-left for symmetry, or to a different value for an asymmetric design. The preview updates immediately.
  4. Set the bottom-right corner. Drag the Bottom-right slider. For a card that sits against a straight edge at the bottom, you might keep this corner small while the top corners are large.
  5. Set the bottom-left corner. Drag the Bottom-left slider to complete the shape. Check the preview as a whole, not corner by corner, because the four corners interact visually.
  6. Compare units if unsure. Switch between px and % and watch the preview. On a wide box, a percentage radius can produce a much deeper curve than the same number in pixels, which helps you decide which unit suits the element.
  7. Copy the CSS. Click Copy CSS and paste the border-radius declaration into the rule for your element. The declaration works on its own, or alongside background, border, and shadow properties.

Key Features of the CSS Border Radius Generator

The tool keeps its scope narrow so that the one property it edits is edited well, with clear feedback for every change.

  • Independent corners: each corner has its own slider, so asymmetric designs do not require mental arithmetic about value order.
  • Full 0 to 100 range: the range covers everything from square corners to fully rounded ends, including the values that turn a rectangle into a pill or a circle when combined with equal dimensions.
  • Pixel and percentage support: both units are supported with a single switch, and the output uses the selected unit for all four values.
  • Large preview: the preview box is tall enough that the difference between a radius of 8 and a radius of 32 is obvious at a glance.
  • Explicit four-value output: listing all four values avoids the ambiguity of shorthand forms and makes later edits straightforward.
  • Instant updates: there is no generate step. Every slider movement rewrites the preview and the CSS together.

Practical Use Cases

Border radius appears on nearly every modern interface. The examples below show how different corner strategies serve different elements.

Cards and panels

A uniform radius between 8 and 24 pixels is the standard choice for cards. It softens the box without drawing attention to the corners themselves. Use the same radius for all cards on a page so the layout feels like a single system rather than a collection of unrelated boxes.

Buttons and pills

Buttons often use a radius between 6 and 12 pixels for a crisp look, or a very large radius for a pill shape. A pill is usually achieved with a radius larger than half the button height. Experiment in this tool with high values to see when a rectangle starts to read as a capsule.

Images and avatars

Profile pictures are often fully round, which in practice means a 50 percent radius on a square element. Thumbnails and gallery images usually take a smaller radius so they feel like photographs in a frame. The percentage mode is particularly useful for avatars, because the rounding scales with the image size.

Asymmetric accents

Rounding only the top corners of a panel that meets a straight footer, or rounding three corners and leaving one square, creates a memorable detail. These shapes work best when used sparingly, such as on a single featured card or a callout box, rather than on every element.

Inputs, tags, and chips

Form fields, tags, and filter chips benefit from consistent small radii. A radius that matches the button radius ties the controls together visually. Keep the values modest so that text inside the element is never clipped by an over-rounded corner.

Tips and Best Practices

Corner radius is part of a design system, not a per-element whim. Consistency matters more than any single value.

  • Define a radius scale: pick three or four radii for your project, such as small, medium, large, and pill, and reuse them. Random radii make a page feel unplanned.
  • Match nested elements: when a card contains an image or a header at its top edge, give the inner element a radius slightly smaller than the outer card so the curves sit concentrically.
  • Watch for clipping: content that touches the corner, such as an image or a coloured header, needs the same radius or an overflow rule in your own code, or it will poke past the rounded corner.
  • Prefer pixels for controls: buttons and inputs usually look best with pixel radii, because the corner size should stay constant even if the control grows wider.
  • Prefer percentages for circles: a 50 percent radius is the reliable way to make a circle or a pill that adapts to the element size.
  • Test at small sizes: a radius that looks subtle on a large card can dominate a small chip. Check the smallest element that will use the value.

Limitations

This generator controls only the single-value form of border-radius, with one radius per corner. It does not support elliptical corners with separate horizontal and vertical radii, the slash syntax for complex shapes, or different units for different corners. The output always uses the one unit selected in the dropdown for all four values.

The preview shows the radius on one demonstration box with fixed proportions. On a much wider, narrower, taller, or shorter element, the same values will look different, especially in percentage mode. The tool also does not set overflow, background, or border properties, so you may need to add those in your own stylesheet to make content respect the rounded shape.

  • One radius per corner; no elliptical or slash syntax.
  • A single unit applies to all four corners.
  • Preview proportions are fixed; real elements may differ.
  • No overflow or content-clipping rules in the output.

Frequently Asked Questions

In what order do the four values appear?

The order is top-left, top-right, bottom-right, bottom-left, moving clockwise from the top-left corner. The tool generates the values in this order automatically, so you only need to set the sliders and copy the result.

Should I use pixels or percentages?

Use pixels when the corner should stay the same physical size on every element, which suits buttons, inputs, and cards. Use percentages when the rounding should scale with the element, which suits circles, pills, and responsive images. Switch units in the tool and compare the preview before deciding.

How do I make a perfect circle?

Make the element square, with equal width and height, and set all four corners to 50 percent. This tool can generate the border-radius part; the equal dimensions must be set in your own CSS, because the output contains only the radius declaration.

Why does my image stick out past the rounded corner?

Border radius rounds the border box of the element, but child content such as an image can still paint over the corner. Apply the same radius to the image itself, or add an overflow rule to the parent in your stylesheet. This tool outputs only the radius, so that extra rule is yours to add.

Can I round only one corner?

Yes. Set the three corners you want square to zero and set the remaining corner to the radius you want. The output will list zeros for the square corners, which is valid CSS and keeps the order clear.

How Corner Radius Shapes Perception

Corner radius does more than soften a rectangle; it quietly tells the reader what kind of product they are using. Sharp corners feel precise, technical, and formal, which is why they appear in developer tools, financial dashboards, and dense data interfaces. Small radii, in the range of four to eight pixels, keep that precision while removing the harshness of a perfect right angle, and they are the most common choice in professional software. Larger radii, from sixteen pixels upward, feel friendly, modern, and approachable, which suits consumer apps, education products, and marketing pages aimed at a broad audience.

The jump to a full pill shape is a bigger statement than the numbers suggest. A pill button or chip reads as a single friendly object rather than a framed control, and it works best when the element is short and the text is brief. A long pill, such as a wide search field with fully rounded ends, can look elegant, but a tall pill, such as a large card with a fifty percent radius, usually looks distorted, because the radius overwhelms the content. That is why the percentage mode in this tool needs care on tall elements: the same fifty percent that makes a perfect circle on a square box makes a stretched oval on a rectangle.

Asymmetry is the advanced move. Rounding three corners and leaving one square, or rounding only the top of a panel that meets a straight footer, creates a signature detail that readers remember. The risk is inconsistency: if every card on a page has a different asymmetric treatment, the page looks accidental rather than designed. Pick one asymmetric pattern, use it for a single recurring element such as a featured card or a callout, and keep everything else uniform. The four sliders in this tool make it easy to define that one pattern precisely and reuse it everywhere it appears.

Related Tools

These tools help with the other properties that usually accompany rounded corners.

Browse More Tools