I had those thoughts for a long time, and even now I can't say I have good self esteem.
I think you are as beautiful and needed as everyone else, you have your capabilities, your special and unique characteristics.
CBT therapy could be a way to face your thoughts and "talk back" to them, because it's focus is to challenge your "irrealistic" thoughts about yourself and others(like "others hate me" "I'm not loved").
__________________
At every moment of our lives, we all have one foot in a fairy tale and the other in the abyss.