Free tool · HTML & CSS

CSS Button Generator

Design a call-to-action button that matches your brand. Hover over the preview to test it.

HTML

CSS

Presets

Buttons are only half of it.

Get a landing page that actually converts.

Clear offers, strong calls to action and fast pages turn ad clicks into customers. I design and build landing pages built to convert.

See landing pages

What makes a button get clicked

  • Say what happens: "Book a free call" beats "Submit".
  • One main button per screen, in your boldest colour. Other actions get an outline style.
  • Make it big enough to tap with a thumb, with space around it.
  • Show it is clickable: a hover effect and a pointer cursor confirm it is a button.

Frequently asked questions

How do I use the generated button?

Copy the HTML where you want the button and change the link. Add the CSS to your stylesheet, or in WordPress to Appearance, Customize, Additional CSS. The class name keeps the style from affecting other buttons.

Is the button accessible?

Yes: it includes a visible focus outline for keyboard users and uses a real link. Keep text and background contrast high; check it with the contrast checker if you choose your own colours.

Should a button be a link or a <button>?

Use a link (<a>) when it goes to another page, like "Book a call". Use a <button> when it does something on the page, like submitting a form. The same CSS class works for both.

How big should buttons be on phones?

At least 44 by 44 pixels so they are easy to tap. Padding of 12px top and bottom with 16px text gets you there.

More design tools