Skip to content
Border Radius जेनरेटर
Tools

Border Radius जेनरेटर

नया

CSS गोल कोने और ऑर्गैनिक blob आकार दृश्य रूप से बनाएँ।

Top-left
Top-right
Bottom-right
Bottom-left
CSS

Runs entirely in your browser. Nothing is uploaded.

Live Preview के साथ CSS Rounded Corners का Visual Design करें

border-radius CSS property आधुनिक UI में सबसे ज़्यादा इस्तेमाल होने वाले rules में से एक है — यह cards, avatars, buttons, badges, tooltips और decorative blobs को shape देती है। यह free CSS border-radius generator आपको एक live visual editor देता है जहाँ हर slider adjustment तुरंत preview element में दिखती है, ताकि आप exact radius tune कर सकें और CSS copy करने से पहले real time में result देख सकें।

चारों corners को individually adjust करें या uniform rounding के लिए सभी को link करें। px (fixed pixel size) और % (element dimensions के अनुपात में) units के बीच toggle करें। Instant common patterns के लिए preset shapes library का उपयोग करें, एक click में organic blob shapes generate करें, या अपनी खुद की image upload करके real content पर radius preview करें — सब कुछ पूरी तरह आपके browser में process होता है, किसी server पर कुछ भी upload नहीं होता।

Shape Presets: Circle, Pill, Card, Egg और भी

Preset library में वे shapes शामिल हैं जो developers सबसे ज़्यादा इस्तेमाल करते हैं। Circle (border-radius: 50%) किसी भी square element को perfect circle में बदल देता है — यह avatar photos, profile images और icon containers के लिए standard है। Pill (9999px) element size चाहे जो भी हो, short sides को perfect semicircles में बदल देता है, जिससे classic CTA button या tag shape बनती है जो लगभग हर modern design system में दिखती है।

Card (16px) और Slight (6px) ज़्यादातर UI kits और component libraries में इस्तेमाल होने वाली rounding values से match करते हैं। Top-round और Bottom-round section separators, stacked list items और tab bars के लिए useful हैं जहाँ केवल एक side को round करना हो। Egg preset पूरे 8-value elliptical slash syntax का उपयोग करता है — border-radius: 50% 50% 50% 50% / 40% 40% 60% 60% — जो हर corner पर asymmetric curve बनाता है, यह organic hero art और illustration-style blobs के लिए popular foundation है।

Inverted, Concave और Notched Corners

एक सामान्य search है inverted border radius generator — ऐसे corners जो बाहर की बजाय अंदर की ओर curve करते हों। सामान्य border-radius केवल convex (बाहर की ओर) curves बना सकता है, इसलिए true concave corners के लिए एक अलग technique की जरूरत होती है। सबसे reliable approach है radial-gradient mask: जहाँ आप inward notch चाहते हैं उस corner पर एक छोटा transparent circle रखें, जो element में से concave notch काट देता है। यही technique ticket stubs, coupon edges और tab shapes में इस्तेमाल होती है।

एक alternative है positioned pseudo-element (::before या ::after) जिसे page background colour से paint करके अपना outward border-radius दिया जाता है, फिर corner पर layer किया जाता है ताकि वह inward कटा हुआ लगे। Scalloped या perforated edges के लिए — जैसे ticket की tear line — एक side के साथ repeating radial-gradient mask काम करता है। यह generator standard convex radii और organic blobs पर focus करता है, लेकिन mask trick जानने से आप उन concave cases को भी handle कर सकते हैं जो css inverted border radius generator searches में खोजे जाते हैं।

यह Generator cssmatic.com, css-tricks.com और bennettfeely.com से बेहतर क्यों है

cssmatic.com एक basic border-radius generator offer करता है लेकिन कई सालों से update नहीं हुआ — इसमें image upload, blob randomization और modern preset shapes नहीं हैं। css-tricks.com almanac excellent reference documentation है लेकिन interactive tool नहीं है। bennettfeely.com का clip-path maker complex polygon shapes के लिए powerful है लेकिन यह CSS clip-path को target करता है, border-radius को नहीं, और intuitive sliders की जगह SVG-style coordinate input की जरूरत होती है।

UtiloKit का border-radius generator सब कुछ एक tool में combine करता है: slider-based live editor, सभी common UI shapes के लिए preset library, advanced 8-value slash syntax का उपयोग करके random blob generation, px/% unit switching, 100% client-side process होने वाला image upload preview, और तीन output formats (CSS property, value only, और React inline style)। कोई ads नहीं, कोई watermark नहीं, कोई account नहीं, और कोई भी image या design data किसी server पर नहीं जाता।

