Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsCSS Border Radius Generator

CSS Border Radius Generator

dev

Round each corner with sliders, elliptical corners and blob shapes, shortest CSS to copy

Runs in your browser. Nothing you type is sent anywhere. Checked against sources on 22 Oct 2026.

Border-radius takes one to four values in the order top-left, top-right, bottom-right, bottom-left, so border-radius 12px 12px 0 0 rounds only the top. Values after a slash set the vertical radius, giving elliptical corners. 50% makes a square into a circle; 9999px makes any button a pill.

Next:
  • CSS Box Shadow Generator Build a layered CSS box-shadow with a live preview, or paste one and edit it

How to make rounded corners in CSS

1

Pick a preset such as Card, Pill or Circle, or paste a border-radius value you already have.

2

Move one slider to round all corners, or unlink them to set each corner on its own.

3

Turn on Elliptical for a different horizontal and vertical radius per corner.

4

Copy the border-radius line, or the four longhand lines.

About CSS Border Radius Generator

Rounded corners take one line of CSS, but the shorthand packs up to eight numbers into it. This generator sets them with sliders, shows the shape live and writes the shortest line that means the same thing.

One value or four. With the corners linked, one slider rounds all four. Unlink them to set each corner, in the order the CSS uses: top-left, top-right, bottom-right, bottom-left. Repeated values are dropped by the same rule the browser uses to fill them back in, so 8px 4px 8px 4px is written 8px 4px.

Elliptical corners. Turn on Elliptical and each corner gets a horizontal and a vertical radius. The shorthand then has two lists split by a slash: horizontal radii first, vertical after.

Shape border-radius
Card 16px
Pill button 9999px
Circle (on a square) 50%
Tab 12px 12px 0 0
Egg 50% / 60% 60% 40% 40%

What the browser draws. When two radii along one side add up to more than that side, the browser shrinks every radius by the same factor until they fit. That is why 9999px makes a pill: on a 40px tall button every corner becomes 20px. The page shows the radii actually drawn on the preview box and says when they were shrunk.

Blobs. Blob mode makes organic shapes from eight percentages. Random picks new ones where the facing radii on each side add to exactly 100%, so curves meet with no flat edge and nothing is shrunk.

Paste an existing border-radius value to edit it. Units can be px, %, rem or em, one unit at a time. Nothing leaves your browser. Related tools: Box Shadow Generator, Glassmorphism Generator, CSS Gradient Generator.

Frequently asked questions

How do I round only the top corners?

Write border-radius: 12px 12px 0 0. The four values go clockwise from the top-left: top-left, top-right, bottom-right, bottom-left. For one corner only, the longhand border-top-left-radius: 12px is clearer. Unlink the corners above and the page writes whichever form is shorter.

What does the slash in border-radius mean?

Values before the slash are horizontal radii and values after it are vertical radii, which makes each corner a quarter of an ellipse rather than a circle. So border-radius: 50% / 30% gives wide, flat curves. Without a slash, both radii of every corner are the same.

Should I use 50% or 9999px for a pill button?

Use 9999px for a pill. Percentages are measured separately on each axis, so 50% on a wide button gives an oval with no straight edges. A very large length is shrunk by the browser until the corners just fit, which leaves round ends and a straight middle at any size.

How do I make a circle with CSS?

Give a square element border-radius: 50%. Each corner's radius becomes half the side in both directions, so the four quarter circles meet in a full circle. On a rectangle, the same 50% gives an ellipse; set equal width and height, or aspect-ratio: 1, to keep it round.

Why are my corners smaller than the value I set?

Browsers never let two curves overlap. When the radii along one side add up to more than its length, every radius on the element is scaled down by the same factor. The page shows the radii actually drawn on the preview box and the factor applied.

Can I paste a border-radius value to edit it?

Yes. Paste a value such as 30% 70% 70% 30% / 30% 30% 70% 70%, with or without border-radius: in front, and the sliders take its values. Use one unit, px, %, rem or em; a value that mixes units or uses calc() is pointed out instead.

Sources

  • W3C CSS Backgrounds and Borders Level 3, 5.1 and 5.5Horizontal radii before the slash, vertical after it; the order and fill rule for missing values; radii shrunk by f = min(side / sum) when they overlap

Last verified 22 October 2026.

Rates and rules change; check the source before you rely on a figure.

Still stuck? Ask about CSS Border Radius Generator and anybody who knows can answer. No account needed.

Common uses

  • CSS Blob Shape GeneratorMake organic blob shapes from eight border-radius percentages, no SVG needed

Same job, other tools: Sitemap Index Generator – Split a large site into numbered sitemaps with an index file.

On the related tools: Cron Expression Generator – Generate a cron expression by choosing when the job should run · Google Analytics URL Builder – The five utm parameters GA4 reads, with the naming traps flagged.

Related tools

All developer tools
UUID GeneratorRandom v4 and time-ordered v7 UUIDs, up to 1,000 at once, plus a validatorHash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files, with checksum compareCron Expression BuilderBuild a cron schedule from menus, read it in plain English, see the next runsSlug GeneratorClean URL slugs from titles, including accented and Hindi text, one or hundreds at onceMeta Tag GeneratorWrite title, description, canonical, Open Graph and Twitter tags with a live previewRobots.txt GeneratorBuild a robots.txt with presets, then check what every line really doesSitemap GeneratorTurn a list of URLs into a valid sitemap.xml, with an index when it gets too bigUTM BuilderBuild campaign links with source, medium and campaign, then export the lot as CSV
Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)