Yes, hydrogen peroxide can bleach, whiten, or even discolor black clothes. The oxidizing effect of hydrogen peroxide can break down loose dye molecules (as I said, colorfastness matters!) ...
Bleach is an effective common cleaner. While it can brighten whites, it is also a powerful oxidizer that can remove dyes on clothes ... Alternatively, dye the bleach spots to match the rest ...