75+ Free CSS Toggle Switches (Code Included)

Enjoy these CSS toggle switch code examples. They are free to use and you can embed them into your website or application very easily. The code is provided for free by generous open source authors.

NEW 🔥 Auto-Apply to 100's of Jobs With AI 🔥
👉 Click to visit: ApplyFox.ai

1. An Actual Pure CSS Checkbox Slider

CSS Toggle Switches - An Actual Pure CSS Checkbox Slider
Lotta people use JS for the text changes but you don't need to.
Author: Mark (markmead)
Created on: May 2, 2019
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: purecss, purecss toggle, css-toggle, toggle element, toggle select

2. CSS Grid Toggle

CSS Toggle Switches - CSS Grid Toggle
A new take on the CSS toggle, using CSS grid animations. See code for explanations :)
Author: Liam (liamj)
Created on: January 25, 2019
Made with: HTML, SCSS
Tags: grid, toggle, checkbox, animation

4. Animated CSS Toggle Switch

CSS Toggle Switches - Animated CSS Toggle Switch
Author: Garet McKinley (garetmckinley)
Created on: August 2, 2019
Made with: HTML, SCSS

5. Pure CSS Fuel Gauge Toggle

CSS Toggle Switches - Pure CSS Fuel Gauge Toggle
Author: Ömercan Balandı (omercanbalandi)
Created on: February 2, 2020
Made with: HTML, Sass
Tags: pure, css, toggle, checkbox, html

6. Neumorphic Toggle

CSS Toggle Switches - Neumorphic Toggle
Author: halvves (halvves)
Created on: February 5, 2020
Made with: HTML, CSS
Tags: neumorphism, toggle, ui, soft ui, neumorphic

8. Dumb Toggles

CSS Toggle Switches - Dumb Toggles
Author: Adam Kuhn (cobra_winfrey)
Created on: February 1, 2018
Made with: HTML, SCSS
Tags: toggle, css

9. CSS Plane Switch

CSS Toggle Switches - CSS Plane Switch
Author: Aaron Iker (aaroniker)
Created on: January 9, 2020
Made with: HTML, SCSS
Tags: plane, fly, sky, switch, toggle

10. Plus / Minus Toggle CSS

CSS Toggle Switches - Plus / Minus Toggle CSS
Author: Adam Kuhn (cobra_winfrey)
Created on: July 30, 2018
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml

11. Power Switch Animation - Only CSS

CSS Toggle Switches - Power switch animation - Only CSS
Simple Power switch animation
Author: Milan Raring (milanraring)
Created on: January 11, 2020
Made with: HTML, SCSS
Tags: css, power switch, on, off, animation

12. CSS Heart Switch

CSS Toggle Switches - CSS Heart Switch
Author: Aaron Iker (aaroniker)
Created on: December 16, 2019
Made with: HTML, SCSS
Tags: heart, toggle, love, checkbox, input

13. Subscribe Toggle Button

CSS Toggle Switches - Subscribe Toggle Button
A subscribe toggle button featuring "Smudge, The Confused Cat" From Famous "Woman Yelling At Cat" Meme.
Author: Himalaya Singh (himalayasingh)
Created on: November 24, 2019
Made with: HTML, CSS
Tags: subscribe, toggle-button, toggle-switch, switcher, button

14. Toggle Switch Checkbox In CSS

CSS Toggle Switches - Toggle Switch Checkbox in CSS
Author: CodeMeNatalie (CodeMeNatalie)
Created on: December 12, 2019
Made with: HTML, SCSS, JS
Tags: cpc-checkbox-hack, codepenchallenge, toggle, switch, checkbox

15. Volume Toggle CSS Switch

CSS Toggle Switches - Volume Toggle CSS Switch
Author: Aaron Iker (aaroniker)
Created on: October 17, 2019
Made with: HTML, SCSS
Tags: switch, toggle, volume, control, svg

16. Pink And Purple CSS Toggle Switch

CSS Toggle Switches - Pink and Purple CSS Toggle Switch
Author: CodeMeNatalie (CodeMeNatalie)
Created on: October 24, 2019
Made with: HTML, SCSS
Tags: cpc-smooth-sharp, codepenchallenge, toggle, square, circle

17. Simple CSS Switch / Toggle

