FreeKit
HomeAbout
FreeKit

100+ free online tools for developers, SEO professionals, and creators. Fast, private, and no sign-up required.

Categories

  • Image Tools (9)
  • SEO Tools (5)
  • Developer Tools (10)
  • Text Tools (11)
  • CSS Tools (7)
  • Utility Tools (3)
  • Calculators (15)
  • PDF & Document Tools (8)
  • OCR & Image Workflow (8)
  • Creator & Marketing Tools (8)
  • Text Cleanup Tools (8)
  • Data & File Conversion (8)
  • Finance Calculators (23)
  • Business Docs & Templates (6)
  • Privacy & Security Tools (5)
  • Media Tools (2)
  • Device Tools (10)
  • Document Tools (3)
  • QR Code Tools (2)

Popular Tools

  • Word Counter
  • JSON Formatter
  • Lorem Ipsum Generator
  • Password Generator
  • Color Converter

Company

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service
  • Disclaimer

© 2026 FreeKit. All rights reserved.

Privacy PolicyTermsDisclaimer
    1. Home
    2. CSS Tools
    3. Border Radius Generator

    Border Radius Generator

    Design custom border radius with a visual editor and copy the CSS.

    BeginnerCSS ToolsFreev1.0.0Updated Jul 22, 2025

    Live preview

    Changing one corner updates all four

    12pxTop Left
    12pxTop Right
    12pxBottom Right
    12pxBottom Left

    Shorthand

    border-radius: 12px;

    Individual Properties

    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;

    How to Use the Border Radius Generator

    1. Choose a preset or start fresh — Select one of the 8 built-in presets (Rounded, Pill, Circle, Squircle, Blob, Leaf, Ticket, Sharp) for a quick start, or begin with the default 12px rounded corners.
    2. Adjust corner values — Use the sliders and number inputs to fine-tune each corner from 0 to 150px. Toggle "Link All Corners" to adjust all four corners at once or edit them independently.
    3. Customize the preview — Change the background color, border color, and border width to see how your border-radius looks with different visual styles.
    4. Review the corner diagram — The visual diagram displays each corner value directly on the box shape for a clear overview of your radius configuration.
    5. Copy the CSS — Choose between shorthand (single property) or individual properties (one per corner) and click the copy button to get production-ready CSS.

    Features

    • Real-time visual preview with a large 256×256px box showing your border-radius instantly
    • Four independent corner sliders (0–150px) with synchronized number inputs for precise control
    • Link All Corners toggle to update all four corners simultaneously or edit each independently
    • Visual corner values diagram that displays each radius directly on the box shape
    • 8 built-in presets: Rounded, Pill, Circle, Squircle, Blob, Leaf, Ticket, and Sharp
    • Customizable background color with a native color picker and hex input
    • Customizable border color and border width (0–20px) for realistic previewing
    • Syntax-highlighted CSS output in both shorthand and individual property formats
    • One-click copy buttons for both CSS formats with visual confirmation feedback
    • Smart shorthand detection — automatically reduces to the minimal syntax needed
    • Fully responsive design that works great on desktop and mobile devices
    • 100% client-side — no data ever leaves your browser

    Understanding Border Radius Properties

    Shorthand Syntax

    The border-radius shorthand accepts one to four values. One value applies equally to all corners. Two values set top-left/bottom-right and top-right/bottom-left. Three values set top-left, top-right/bottom-left, and bottom-right. Four values apply clockwise starting from top-left. This intelligent shorthand reduces code size while maintaining full control over each corner.

    Individual Corner Properties

    For maximum clarity and when you need to transition individual corners independently, use the four individual properties: border-top-left-radius, border-top-right-radius, border-bottom-right-radius, and border-bottom-left-radius. Each accepts one or two values (for elliptical radii). These are especially useful in animation keyframes and when you need to override a single corner from a shorthand.

    Elliptical Radii

    Each corner radius can accept two values separated by a forward slash (e.g., 20px / 10px). The first value is the horizontal radius and the second is the vertical radius. This creates elliptical rather than circular corners, enabling organic, non-uniform shapes. When using percentages, the horizontal radius is relative to the element's width and the vertical radius is relative to its height.

    Percentage vs Pixel Values

    Pixel values create fixed-radius corners that don't change with element size. Percentage values scale with the element's dimensions — 50% on a square creates a perfect circle, while on a rectangle it creates an ellipse. Percentages are ideal for responsive components where elements may resize. Pixels are better for design system tokens where you want consistent corner rounding regardless of element size.

    Common Use Cases

    Card Components

    Round the corners of content cards, panels, and containers for a modern, approachable feel that softens the visual hierarchy.

    Button Shapes

    Create pill-shaped buttons with 9999px radius for primary actions, and subtly rounded buttons with 6-8px for secondary actions.

    Avatar Images

    Apply 50% border-radius to square images for perfectly circular profile pictures and user avatars.

    Modal Dialogs

    Use consistent corner rounding (12-16px) on modal dialogs and popovers for a polished, professional appearance.

    Form Inputs

    Add subtle 6-8px border-radius to text inputs, textareas, and select elements for a cohesive form design.

    Notification Badges

    Create pill-shaped notification indicators with full border-radius for a clean, compact badge design.

    Creative Shapes

    Combine different per-corner values to create organic shapes like blobs, leaves, and tickets for decorative elements.

    Design System Tokens

    Establish a consistent radius scale (e.g., sm: 4px, md: 8px, lg: 12px, xl: 16px, full: 9999px) for your entire design system.

    Border Radius Design Tips

    • Use Color Converter to find the perfect background and border colors for your rounded elements by converting between HEX, RGB, and HSL formats.
    • Pair rounded corners with CSS gradients using Gradient Generator to create visually rich cards and containers with depth.
    • Add subtle box shadows to your rounded elements using Box Shadow Generator to enhance the sense of elevation and depth.
    • For responsive designs, use CSS Clamp Generator to create fluid border-radius values that scale smoothly across different screen sizes.
    • Consistency is key — define 3-5 radius tokens in your design system and stick to them to maintain a cohesive visual language.
    • Use 9999px (or a very large value) instead of 50% when you want guaranteed pill or circle shapes, since 50% can produce unexpected results on non-square elements.
    • Test your border-radius values with real content inside the element — text, images, and child elements can reveal clipping issues you might miss on an empty box.
    • Pair border-radius with overflow: hidden when you have child content (especially images) that should be clipped to the rounded shape.
    • Consider accessibility — very small border-radius values (0-2px) are nearly invisible and may not be worth the extra CSS complexity.
    • For dark themes, slightly increase your border-radius values (1-2px more) as the softer corners help reduce visual harshness against dark backgrounds.

    Frequently Asked Questions

    Related Tools

    Box Shadow Generator

    Design box shadows with a visual editor and copy the CSS.

    BeginnerFree

    Gradient Generator

    Create beautiful CSS gradients with a visual editor.

    IntermediateFree

    Color Converter

    Convert colors between HEX, RGB, HSL, and more formats.

    BeginnerFree

    CSS Clamp Generator

    Generate responsive CSS clamp() values for fluid typography and sizing.

    IntermediateFree
    Faisal Hossain — Founder & Developer of FreeKit

    Faisal Hossain

    Founder & Developer of FreeKit

    I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.

    Services

    • SEO Audit, Technical SEO & On-Page SEO
    • WordPress & Shopify Development
    • WooCommerce & E-commerce Management
    • n8n & AI Workflow Automation
    • Python Automation & Web Scraping
    • VPS, Linux & Self-Hosted Infrastructure
    • AI Vibe Coding Expert — APPS, WEB, SAAS

    Availability

    Remote: Available Now

    United States & European company

    USD $25/hour or USD $1,500/month

    On-site: Open to Relocation

    With work visa & travel support

    Email MeWhatsAppLinkedIn
    View full profile & services