Are we allowed to shave during fasting?
Before answering the question it should be borne in mind that keeping a beard is a symbol of a Muslim.
The Holy Prophet (Saw) has said:
“Oppose the Mushrikeens (poytheists), lengthen your beards and cut your moustache.” (Bukhari p875 v2)
Furthermore all the four Imams, Imam Shafee, Imam Ahmed, Imam Malik and Imam Abu Hanifah agree that the shaving of the beard is impermissible. (Wujub-Ifah-Liyah P19, 20)
Therefore one should keep a beard and abstain from shaving the beard. Regarding your question if one does shave during the fast his fast will remain intact.
– Darul Ifta Birmingham