Skip to main content

CSS Checkbox Generator

Create custom CSS checkboxes with a visual editor. Freely customize animations, colors, and shapes.

#6366f1
#ffffff
#d1d5db

Preview

HTML Code

<label class="custom-checkbox">
    <input type="checkbox" />
    <span class="checkmark"></span>
    Label text
</label>

CSS Code

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox:hover .checkmark {
    border-color: #6366f1;
}

.custom-checkbox input:checked + .checkmark {
    background-color: #6366f1;
    border-color: #6366f1;
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked + .checkmark::after {
    display: block;
}
Share this tool
📖

How to Use

Step 1

Select Design

Select Design

Select a checkbox design template

Step 2

Customize

Customize

Adjust colors, size, border radius, animation, etc.

Step 3

Copy Code

Copy Code

Copy the HTML/CSS code

Features

Real-time Preview

Preview customizations in real time

Rich Templates

Templates with various animations: checkmark, slide, bounce, etc.

Accessible

Generate screen-reader-friendly code with semantic HTML structure

FAQ

Browser default checkboxes restyled with custom CSS designs.