px बनाम % बनाम Blob: सही Approach कैसे चुनें

px का उपयोग करें जब आप element dimensions चाहे जो भी हों, consistent corner size चाहते हों — यह design-system components जैसे cards, inputs, modals और dropdown menus के लिए standard है जहाँ corner size एक fixed design token होती है। % का उपयोग करें जब shape element के अनुपात में रहनी चाहिए — 50% square element पर हमेशा circle और rectangle पर proper ellipse बनाता है, चाहे element की actual pixel dimensions कुछ भी हों।

Decorative blob shapes के लिए Random Blob पर click करें और border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% जैसी asymmetric 8-value CSS value generate करें। हर click एक अलग organic form बनाता है। एक बार जब आपको पसंद का blob मिल जाए, CSS copy करें और उसे background elements, decorative dividers या abstract hero illustrations पर apply करें। Blob feature slash syntax का उपयोग करता है जहाँ horizontal और vertical radii हर corner पर अलग होती हैं, जिससे ऐसी shapes बनती हैं जो four-value shorthand से बनाना impossible है।

अपनी Image से Preview करें — Client-Side, Private और Instant

अपनी खुद की photo सीधे preview area में upload करें और देखें कि आपका border-radius real imagery पर कैसा दिखता है। Image browser के File API से load होती है और local object URL से render होती है — यह आपके device से कहीं नहीं जाती। कोई upload नहीं, कोई server processing नहीं, कोई cloud storage नहीं। यह tool circular avatars, rounded media thumbnails या gallery cards design करते समय विशेष रूप से useful है जहाँ exact clip shape matter करती है और आप code implement करने से पहले crop verify करना चाहते हैं।

CSS में image को round करने के दो तरीके हैं: simplicity के लिए सीधे <img> tag पर border-radius apply करें, या ज़्यादा layout flexibility के लिए overflow: hidden वाले wrapper <div> का उपयोग करें। Wrapper approach आपको outer element पर aspect ratio, padding और positioning control करने देता है जबकि border-radius overflow को clip करता है। दोनों approaches generated CSS output में demonstrate की गई हैं।

सभी Devices पर: Desktop, iPhone, Android और कोई भी Modern Browser

Border-radius generator किसी भी modern browser में बिना installation के चलता है। Desktop पर, full three-column layout आपको left पर sliders, centre में large live preview और right पर generated CSS देता है। iPhone और Android पर, layout responsively एक single-column vertical stack में collapse हो जाता है जो पूरी तरह touch-friendly है। Sliders touch-drag gestures को respond करते हैं, image picker आपके device के native file browser से integrate होता है, और copy button सभी modern mobile browsers पर supported Web Clipboard API का उपयोग करता है।

कुछ भी install नहीं, sign in नहीं, और कोई rate limit नहीं। Tool सभी input को client-side JavaScript से locally process करता है — sliders preview को zero network latency के साथ update करते हैं क्योंकि कोई server involved नहीं है। किसी भी project के लिए border-radius values generate करें — personal sites, client work, design handoff या CSS learning — पूरी privacy के साथ और बिना किसी झंझट के।

Frequently asked questions

CSS में `border-radius: 50%` क्या करता है?

यह किसी square element को perfect circle में बदल देता है। सच्चा circle बनाने के लिए element की width और height equal होनी चाहिए — उदाहरण के लिए `width: 100px; height: 100px; border-radius: 50%`। 50% radius चारों sides पर बीच में मिलता है, जिससे perfect curve बनती है। Non-square element पर, 50% ellipse बनाता है — element की dimensions के अनुसार width या height में से जो ज़्यादा हो। यह CSS में circular avatar images, round buttons और icon containers बनाने का सबसे common तरीका है।

CSS में pill या stadium shape कैसे बनाएं?

किसी non-square element जैसे button या badge पर `border-radius: 9999px` (या कोई भी बड़ी value जैसे 100px) का उपयोग करें। Browser automatically radius को element की shorter dimension के आधे तक clamp कर देता है, जिससे short ends perfect semicircles बन जाते हैं और long sides straight रहती हैं। यह classic pill-shaped CTA button बनाता है जो लगभग हर modern design system में दिखता है। `9999px` trick element size चाहे जो भी हो काम करती है — height का आधा manually calculate करने की जरूरत नहीं। इस generator का Pill preset यह pattern instantly apply करता है।

