Stationary and mobile embodiment of the water fountain for preparation of safe drinking water solves the problem of polluted tap water or water from sources where water quality control is not adequately assured. Removal of pollutants from drinking water in the container of the fountain is achieved in electrolytic cell with boron doped diamond anode. The required time of electrolysis is for expected water pollutant or mixture of thereof specified in the operating system of the device. The stationary embodiment of the fountain enables continuous refill of the container from the working vessel and allows consumer the uninterrupted supply of safe clean water. The mobile embodiment of the fountain operates in a batch mode in three cycles: water cleaning, water availability, and the cycle of cleaning of device. Existing drinking fountains can be converted into fountains according to invention by replacing old with new components according to invention.