People think they can be alternatives for each other but hand sanitizer and hand soap are different and meant for different circumstances: Sanitizer kills germs and soap simply washes them off.
Professionals recommend washing your hands with soap and water over using hand sanitizer. Ideal way to get your clean goes like this: You wet your hands with running water and scrub your hands with soap for at least 20 seconds (if not more), then immediately wipe them with a clean towel.
When soap and water aren’t available, sanitizer is an effective alternative, especially when you don’t have water and soap or time. Hand sanitizer is also efficent at killing germs, but not all of them. The sanitizer you are using should contain %60 alcohol, ideally between %60-90. Anything lower than that is not effective enough. Too little hand sanitizer won’t provide you the protection you hope for and too much hand sanitizer causes dry skin in your palms and dry skin can cause cracks and bleed.
The best thing to do is to wash your hands with a soap more than 20 seconds any time you possibly can and not to rely on hand sanitizers, but have a hand sanitizer that contains more than 60 percent alcohol in your bag, just in case.