CSS Blob Shape: Organic Blobs with border-radius
A CSS blob is a soft, organic shape, like a pebble or a drop of paint. You don’t need SVG for it: border-radius accepts up to eight values, and setting different horizontal and vertical radii for each corner turns a square into a blob.
Here’s a static blob, an animated blob that keeps morphing, and a blurred gradient blob for backgrounds.
Demo:
How the blob works
Each corner of an element can have two radii: a horizontal one and a vertical one. The four values before the slash are the horizontal radii (top-left, top-right, bottom-right, bottom-left), the four after it are the vertical ones. When they’re all different, the corners stop being circles and the shape turns organic.
.blob {
width: 200px;
aspect-ratio: 1;
background: #1d4ed8;
/* horizontal radii / vertical radii */
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
Animated morphing blob
Animate between a few border-radius values and the blob slowly changes shape. Keep the animation long (6–10 seconds) and smooth with ease-in-out; fast morphing looks jittery. Respect reduced motion.
.blob {
animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
33% { border-radius: 58% 42% 31% 69% / 55% 37% 63% 45%; }
66% { border-radius: 40% 60% 55% 45% / 68% 52% 48% 32%; }
}
@media (prefers-reduced-motion: reduce) {
.blob { animation: none; }
}
Blurred blobs as a background
Big, blurred, semi-transparent blobs behind your content give that soft, colorful “mesh” look. Position them absolutely behind the hero and let filter: blur() do the rest. They also make a great background for a CSS glass effect.
.hero {
position: relative;
overflow: hidden;
isolation: isolate;
}
.hero::before {
content: "";
position: absolute;
z-index: -1;
top: -10%;
left: -10%;
width: 60%;
aspect-ratio: 1;
background: #60a5fa;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
filter: blur(60px);
opacity: 0.5;
}
Image in a blob shape
The same border-radius works on images, with object-fit: cover so the photo fills the shape. A nice touch for avatars and “about me” photos.
.avatar-blob {
width: 220px;
aspect-ratio: 1;
object-fit: cover;
border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}
FAQ
How do I make a blob shape in CSS?
Use the 8-value border-radius syntax on a square element, with different values for each corner, for example border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%.
CSS or SVG for blobs?
CSS blobs are simplest for soft, rounded shapes and are easy to animate. For complex, spiky or very irregular shapes, an SVG path gives you full control.
How do I add a gradient to a blob?
Use a gradient as the background: background: linear-gradient(135deg, #60a5fa, #1d4ed8). Design your own in the CSS gradient generator.
Related: border radius generator, CSS glass effect, CSS Grid and CSS tips.