Skip to content

Button Maker

New
Developer Tools•Client-Side & Private

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.

Tool workspace

Style Your Button

Pick the colours, size, padding, corners, border and shadow — the preview updates live.

What the button should say — for example “Sign up”.

Between 8 and 72 px.

0 = square, large = pill shape.

Between 0 and 64 px.

Between 0 and 64 px.

0 = no border, up to 10 px.

Hex colour, for example #4c1d95.

Shadow
Bold text
Uppercase text
Important Usage Notice

The copied CSS is plain, standard CSS with no dependencies — paste it into any stylesheet or <style> block and use class="custom-button" on a button or link. Pick a text colour that contrasts with the background, so the button stays readable.

Live Preview.custom-button
Click me

Hover colour #6023bf — the background darkened by 12%

Preview

Exactly what the CSS makes

Hover over the button to see the darker hover colour.

Your CSS

Paste this into your stylesheet, then use class="custom-button"

.custom-button {
  display: inline-block;
  background-color: #6d28d9;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border: 0px solid #4c1d95;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.custom-button:hover {
  background-color: #6023bf;
}

Button Maker — The CSS It Generates

.custom-button { background-color; color; font-size; font-weight; padding; border; border-radius; box-shadow; transition } + .custom-button:hover { background-color: the same colour darkened by 12% }

Where:

  • PaddingButton size — Top/bottom and left/right padding set how big the button is around its text
  • RadiusButton shape — 0 px = square, 8–12 px = softly rounded, large = pill shape
  • :hoverHover colour — Each colour channel multiplied by 0.88 — for #6d28d9 the hover colour is #6023bf

Step-by-Step Worked Example

Example Scenario: Make a violet button that says “Sign up”.

1Colours
Background #6d28d9, text #ffffff

White text on violet — high contrast, easy to read.

2Size and shape
16 px font, 12 px × 24 px padding, 12 px radius

A comfortable, softly rounded button.

3Hover
#6d28d9 darkened 12% → #6023bf

109 → 96, 40 → 35, 217 → 191 across the three colour channels.

Final Calculated Result:.custom-button with a #6023bf hover — copy the CSS and use it

Loading tool controls…

Files processed locally — never uploaded to our servers
Free Instant Private

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

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.

1

Type the Button Text

Whatever the button should say — "Sign up", "Buy now", "Download" — up to a short label.

2

Pick the Colours

Background and text colours from the colour picker, or type a hex code such as #6d28d9.

3

Set Size and Shape

Font size, padding, corner radius and border — the preview updates live with every change.

4

Choose the Shadow

None, small, medium or large — a larger shadow lifts the button further off the page.

5

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

A Call-to-Action ButtonA sign-up or buy button in your brand colour, with a hover state that darkens on mouse-over.
Matching a DesignRecreate a button from a mockup — same colours, same corners, same padding — and take the CSS.
Trying Button StylesCompare a square button with a pill button, or a flat button with a shadowed one, before you commit.
Learning CSSChange one setting at a time and read the CSS it produces — a hands-on way to learn the properties.
📐

Button Maker - The CSS It Generates

Formula Equation:
.custom-button { background-color; color; font-size; font-weight; padding; border; border-radius; box-shadow; transition } + .custom-button:hover { background-color: the same colour darkened by 12% }

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

  1. 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

Type the button text, pick the background and text colours, set the font size, padding, corner radius, border and shadow, and the preview updates live. When it looks right, press "Copy CSS" — the CSS is a .custom-button class plus a :hover rule — and paste it into your stylesheet, then add class="custom-button" to any <button> or link.

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%.

Yes — the corner radius is yours to set from 0 to 100 px. A radius of 0 gives a square button, 8–12 px gives the usual softly rounded button, and 999 px (or anything above half the button height) gives a pill shape. The preview shows the result as you change it.

Any hex colour: pick from the colour picker or type a code such as #6d28d9 (violet) or #ffffff (white). The tool checks the code is a valid hex colour before it generates the CSS. Pick a text colour that contrasts with the background — dark text on a light button, light text on a dark button — so the button stays readable.

Yes. The CSS is plain, standard CSS with no dependencies — paste it into any stylesheet or <style> block and use class="custom-button" on a button or link. It works in every modern browser, and the hover rule is pure CSS, so there is no JavaScript to add.

Complementary utilities for your workflow

View all →
You are here

Button Maker

Style a button live and copy the CSS.

Current tool

CSS Minifier

Minify and compress CSS for faster page loads.

Try tool
New

CSS Clamp Generator

Fluid clamp() font sizes for body and H1–H6, with live preview.

Try tool

CSS Formatter

Beautify CSS with clean rules and indentation.

Try tool

Color Converter

Convert colors between HEX, RGB, HSL, and CMYK models.

Try tool
Popular

JSON Formatter

Format, beautify, and syntax-highlight JSON data.

Try tool