Badge Generator
Create CSS badges, labels and tags with live preview. Choose style, color, size and shape — copy clean HTML + CSS.
① Type badge text and pick a style ② Choose color, size and shape ③ Copy the CSS and HTML
/* CSS */
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 13px;
padding: 4px 10px;
border-radius: 9999px;
background: #c9b89a;
color: #ffffff;
border: none;
font-weight: 600;
line-height: 1;
white-space: nowrap;
}
/* HTML */
<span class="badge">New</span>What are CSS badges and how to design them?
CSS badges are small inline UI components used to label, categorize or highlight content. They are commonly used for notification counts, status indicators, product tags, version numbers and feature labels. Three core visual styles exist: filled (solid background with white text), outlined (transparent background with colored border and text) and soft (low-opacity background with full-opacity text — great for light UIs). Shape is controlled by border-radius: pill shapes use 9999px for fully rounded corners, rounded uses 6px, and square uses 2px. Adding an emoji prefix is a common pattern in modern design systems to add instant visual meaning without icons. Badges pair well with navigation items, card headers and table cells.