Generate a custom-styled checkbox with CSS that stays fully accessible. Choose a tick, cross or filled mark, set the size, radius, border width and colors, and adjust the check animation. The output keeps the real checkbox in the page, so keyboard focus, form submission and screen readers keep working. It's free, runs in your browser, and nothing is uploaded.
| Approach | Custom shape | Accessible |
|---|---|---|
| accent-color | No (color only) | Yes |
| appearance: none on the input | Yes | Yes |
| Hidden input + styled span (this tool) | Yes | Yes |
| display: none + div | Yes | No |
That removes it from the keyboard and screen readers. The generated CSS hides it visually but keeps it usable.
accent-color tints the native checkbox in one line and is great when you only need a color change. Use this tool when you need a different size, shape or mark.
Yes. The whole thing is a label element, so clicking the text works.
Not in this version. Add an input:indeterminate + span rule if you need it.
No. The code is generated in your browser.
Custom checkboxes break accessibility when the real input is removed with display: none, because it then can't be focused, toggled with Space or read by a screen reader. This generator keeps the input in the page, positioned absolutely at one pixel and fully transparent, and draws the visible box as a span that follows it, so input:checked + span and input:focus-visible + span drive every visual state. The mark is a ::after pseudo-element: a tick made from two borders of a rotated rectangle, a cross character, or a filled inner square, each scaled from zero when checked so it can animate. Sizes for the mark and its stroke are derived from the box size. A focus ring appears for keyboard users only, disabled boxes are dimmed, and a reduced-motion block turns the animation off. Wrapping everything in a label makes the text clickable too.