CSS Button Generator
Design ToolsDesign 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>
Similar tools you may like
History
All history →CSS Button Generator — at a glance
Design buttons and copy the CSS.
text
colors
radius
Generate
.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
Guides you might like
All guides →Color ConverterHEX, RGB and HSL: three ways to write the same colour, and which to usePX to REM Converterpx vs rem: why your font sizes should be allowed to scaleAspect Ratio Calculator16:9, 4:3, 1:1: aspect ratios without cropping surprisesColor Contrast CheckerIs your text readable? The contrast ratio, explained

