Webspe Tools

Toggle Button Generator

Create custom toggle buttons with this free online generator.
Customize colors, size, text, states, and other design settings while checking the result with a real-time preview.
HTML, CSS, and JavaScript code is generated automatically based on your settings, so you can copy the code you need and use it directly in your web project.

Sponsored Links

Customization

▼ Implementation Type

▼ Default State

Track Design

▼ Size

px
px

px

px

px

Thumb Design

▼ Size

px
px

px

px

<label class="toggleButton">
  <input type="checkbox" class="toggleButton__checkbox" />
</label>

Notes

  • This tool is intended for modern browsers. Some generated CSS may not work in older browsers.
  • This site uses modern-normalize.css. The preview may look slightly different depending on the reset CSS or other styles used in your project.

\ Share on social media /

Sponsored Links

Related Tools