Border Radius Generator

Visually adjust CSS border-radius and copy the code

Top Left
8px
Top Right
8px
Bottom Right
8px
Bottom Left
8px
border-radius: 8px;

Presets

How to Use

Adjust each corner's radius using sliders

Toggle 'Link All' to sync all corners or adjust independently

Enable elliptical mode for horizontal/vertical control

Copy the CSS code and apply to your project

Border Radius Tips

  • Use border-radius: 50% to create perfect circles from square elements
  • Pill-shaped buttons use a very large radius value (e.g., 9999px)
  • Elliptical radii create organic, natural-looking shapes
  • Consistent border-radius across UI elements creates visual harmony
  • Use overflow: hidden with border-radius to clip child content

FAQ

What is border-radius?

border-radius is a CSS property that rounds the corners of an element's border. 0 is square corners, larger values create rounder corners.

What is elliptical border-radius?

Each corner can have separate horizontal and vertical radii. Use a slash (/) to specify elliptical corners.

What is the difference between px and %?

px is an absolute fixed size, while % is relative to the element's width and height. % creates responsive corners that scale with the element.

CSS Border Radius Guide

Design Applications of border-radius

border-radius is a CSS property that allows you to independently round the four corners of an element. A value of 0 gives sharp corners, while 50% creates a circle. Buttons with moderate values of 8-16px give a friendly impression, and card components typically use 12-20px. Pill-shaped buttons use very large values like 9999px to maintain semicircular ends regardless of width.

Understanding Shorthand and Individual Properties

border-radius: 8px is shorthand that applies the same value to all four corners. Two values set (top-left+bottom-right, top-right+bottom-left), while four values specify each corner clockwise. Using a slash (/) to set horizontal and vertical radii separately creates elliptical corners, enabling organic shapes like droplets, leaves, and speech bubbles.

Creating Advanced Shapes

Combining different values for each corner creates unique custom shapes. For example, border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% creates a wavy blob shape. It has better browser compatibility than CSS clip-path and works effectively with overflow: hidden for masking images into desired shapes. For a consistent design system, reusing the same radius values throughout a project is recommended.

This calculator is provided for informational purposes only.

Results are estimates and may differ from actual amounts.

© 2025 calculkorea. All rights reserved.

Link copied!