Yes, Gentian violet can be used to treat toenail fungus. Gentian violet contains both antibacterial and antifungus properties, which means that originally, it is meant to treat fungi and bacteria infections of which toenail fungus is among. However, there are lots of over-the-counter products and natural ways of treating nail infection without having to make use of Gentian violet which can leave stains on your nails.