Answer
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
Biting nails does not break the fast unless a person intentionally swallows nail fragments. However, Islam advises avoiding harmful habits like nail biting, as it may affect health. The Prophet Muhammad (peace be upon him) emphasized avoiding actions that cause harm.
Answering your question, The Fatwa Center at IslamWeb.net, states:
Biting the nails does not break one’s fast unless parts of the nails are swallowed deliberately. However, a Muslim should stop this act because it might harm one’s health, as specialist doctors say. It was authentically narrated on the authority of Ibn ‘Abbas (may Allah be pleased with him) that the Prophet (peace be upon him) said: “[Let there be] no harm, nor the reciprocation of harm.” (Ahmad and Ibn Majah)
For more, see these fatwas:
- Can You Swallow Your Saliva while Fasting?
- Can We Swallow Saliva during Ramadan Fasting?
- Is Swallowing Blood Permissible for Muslims?
- Does Swallowing Drops of Rain Invalidate Fasting?
Almighty Allah knows best.