CSS Badge Generator
Make tags, status chips and counters that match your UI. Set the colors, padding and shape, add a status dot, and copy the tiny CSS snippet.
Last updated: · Runs 100% in your browser
// controls
Presets
20px
4px
10px
12px
Live preview
Generated CSS
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
background: #0f2a1a;
color: #00ff66;
font-size: 12px;
font-weight: 600;
padding: 4px 10px;
border-radius: 20px;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.badge::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
}// Example output
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
background: #0f2a1a;
color: #00ff66;
font-size: 12px;
font-weight: 600;
padding: 4px 10px;
border-radius: 20px;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.badge::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
}// Features
- ▸Pill or square shapes
- ▸Optional status dot
- ▸Uppercase and letter-spacing
- ▸Custom label text
- ▸Tiny, dependency-free CSS
// How to use
- 01Adjust the controls on the left or pick a preset to start the CSS Badge Generator.
- 02Watch the live preview update instantly as you change each setting.
- 03Fine-tune the generated CSS by hand in the code panel if you like.
- 04Click Copy CSS or Download CSS, or Share to send a link to your design.
// FAQ
Your data never leaves your browser. This tool runs 100% locally — no upload, no logging, no analytics on your inputs.
// Related tools
CSS Button Generator
Design production-ready buttons with gradients, borders, hover effects and shadows, then copy the CSS.
CSS Ribbon Generator
Add corner ribbons like “New” or “Sale” to cards with a configurable CSS ribbon generator.
WCAG Contrast Checker
Check text and background color contrast against WCAG 2.2 AA and AAA for normal and large text.