CSS Toggle Switches - Simple CSS Switch / Toggle
Author: Aaron Iker (aaroniker)
Created on: October 16, 2019
Made with: HTML, SCSS
Tags: switch, animation, toggle, checkbox, input

18. Simple CSS Switch / Toggle

CSS Toggle Switches - Simple CSS Switch / Toggle
From https://dribbble.com/shots/2326459-Adobe-Toggle-Switch
Author: Aaron Iker (aaroniker)
Created on: October 16, 2019
Made with: HTML, SCSS
Tags: switch, toggle, input, checkbox, minimal

19. Checkbox CSS Toggle - Day / Night Mode

CSS Toggle Switches - Checkbox CSS Toggle - Day / Night Mode
Checkbox CSS Toggle - Day / Night Mode
Author: Ahmad Emran (ahmadbassamemran)
Created on: August 28, 2019
Made with: HTML, CSS
Tags: checkbox, html, css, javascript, day/night

20. Antsy Toggles

CSS Toggle Switches - Antsy Toggles
Toggles that have a bit of anxiety...
Author: Daryn St. Pierre (bloqhead)
Created on: September 19, 2019
Made with: HTML, SCSS
Tags: css, scss, sass, animation

21. Checkbox Animation With Pure Css

CSS Toggle Switches - Checkbox Animation With Pure Css
Author: Erdem Uslu (erdemuslu)
Created on: June 8, 2019
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug

22. Toy Toggle Switch

CSS Toggle Switches - Toy Toggle Switch
What a toggle switch may look like if on a Little Tikes product, considering the plastic look. The handle is to resemble a dual colored ball. Based on this Dribbble shot. Update 8/28/19: Changed divs to spans
Author: Jon Kantner (jkantner)
Created on: July 2, 2019
Made with: HTML, CSS
Tags: skeuomorphic, switch, toggle, toy

23. A Confusing Toggle Button

CSS Toggle Switches - A Confusing Toggle Button
A Confusing Toggle Button / Toggle Switch Using HTML And CSS
Author: Himalaya Singh (himalayasingh)
Created on: May 25, 2019
Made with: HTML, CSS
Tags: toggle, on, off, switch, button

24. CSS Day And Night Toggle

CSS Toggle Switches - CSS Day and Night Toggle
Author: Ana Tudor (thebabydino)
Created on: June 4, 2019
Made with: HTML, SCSS
Tags: css-variables, transform, clip-path, sass

25. Toggle Radial Effect

CSS Toggle Switches - Toggle Radial Effect
Author: Florin Pop (FlorinPop17)
Created on: March 20, 2019
Made with: HTML, CSS

27. Simple Knobby Toggles

CSS Toggle Switches - Simple Knobby Toggles
Author: Daryn St. Pierre (bloqhead)
Created on: January 8, 2019
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug

28. Checkbox Rocker Toggle Switch

CSS Toggle Switches - Checkbox Rocker Toggle Switch
An HTML checkbox form element styled as a rocker toggle switch.
Author: Marcus Connor (marcusconnor)
Created on: November 8, 2018
Made with: HTML, CSS
Tags: rocker, toggle, switch, form

29. Gender Toggle Pure CSS

CSS Toggle Switches - Gender Toggle Pure CSS
Author: Chintu Yadav Sara (chintuyadav)
Created on: January 1, 2019
Made with: HTML, CSS

30. Toggle Button Switiches

CSS Toggle Switches - Toggle Button Switiches
Author: Stockin (Stockin)
Created on: October 8, 2018
Made with: HTML, CSS, JS

31. Pure CSS Bulb Switch

CSS Toggle Switches - Pure CSS Bulb Switch
Author: Grzegorz Witczak (Wujek_Greg)
Created on: October 25, 2018
Made with: HTML, Stylus, JS
Tags: switch, toggle, pure, css, bulb

32. UI/UX Example: Tab Switch Animation

CSS Toggle Switches - UI/UX example: Tab switch animation
Low fidelity mobile phone mockup done with css and a nice tab switch animation.
Author: Angel Davcev (Gelsot)
Created on: March 7, 2018
Made with: Pug, Sass, Babel
CSS Pre-processor: Sass
JS Pre-processor: Babel
HTML Pre-processor: Pug
Tags: ui, ux, mobile, phone, tabs

33. Lock Switch Animation

CSS Toggle Switches - Lock switch animation
Author: Aaron Iker (aaroniker)
Created on: October 22, 2018
Made with: HTML, SCSS
Tags: lock, switch, animation, unlock, slider

