Not sure what to do

I am bisexual and felt this way for a long time now.

I am still struggling to come out to my family, I know they will not accept me for who I am. They always joke about someone in the family coming out as gay saying that they wouldn’t know what to do or how to bring up a child who is gay.

I also feel like I can’t tell my friends as they will not want to be around me anymore (even though I know they would support me 100%)

I don’t know what to do. Any ways on how I can tell them??

How do I built up the confidence to tell them!?