I have a best friend from the opposite gender, we talk online through chatting apps and we have normal conversations at school, we are never alone together always in a public setting, we have never touched before. Is this friendship haram or halal?
The Quran does not forbid male and female friendships despite many people claiming it is forbidden. Provided you are not alone together and you are observing appropriate behavior like not touching etc it is not haram for you to be friends.
You should however be mindful of temptation and truthful with yourself and Allah as to your intent. If you are tempted to become more than friends with a boy and fear you may fall into sin then it is best you do not keep that friendship.
It is common question from the young muslim girls/boys.
You can find the best answer from that video.