34. Switches Checkboxes

CSS Toggle Switches - Switches Checkboxes
Author: Zed Dash (z-)
Created on: September 23, 2018
Made with: HTML, SCSS, JS
Tags: checkbox, css, black, white

35. Pure CSS Toggle Buttons | ON-OFF Switches

CSS Toggle Switches - Pure CSS Toggle Buttons | ON-OFF Switches
Collection of toggle buttons / on-off switches which can be practically used in a website. Designed using CSS without any JavaScript :) Which one is your fav?
Author: Himalaya Singh (himalayasingh)
Created on: October 2, 2018
Made with: HTML, CSS, JS
Tags: toggle-buttons, on-off switches, buttons, pure-css, animated

36. Toggle Buttons / On-Off Switches

CSS Toggle Switches - Toggle buttons / On-Off switches
Day night toggle button, elastic toggle button or on-off switches. Code representation of the Dribbble shot: https://dribbble.com/shots/4298041-Daily-UI-015-On-Off-Switch
Author: Himalaya Singh (himalayasingh)
Created on: August 22, 2018
Made with: HTML, CSS, JS
Tags: toggle-button, on/off switch, dribbble shot, day night toggle button, elastic toggle button

37. Totoro Toggle

CSS Toggle Switches - Totoro Toggle
one of my fave characters + one of my fave checkbox hack formats, together at last for this week's CodePen challenge
Author: Adam Kuhn (cobra_winfrey)
Created on: July 17, 2018
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml
Tags: totoro, ghibli, codepen challenge, animation, pure-css

38. Cold-Hot Toggle Switch

CSS Toggle Switches - Cold-Hot Toggle Switch
Probably a toggle switch concept that no one has tried before. This one is for temperature—options being cold or hot. The idea is to portray the handle as an ice cube for cold and a flame for hot. For hot, the cube moves right and melts at the same time, and a rising flame moves along with...
Read More
Author: Jon Kantner (jkantner)
Created on: June 8, 2018
Made with: HTML, CSS
Tags: toggle-switch, checkbox, temperature

39. Wobble Toggle

CSS Toggle Switches - Wobble Toggle
Author: Adam Kuhn (cobra_winfrey)
Created on: July 30, 2018
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml

40. CSS Bear Toggle

CSS Toggle Switches - CSS Bear Toggle
A beary cute toggle.
Author: Anastasia Goodwin (agoodwin)
Created on: May 31, 2018
Made with: HTML, SCSS
Tags: toggle, bear, css, animation

41. Realistic Toggle Button

CSS Toggle Switches - Realistic toggle button
Author: Alex (AlexJedi)
Created on: August 27, 2017
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: toggle, material, animation, css

43. CSS Toggle

CSS Toggle Switches - CSS Toggle
Author: Katherine Kato (kathykato)
Created on: March 8, 2018
Made with: HTML, SCSS
Tags: toggle, face, kawaii, css, animation

44. Implementation Of Liquid Button

CSS Toggle Switches - Implementation of Liquid button
Author: Alex (AlexJedi)
Created on: June 22, 2017
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: toggle, css, animation, material, button

45. Pure Css Elastic Toggle

CSS Toggle Switches - pure css elastic toggle
Author: halvves (halvves)
Created on: May 25, 2018
Made with: HTML, PostCSS
Tags: toggle, switch, animation, cpc-checkboxes, elastic

46. Another Toggle

CSS Toggle Switches - Another Toggle
Author: valaxin (valaxin)
Created on: February 18, 2016
Made with: HTML, CSS

47. Pure CSS Day And Night Toggle

CSS Toggle Switches - Pure CSS Day And Night Toggle
Saw this dribbble shot by Rappora, loved it, wanted to see it alive. See https://dribbble.com/shots/2360260-AM-PM-Toggle
Author: Benjamin Réthoré (bnthor)
Created on: November 23, 2015
Made with: HTML, SCSS
Tags: toggle, form, control

48. Pure CSS Minimal Toggle

CSS Toggle Switches - Pure CSS Minimal Toggle
Toggle with just CSS. Enjoy it!
Author: Rau (raubaca)
Created on: February 8, 2016
Made with: HTML, SCSS, JS
Tags: css, toggle, checkbox