border-radius में px और % में क्या अंतर है?

Pixel values absolute होती हैं — `12px` radius, element के size चाहे जो भी हो, 12 pixels ही रहता है। अगर element scale up या down होता है, corner size fixed रहती है। Percentage values relative होती हैं — `50%` हमेशा हर side के exact midpoint तक curve करता है, एक proportional shape बनाता है जो element के साथ scale होती है। Circles और pills के लिए percentage (`50%`) का उपयोग करें जो element के साथ scale होनी चाहिए। Cards, buttons और inputs जैसे UI components के लिए pixels का उपयोग करें जहाँ content चाहे जो भी हो consistent corner size चाहिए।

CSS में inverted या concave border radius कैसे बनाएं?

Standard `border-radius` केवल corners को outward (convex) curve कर सकता है। Inverted या concave corner — tickets, tabs और speech bubbles पर इस्तेमाल होने वाला inward 'notch' या 'cut-out' curve — के लिए `border-radius` अकेले काफी नहीं है। Common technique है radial-gradient mask: `mask: radial-gradient(circle 20px at top left, transparent 98%, black) top left / 51% 51% no-repeat ...`, जिसे हर उस corner के लिए repeat करें जिसे inward bite करना हो। Alternative है एक positioned pseudo-element (`::before`) जिसे page का background colour दिया जाए और उसका अपना outward `border-radius` हो, corner पर layer करके ताकि concave shape दिखे। Ticket-stub edges के लिए, एक side पर repeating radial-gradient mask scalloped perforation effect देता है। इसलिए 'inverted border radius' actually एक masking trick है, border-radius value नहीं।

CSS में केवल एक या दो specific corners को round कैसे करें?

Individual corner properties का उपयोग करें: `border-top-left-radius`, `border-top-right-radius`, `border-bottom-right-radius`, या `border-bottom-left-radius`। उदाहरण के लिए, `border-bottom-right-radius: 24px` केवल bottom-right corner को round करता है, बाकी तीन sharp रहते हैं। आप इन्हें freely combine कर सकते हैं: `border-top-left-radius: 16px; border-bottom-right-radius: 16px` एक diagonally-rounded shape बनाता है। Shorthand में, दो values opposite corner pairs set करती हैं: `border-radius: 16px 0` top-left और bottom-right corners को round करता है, top-right और bottom-left sharp रहते हैं।

चार border-radius values का shorthand order क्या है?

Top-left से clockwise: Top-left → Top-right → Bottom-right → Bottom-left। तो `border-radius: 16px 8px 0 8px` top-left को 16px, top-right को 8px, bottom-right को 0, और bottom-left को 8px देता है। यह `margin`, `padding` और `border-width` द्वारा उपयोग किए जाने वाले standard CSS shorthand direction से match करता है। दो values के साथ, पहली top-left और bottom-right पर apply होती है; दूसरी top-right और bottom-left पर। तीन values के साथ, दूसरी दोनों top-right और bottom-left पर apply होती है। एक value सभी चारों corners पर uniformly apply होती है।

किसी image को circular या rounded बनाने के लिए border-radius कैसे apply करें?

हाँ — सीधे `<img>` element पर `border-radius` apply करें: circular avatar के लिए `img { border-radius: 50%; width: 100px; height: 100px; }` । Alternatively, image को `overflow: hidden` वाले `<div>` में wrap करें और wrapper पर border-radius apply करें, जो आपको ज़्यादा layout control देता है। इस tool के image upload feature का उपयोग करके preview करें कि आपकी actual photo पर radius कैसा दिखता है, CSS copy करने से पहले। यह avatar crops, media card thumbnails और gallery layouts के लिए विशेष रूप से useful है जहाँ exact clip shape design को affect करती है।

CSS में teardrop या droplet shape कैसे बनाएं?

तीन corners को large value दें और एक को zero पर छोड़ें: `border-radius: 50% 50% 50% 0`। `transform: rotate(-45deg)` के साथ combine करने पर classic map-pin droplet shape बनती है। Droplet को अलग-अलग directions में point करने के लिए zero वाला corner बदलें: `0 50% 50% 50%` left point करता है, `50% 0 50% 50%` right point करता है। Zero वाला corner pointed tip बनाता है; बड़े radius वाले तीन corners rounded body बनाते हैं। यह location markers, pointers और illustration-style UI में decorative accents के लिए useful है।

