idk what your situation is, and ofc there are reasons for remaining closeted, but if your friends would't accept you for who you are then they are not truely your friends. I've lost many people I once considered "friends" by coming out to them, but it has lead me to a better place where I don't feel the need to hide who I am to the people I'm closest to.
While I was more closeted however, I found other people who were in similar situations as me, both online and in person by going to local events. That really helped me express who I am and talk about my life without exluding a large part of my identity.