49. Sub/Sup Toggle

CSS Toggle Switches - Sub/Sup Toggle
Author: Adam Kuhn (cobra_winfrey)
Created on: May 23, 2018
Made with: HTML, SCSS
Tags: codepenchallenge, challenge, sub, sup, toggle

50. Kitty Toggle

CSS Toggle Switches - Kitty Toggle
A simple checkbox toggle improved by being made into a cat.
Author: Natalya (tallys)
Created on: August 10, 2015
Made with: HTML, SCSS
Tags: cat, kitty, toggle, css

51. IOS 7 Toggle

CSS Toggle Switches - iOS 7 Toggle
CSS/HTML only recreation of the iOS 7 toggle buttons. I love the little bounce that the slide has.
Author: Daniel Eden (daneden)
Created on: September 6, 2013
Made with: HTML, CSS

52. Simple Toggle

CSS Toggle Switches - Simple Toggle
Simple toggle button.
Author: magnificode (magnificode)
Created on: September 28, 2015
Made with: HTML, SCSS
Tags: toggle

53. Pure CSS Toggles

CSS Toggle Switches - Pure CSS Toggles
Getting fun with some animations & transitions :)
Author: Rafael González (rgg)
Created on: July 22, 2015
Made with: HTML, SCSS
Tags: transition, animation, css, ui

54. Skew Switch!

CSS Toggle Switches - Skew Switch!
Author: Abhijit Hota (XDBoy018)
Created on: December 15, 2014
Made with: Haml, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml

55. Toggle Buttons / On-Off Switches

CSS Toggle Switches - Toggle buttons / On-Off switches
Day night toggle button, elastic toggle button or on-off switches. Code representation of the Dribbble shot: https://dribbble.com/shots/4298041-Daily-UI-015-On-Off-Switch
Author: Himalaya Singh (himalayasingh)
Created on: August 22, 2018
Made with: HTML, CSS, JS
Tags: toggle-button, on/off switch, dribbble shot, day night toggle button, elastic toggle button

56. Pure CSS Day/Night Toggle Swith

CSS Toggle Switches - Pure CSS Day/Night Toggle Swith
Author: Jason Tyler (jsndks)
Created on: January 30, 2015
Made with: HTML, SCSS, JS
Tags: pure-css, toggle, ui, dribbble

57. SVG Switches Design

CSS Toggle Switches - SVG Switches Design
Original design can be found here: https://dribbble.com/shots/1095343-Switches
Author: Maksim Daunarovich (MaxStalker)
Created on: January 14, 2015
Made with: HTML, CSS
Tags: svg

58. Volume Toggle CSS Switch

CSS Toggle Switches - Volume Toggle CSS Switch
Author: Aaron Iker (aaroniker)
Created on: October 17, 2019
Made with: HTML, SCSS
Tags: switch, toggle, volume, control, svg

59. (Almost) Pure CSS Night/day Toggle

CSS Toggle Switches - (Almost) Pure CSS Night/day Toggle
A Day/Night Toggle, inspired by a dribbble from Bojan Mesar. see link to original GIF
Author: Lurx (lurx)
Created on: January 10, 2019
Made with: HTML, SCSS, JS
Tags: toggle-switch, checkbox-toggle, inspired

60. Pure CSS Toggle Switch

CSS Toggle Switches - Pure CSS Toggle Switch
A pure CSS based toggle switch no Jquery needed.
Author: Alan Parsons (ParsonsProjects)
Created on: October 13, 2014
Made with: HTML, Less
Tags: css3, css, toggle-switch

61. Custom Checkbox / Toggle Switch

CSS Toggle Switches - Custom Checkbox / Toggle Switch
Collection of four toggle switches made with html and css without a single line of javascript. Two of the switches are made with the help of svg also.
Author: thelaazyguy (thelaazyguy)
Created on: August 26, 2017
Made with: HTML, CSS
Tags: toggle switches, toggle animation, custom-checkbox, checkbox animation

62. Bootstrap Button Toggle (On/off Switch)

