toxic friend

i've been friends with this girl since we were 9 but recently for about the past year she has been really rude and saying a lot of things behind my back and denying them to my face.
help!!
what do i do?
i want to cut it off and leave the friendship but i just don't know how
:((