Is it safe to use bleach on baby clothes?

jovanna

I have a one year old but now that’s she’s walking her white socks have gotten darker lol I’m just wondering is it safe to use bleach on them? Or even on white onsies?