How to avoid split ends in my hair?

I’ve long hair but I’ve split ends from middle of my hair. I tried to cut my hair at the bottom but in the middle is tuff to cut the split ends. Can u suggest something to get rid of this.