Usually this is a combination of the toes being slightly curled, making them more prominent, and your shoes rubbing against the toes.
If it is one pair of shoes, get rid of them. If it is all shoes, then look for shoes with a taller area around he toes "taller toe box" and make sure you are wearing the correct size. If his persists, then surgical straightening of the toes may be needed. Dr l.