CSS border-radius generator
Build a border-radius shorthand from per-corner values, with elliptical corners and a Tailwind equivalent.
CSS border-radius generator
Set a radius for every corner and this tool assembles the correct border-radius CSS for you, collapsed to the shortest valid shorthand — one value when all four corners match, two or three when opposite corners repeat, and the full four-value list when every corner is different. It is built for anyone shaping cards, buttons, avatars, modals or input fields who wants clean, copy-pasteable CSS without doing the corner math by hand.
Choose "Same on every corner" for a simple rounded rectangle, or switch to "Separate corners" to dial in each corner independently in px, percent or rem. Turning on elliptical corners adds the eight-value slash notation border-radius supports — a horizontal radius and a distinct vertical radius per corner, driven by one ratio slider so a squircle or a flattened pill shape takes one drag rather than eight fields. The "Random organic blob" option generates a fresh asymmetric shape on every run, the kind of soft, irregular outline used behind hero images and decorative blobs. Switch the output between the border-radius shorthand and the four expanded border-*-radius properties, and turn on the Tailwind option to get the matching arbitrary-value utility class alongside the plain CSS.
Values are validated as you type: negative numbers are treated as zero and there is no state that produces broken CSS. The live tally under the output reports how many declaration lines were generated, how many distinct corner values the shorthand collapsed to, and the exact character count, updating as you adjust any option.
Everything runs locally in your browser — no corner value or generated CSS is ever sent anywhere. Copy the result, download it as a .txt file, or send it straight into another tool's input to keep working on it.