How to Add Rounded Corners to HTML Elements

TeasyWebsite editor

Open a page to start editing

Choose an HTML file or paste its code. Then click or tap any text, image or button to change it. Free, with no sign-up.

Your page stays in your browser. Nothing is uploaded.

How Teasy works
Ready. Open a page to start editing

How to Add Rounded Corners to HTML Elements

Rounded corners soften buttons, cards and photos. In code that's the border-radius property. In Teasy you click the element and type a value like 12px in Rounded corners, then add a border thickness and color if you want an outline.

How to do it, step by step

  1. Load your HTML and click the button, image or card.
  2. In Border & Shape, type a value such as 8px or 999px for fully round.
  3. Set Border thickness and Border Color for an outline.
  4. Download the file.

Tips for best results

Frequently asked questions

How do I make a circle?

Use a square image and set a large radius, like 50%.

Can I add a border?

Yes. Set a thickness and a color in the same section.

Does it work on any element?

Yes, on any element you can select in the preview.

Related guides