CSS Button Generator

Design Tools

Design buttons and copy the CSS

FreePrivateInstant
Button text
Background
Gradient end color
Text color
Font size
16px
Padding top/bottom
12px
Padding left/right
26px
Corner radius
12px
Border width
0px
Border color
Hover effect
CSS
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font: 700 16px/1.2 system-ui, sans-serif;
  padding: 12px 26px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
HTML
<button class="btn">Get started</button>
Embed this tool on your websiteFree
  1. Choose how tall the frame should be.
  2. Press Copy code.
  3. Paste it into your page, blog, WordPress or Notion HTML block.
Height

The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.

Similar tools you may like

History

All history →

CSS Button Generator — at a glance

Design buttons and copy the CSS.

Your design
text
colors
radius
Generate
Result
.btn { … } .btn:hover { … }

How to use it — step by step

Just your input — nothing to install or sign up for.

1

Style the button

Set text, colors, size, radius, shadow and hover effect.

2

See it live

Hover over the preview to test the hover effect.

3

Copy the code

Press Copy CSS (and Copy HTML) and paste into your project.

Pro tips

Small things that make the result better.

✦Keep text and background contrast high for readability.
✦A small lift on hover feels responsive.

Quick facts

Freeno signup, no limit
Instantresult in a moment
Privatenothing is uploaded
Any devicephone, tablet or PC

Frequently Asked Questions

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Is this tool really free?+

Yes — completely free, no signup, no watermark and no usage limit.

More Free Tools