Can i wear one of my bikini underwear for swimming beaches and tanning as a male?

okay i am a male who does not like trunks or boardshorts anymore for swimming beaches etc. so i would like to know if i cant find swim briefs anywhere is it okay for me to swim go to the beach and tan in one of my bikini underwear


Have you ever heard of Speedos? Standard male swim wear. Looks just like a bikini


if it looks similar to actual bathing suit material or color then yes, I sometimes wear my black bottom underwear as a bottom bathing suit because you cant tell the difference