CSS border-radius generator. Create custom border radius with per-corner control, live preview, and presets. Copy generated CSS instantly.
100% browser-based — your data never leaves your device
Generate CSS border-radius values with a visual preview. Create smooth corners and custom shapes for your elements.
Toggle between px and % units for your border radius values.
Use the sliders to adjust each corner individually, or keep them linked for uniform rounding.
Click preset buttons like Circle, Pill, or Asymmetric for quick styles.
Copy the generated border-radius CSS value to use in your projects.
border-radius: 8px 8px 8px 8px;Generate harmonious color palettes with monochromatic, analogous, complementary, triadic, and tetradic schemes.
Border Radius GeneratorGenerate CSS border-radius values with a visual preview. Create smooth corners and custom shapes for your elements.
Box Shadow GeneratorCreate custom CSS box-shadow effects with a visual editor.
CSS Gradient GeneratorCreate linear and radial CSS gradients with a visual editor.
CSS Unit ConverterConvert between CSS units: px, rem, em, pt, %, vw, vh, and more.
CSS Grid GeneratorCreate CSS grid layouts visually with customizable columns, rows, and gaps.
Flexbox GeneratorCreate flexbox layouts visually with alignment, direction, and wrapping controls.
Bezier GeneratorCreate and preview CSS cubic-bezier easing curves for animations and transitions.
Rounding corners is a deceptively fiddly CSS property once you want different values on each corner. This generator makes those values visual instead of abstract:
Corner radius is one of the strongest visual signals of a modern interface, and it appears everywhere: cards, buttons, modals, badges, avatars, and input fields. Designers prototyping UI components, developers translating designs into CSS, and marketers building custom landing-page shapes will all reach for this tool when they need a radius that is correct rather than approximate.
The independent corner controls are what separate this from a generic CSS cheat sheet. Setting each corner separately opens up irregular shapes with real personality, like a subtle diagonal rounding effect, while the presets cover the everyday cases instantly. The live preview on a sample element means you see the effect as you drag rather than after a round trip to the browser. The details matter here too: pixel values give fixed radii, percentages relate to element dimensions, and a large value like 9999px turns any rectangle into a pill.
Prototypes for unreleased products often contain proprietary layout decisions and unannounced visual directions. Exporting CSS values through an online generator that logs your interactions can leave a trail of what you are building before it exists publicly.
This generator computes everything in your browser. The radius values you choose and the CSS they produce never travel over a network, so component experiments and pre-launch interfaces stay entirely on your machine.
Choose a preset shape (square, rounded, pill, circle) or adjust each corner individually.
Use the sliders to modify top-left, top-right, bottom-right, and bottom-left radii independently.
Once satisfied, click the copy button to grab the border-radius CSS property for your project.
Practical examples to help you get the most out of Border Radius Generator:
Input: width=120px height=40px border-radius: 9999px Output: Elements with fully rounded ends — ideal for buttons and tags.
border-radius: 10px 30px 10px 30px Top-left and bottom-right: 10px, top-right and bottom-left: 30px Creates a subtle diagonal rounded effect.
A 50% border-radius on a rectangle creates an ellipse/pill, not a circle. Use 50% only on equal-width-and-height elements for perfect circles, or use a large fixed px value.
Use overflow: hidden on the parent element to ensure nested content with background or images also respects the border-radius.
Yes, use the individual corner sliders to set unique values for top-left, top-right, bottom-right, and bottom-left radii.
Pixel values set a fixed radius while percentages are relative to the element dimensions. Percentages can create elliptical corners when width and height differ.
Set all four corners to 50% on a square element, or use a very large value like 9999px on any rectangular element to create a pill shape.
Adjust top-left, top-right, bottom-right, and bottom-left radii independently.
See changes instantly on a sample element as you tweak each corner.
One-click copy of the generated border-radius CSS property.
Quickly switch between square, rounded, pill, and circle presets.
Border Radius Generator is useful in a variety of scenarios across different workflows:
Designing modern UI components with rounded corners for cards, buttons, and modals
Creating pill-shaped badges and circular avatars with perfect border-radius
Prototyping custom-shaped elements for landing pages and marketing sites
Use percentage or em values for border-radius to ensure corners scale proportionally with the element size on different screen sizes.
Set border-radius to 9999px or 50% on a rectangular element to create a pill shape — perfect for tags, badges, and buttons.
Explore more tools in the Design workspace:
Color Palette Generator
Generate harmonious color palettes with monochromatic, analogous, complementary, triadic, and tetradic schemes.
Box Shadow Generator
Create custom CSS box-shadow effects with a visual editor.
CSS Gradient Generator
Create linear and radial CSS gradients with a visual editor.
CSS Unit Converter
Convert between CSS units: px, rem, em, pt, %, vw, vh, and more.
CSS Grid Generator
Create CSS grid layouts visually with customizable columns, rows, and gaps.
Flexbox Generator
Create flexbox layouts visually with alignment, direction, and wrapping controls.