Skip to content
ZeroServer.tools

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