In CSS, Use the border-radius property to create rounded images:
You can Change the shape of the image using pixels or using percentage value.
Below are two examples .
Lets see
1. Border-radius : 200px;
<!DOCTYPE html>
<html>
<head>
<style>
img {
border-radius: 20px;
}
</style>
</head>
<body>
<h2>Rounded Images</h2>
<p>border-radius property with pixels value:</p>
<img src="paris.jpg" alt="Paris" width="300" height="300">
</body>
</html>
![](https://static.wixstatic.com/media/0f65e1_f74fe27c284f4103ac0571b0ef2b54f7~mv2.png/v1/fill/w_90,h_57,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/0f65e1_f74fe27c284f4103ac0571b0ef2b54f7~mv2.png)
2. Border-radius : 50%
<!DOCTYPE html>
<html>
<head>
<style>
img {
border-radius: 50%;
}
</style>
</head>
<body>
<h2>Rounded Images</h2>
<p>border-radius property with percentage value:</p>
<img src="paris.jpg" alt="Paris" width="300" height="300">
</body>
</html>
![](https://static.wixstatic.com/media/0f65e1_dc8d2d2da9774e2485082c19e104d616~mv2.png/v1/fill/w_87,h_57,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/0f65e1_dc8d2d2da9774e2485082c19e104d616~mv2.png)
Resources: W3School
The Tech Platform