CSS Checkbox Generator
Generate custom CSS checkbox styles with live preview. No images or icon fonts needed.
Click to toggle
<label style="display:flex;align-items:center;gap:8px;cursor:pointer"> <input type="checkbox" class="custom-checkbox"> Checkbox label </label>
/* Custom Checkbox */
input[type="checkbox"].custom-checkbox {
appearance: none;
-webkit-appearance: none;
position: relative;
width: 20px;
height: 20px;
border: 2px solid #94a3b8;
border-radius: 3px;
background-color: transparent;
cursor: pointer;
vertical-align: middle;
transition: border-color 0.15s, background-color 0.15s;
}
input[type="checkbox"].custom-checkbox:checked {
background-color: #22d3ee;
border-color: #22d3ee;
}
input[type="checkbox"].custom-checkbox:checked::after {
content: "";
position: absolute;
left: 7px;
top: 2px;
width: 5px;
height: 10px;
border: 2px solid #22d3ee;
border-top: none;
border-left: none;
transform: rotate(45deg);
}How to style CSS checkboxes
Custom checkboxes use appearance: none to remove the OS default, then rebuild the box with CSS borders and the ::after pseudo-element for the check mark. The :checked selector switches the background and reveals the mark. This technique requires no images, SVG, or JavaScript and works across all modern browsers.
Private & free — this tool runs entirely in your browser.
Recommended: Kinsta — Fast managed hosting — up to $500 + 10% recurring.affiliate
Related Design & CSS tools
Color Converter
Convert a color to HEX, RGB, HSL, HSB, and CMYK at once.
HEX to RGB
Convert HEX color codes to RGB / RGBA values.
RGB to HEX
Convert RGB values into HEX color codes.
CSS Box Shadow Generator
Visually design CSS box-shadow with a live preview and code.
CSS Border Radius Generator
Visually craft border-radius with a live preview.
HEX to CMYK
Convert HEX colors to CMYK print values.
CMYK to HEX
Convert CMYK print values to HEX colors.
HEX to HSB
Convert HEX colors to HSB / HSV values.