Button Maker
A button maker: style a button — colours, size, padding, corners, border and shadow — see it live, then copy the ready-to-use CSS for your website or app.
Loading tool controls…
Verify it yourself: press F12, open the Network tab, and use this tool — your files are never uploaded.
Button Maker at a glance
- Price
- Free
- Account
- Not required
- File uploads
- None — your files are never uploaded
- Category
- Developer Tools
Who uses Developer Tools?
Developers and engineers formatting JSON, testing regex, hashing data, encoding values or building API requests.
How to Use Button Maker
Follow these simple steps to get instant results in your browser.
Type the Button Text
Whatever the button should say — "Sign up", "Buy now", "Download" — up to a short label.
Pick the Colours
Background and text colours from the colour picker, or type a hex code such as #6d28d9.
Set Size and Shape
Font size, padding, corner radius and border — the preview updates live with every change.
Choose the Shadow
None, small, medium or large — a larger shadow lifts the button further off the page.
Copy the CSS
Press "Copy CSS" and paste it into your stylesheet, then use class="custom-button" on the button.
What is Button Maker & How Does It Work?
Button Maker lets you style a button — colours, size, padding, corners, border and shadow — see it live, then copy the ready-to-use CSS for your website or app. Type the button text, pick the background and text colours, set the font size, padding, corner radius, border and shadow, and the preview updates as you change each one. When it looks right, press "Copy CSS" and paste the code into your stylesheet — then add class="custom-button" to any <button> or link.
The copied CSS is a .custom-button rule with everything you picked — background and text colours, font size and weight, padding, border, corner radius, box shadow and a smooth hover transition — plus a .custom-button:hover rule that darkens the background by 12%. For a violet button (#6d28d9) the hover colour is #6023bf, worked out by darkening each colour channel by 12%: 109 becomes 96, 40 becomes 35, and 217 becomes 191. The hover rule is pure CSS, so there is no JavaScript to add and it works in every modern browser.
The corner radius runs from 0 to 100 px: 0 gives a square button, 8–12 px gives the usual softly rounded button, and a large radius gives a pill shape. Shadows run from none to large. The tool checks every colour is a valid hex colour before it generates the CSS, and it warns you to keep the text readable — dark text on a light button, light text on a dark button — because a button nobody can read is a button nobody clicks. Everything runs in your browser; nothing is uploaded.
Key Features & Capabilities
Live Preview
The button updates as you change each setting — what you see is what the CSS makes.
Ready-to-Use CSS
.custom-button plus a :hover rule that darkens the background by 12% — paste and go.
Full Styling Control
Colours, font size and weight, padding, border, corner radius and shadow, all adjustable.
Valid Hex Colours
Every colour is checked as a hex code before the CSS is generated.
Private by Design
Everything runs in your browser; nothing is uploaded or stored.
Pro Tips
- •Bookmark this tool for instant one-click access anytime.
- •Drag and drop files directly onto the input surface for fastest handling.
- •All processing happens in your browser session for maximum speed and data safety.
🎯 Common Use Cases
Button Maker - The CSS It Generates
A button is a small set of CSS properties: the background and text colours, the font size and weight, the padding that sets its size, the border, the corner radius that sets its shape, and the box shadow that lifts it off the page. The hover rule darkens the background by 12% — each colour channel multiplied by 0.88 and rounded — which is enough to feel like a response without changing the button's identity. The transition property smooths that change over 0.2 seconds.
Worked Example
- 1Background #6d28d9, text #ffffff, font 16 px, padding 12 px 24 px, radius 12 px, border 0, shadow medium\n.custom-button { background-color: #6d28d9; color: #ffffff; font-size: 16px; padding: 12px 24px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); }\n.custom-button:hover { background-color: #6023bf; }
Frequently Asked Questions about Button Maker
Frequently asked questions
More Developer Tools
Complementary utilities for your workflow
Button Maker
Style a button live and copy the CSS.