Slash के साथ 8-value border-radius syntax क्या है?

Slash हर corner के लिए horizontal और vertical radii को अलग करता है। Syntax है: `border-radius: [horizontal radii] / [vertical radii]`। उदाहरण के लिए, `border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%` एक egg-like shape बनाता है जहाँ हर corner का asymmetric elliptical curve होता है। इस tool का Random Blob generator इस syntax का उपयोग organic, asymmetric shapes produce करने के लिए करता है — hero section backgrounds, decorative blobs और illustration-style design elements के लिए popular। हर corner का horizontal-to-vertical radius ratio अलग हो सकता है।

यह border-radius generator cssmatic.com या css-tricks.com tools से कैसे compare करता है?

cssmatic.com का border-radius tool functional है लेकिन outdated है — इसमें image upload, blob generation और preset library नहीं है। css-tricks.com almanac excellent documentation है लेकिन interactive generator नहीं है। bennettfeely.com का clip-path maker use case में overlap करता है लेकिन border-radius की जगह clip-path को target करता है। UtiloKit का generator offer करता है: image upload के साथ live preview (पूरी तरह client-side process), shape presets (circle, pill, card, egg, blob), 8-value slash syntax का उपयोग करके random blob generation, px/% unit toggle, और तीन copy formats। कोई ads नहीं, कोई watermark नहीं, कोई sign-up नहीं, और कुछ भी server पर नहीं जाता।

क्या upload की गई image server पर जाती है?

नहीं — image exclusively browser के File API का उपयोग करके load होती है और आपके device से कहीं नहीं जाती। Preview element image को locally `createObjectURL()` call का उपयोग करके render करता है जो पूरी तरह browser memory में रहती है। कोई upload नहीं, कोई server processing नहीं, कोई cloud storage नहीं। यही client-side architecture सभी features पर apply होती है: slider inputs, CSS generation, blob randomization, और clipboard copying सभी initial page load के बाद बिना किसी network request के JavaScript में run होते हैं। आपकी images और design work पूरी तरह private रहते हैं।

क्या CSS में border-radius transitions animate हो सकते हैं?

`border-radius` CSS transitions और keyframe animations के ज़रिए पूरी तरह animatable है। Hover पर दो values के बीच smoothly interpolate करने के लिए `transition: border-radius 0.3s ease` का उपयोग करें। Shapes के बीच continuously morph करने के लिए `@keyframes` का उपयोग करें — `0` से `50%` तक animate करने से square circle में pulse करता है। दो blob shapes के बीच morphing (अलग 8-value slash values) flowing, organic animations बनाता है जो hero backgrounds में popular है। ध्यान दें कि border-radius animate करने से हर frame पर repaint trigger होता है, इसलिए ऐसे elements पर `will-change: border-radius` का उपयोग करें जो frequently animate होते हों।

क्या border-radius element के click area या CSS layout को affect करता है?

`border-radius` purely visual है — यह element की painted appearance को clip करता है लेकिन इसका layout box, margin area, या pointer event hit area नहीं बदलता। Invisible squared corners अभी भी clickable हैं और अभी भी layout space occupy करते हैं। Touch interfaces के लिए यह जानना ज़रूरी है: एक circular button के corners पर still square clickable region होता है। अगर आपको hit area rounded shape को precisely follow करना हो, तो `clip-path: circle()` का उपयोग करें जो pointer events को भी clip करता है। `box-shadow` सही तरह से `border-radius` को follow करता है; `outline` ज़्यादातर browsers में नहीं करता — rounded focus ring alternative के रूप में `box-shadow: 0 0 0 3px color` का उपयोग करें।

क्या यह CSS border-radius generator mobile पर काम करता है — iPhone और Android पर?

हाँ — tool पूरी तरह responsive है और किसी भी modern mobile browser में काम करता है। iPhone पर, Safari या Chrome में बिना कुछ install किए इसका उपयोग करें। Android पर, Chrome, Firefox और Edge सभी काम करते हैं। Sliders touch-friendly हैं और properly sized drag handles के साथ आते हैं। Image upload mobile पर native file picker का उपयोग करता है, जिससे आप अपने camera roll या files app से select कर सकते हैं। CSS को clipboard पर copy करना सभी modern mobile browsers पर supported standard Web Clipboard API से काम करता है। पूरा tool client-side run होता है, इसलिए कोई app download नहीं, कोई account नहीं, और कोई data कहीं नहीं जाता।