CSS Toggle Switches - Bootstrap Button Toggle (On/off Switch)
Working on a client project that will be using Bootstrap, and needed to build a toggle/switch that came in a couple different sizes. I wasn't seeing that as a built-in option within Bootstrap, and I didn't really like the ones already out there that I found from a quick search (I didn't wa...
Read More
Author: Aanjulena Sweet (aanjulena)
Created on: February 16, 2017
Made with: HTML, Less
Tags: bootstrap, toggle, switch, css, button

63. Bootstrap Pure CSS Switch/Toggle Buttons

CSS Toggle Switches - Bootstrap Pure CSS Switch/Toggle Buttons
Author: Jennifer Louie (jenniferlouie)
Created on: March 13, 2015
Made with: HTML, SCSS
Tags: bootstrap, toggle, checkbox, switch button

64. Custom-Toggle Bootstrap 4 Switches - Sizes Large And Extra Large

CSS Toggle Switches - Custom-Toggle Bootstrap 4 Switches - Sizes Large and Extra Large
Custom Toggles for BS4 only come in one size. Large and Extra Large sizes would be nice. Simply adding the scss and the size classes will make them much better.
Author: Frisby (frisby)
Created on: March 10, 2020
Made with: HTML, SCSS
Tags: bootstrap, boostrap 4, switches, custom-toggle, switch

65. All-CSS Toggle Switch (Checkbox Hack)

CSS Toggle Switches - All-CSS Toggle Switch (Checkbox Hack)
Author: Marcus Burnette (mburnette)
Created on: January 11, 2017
Made with: HTML, SCSS

66. Pure CSS Two-Way Toggle Switch

CSS Toggle Switches - Pure CSS Two-Way Toggle Switch
From Sander: This is a pure-css clean two-way toggle switch with two states. Enjoy. Share.
Author: Sander (Sandroid) (UXauthority)
Created on: May 26, 2016
Made with: HTML, CSS, JS
Tags: switch, toggle, pure-css, two-way

67. CSS Toggle Switch

CSS Toggle Switches - CSS Toggle Switch
This is a toggle that overrides a native checkbox input element. The sizes are based on a couple of CSS variables at the top level of the widget. The toggle is hidden from accessibility tools, such as screen readers, which will use the default native HTML checkbox. Keyboard users can tab ...
Read More
Author: Jeroen van der Tuin (Jeromche)
Created on: September 15, 2019
Made with: HTML, PostCSS, Babel
Tags: form-input, toggle, checkbox

68. Pure CSS Toggle Switch

CSS Toggle Switches - Pure CSS Toggle Switch
Author: Morgan Carter (morgoe)
Created on: October 12, 2015
Made with: HTML, SCSS

69. Radio Button Toggle Switch

CSS Toggle Switches - Radio button toggle switch
style two radio buttons to not look so awful
Author: Eric Kelley (emkelley)
Created on: April 24, 2018
Made with: HTML, SCSS
Tags: radio, radio-buttons, radio button css, radio button toggle, toggle-switch

70. BB-8 Toggle Switch|Pure CSS

CSS Toggle Switches - BB-8 Toggle Switch|Pure CSS
bb-8 toggle switch that changes background color
Author: Claudia Alphonse (claudz1)
Created on: January 24, 2018
Made with: HTML, SCSS
Tags: pure-css, toggle-switch, bb8

71. Google CSS Only Toggle Switch

CSS Toggle Switches - Google CSS Only Toggle Switch
CSS only toggle switch changes the colors of the Google logo. Based on a dribble - https://dribbble.com/shots/2544386-Google
Author: Edd Yerburgh (eddyerburgh)
Created on: February 23, 2016
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: pure-csss, google, toggle, toggle-switch

72. Cute Animated Checkbox

CSS Toggle Switches - cute animated checkbox
Based on this Dribbble: https://dribbble.com/shots/6266357-Checkboxswitcher
Author: Katie Boedges (kboedges)
Created on: September 20, 2019
Made with: HTML, CSS
Tags: css, checkbox, animated, toggle

73. Toggle Flavoured Checkbox

CSS Toggle Switches - Toggle Flavoured Checkbox
A CSS only transformation of a checkbox into a toggle switch. Supports checked, focus, disabled, indeterminate, hover and active states. Features an animated transition on change. I've used a [toggle] property but you could just use a class. Based on https://codepen.io/andreasstorm/pen/j...
Read More
Author: Chris Smith (chris22smith)
Created on: January 15, 2020
Made with: HTML, SCSS, JS
Tags: checkbox, switch, toggle, boolean
NEW 🔥 Auto-Apply to 100's of Jobs With AI 🔥
👉 Click to visit: ApplyFox.ai