Generator Tools
CSS Border Radius Generator
Generate CSS border-radius with eight independent corner values, live preview, presets, px/%/em/rem units, and ready-to-paste shorthand or Tailwind output.
Quick presets
Live preview
Preview uses the exact border-radius value that will be copied. Adjust width and height to test how the corners read at different aspect ratios.
CSS shorthand
border-radius: 16px;
Per-corner longhand
border-top-left-radius: 16px; border-top-right-radius: 16px; border-bottom-right-radius: 16px; border-bottom-left-radius: 16px;
Tailwind v3+ class
rounded-[16px]
Tailwind output uses arbitrary values. Underscores stand in for spaces inside the bracket per Tailwind's arbitrary-value syntax.
Corner controls
Edit each corner independently. Toggle elliptical to set separate horizontal and vertical radii.
- Top left16px
- Top right16px
- Bottom right16px
- Bottom left16px
How to use
- Pick a preset shape (card, pill, circle, leaf, blob, ticket, etc.) for a quick start, or skip presets and edit each corner directly.
- Choose your unit (px, %, em, or rem). Percentages are relative to the element's width and height, which is how true ellipses and pills are made.
- Use Link all corners for symmetric rounding, or turn it off to set every corner independently.
- Toggle Elliptical to expose separate horizontal and vertical radii per corner. This emits the slash-separated border-radius syntax.
- Tune the preview width, height, and colors to verify how the corners read at the target aspect ratio.
- Copy the shorthand, the per-corner longhand, or the Tailwind class and paste it into your stylesheet or component.
About this tool
CSS Border Radius Generator gives you independent control over every corner of a CSS shape. Each corner has its own horizontal and vertical radius, so you can generate the full elliptical border-radius syntax (the eight-value form with a slash) as well as the simpler four-value and one-value shorthands. Adjust corners with sliders or numeric inputs, switch units between px, percent, em, and rem, and toggle Link all corners on for symmetric rounding or off for full per-corner control. The Elliptical mode exposes separate horizontal and vertical radii per corner, matching the W3C border-radius specification, which is how shapes like blobs, leaves, and squircles are built. A live preview canvas renders the exact value the tool will copy and lets you change the preview width, height, fill color, and label color, so you can verify how the corners read at different aspect ratios before shipping. Built-in presets (card, pill, circle, leaf, ticket, blob, tab, speech, petal, squircle) provide quick starting points for common shapes, and a single click resets everything. Output is provided three ways: the optimized border-radius shorthand, the four per-corner longhand properties (border-top-left-radius and friends) for codebases that prefer them, and a Tailwind v3+ arbitrary-value class. All generation happens in your browser, so values never leave your device, and the same generated string is what powers the live preview.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
CSS Box Shadow Generator
Layered box-shadow with live preview, opacity, inset, and Tailwind output.
Open tool
GeneratorCSS Gradient Generator
Linear, radial, and conic gradients with multi-stop editor and live preview.
Open tool
GeneratorCSS Filter Generator
Visual CSS filter builder with live preview, presets, and copy-ready output.
Open tool
GeneratorCSS Clamp Generator
Build clamp() for fluid type and spacing with a live viewport preview.
Open tool
GeneratorColor Palette Generator
Build complementary, analogous, triadic, and monochromatic color schemes from any HEX.
Open tool