How do I stop my shoes from hurting my hammertoes?

Replacing your shoes with ones that have a taller toe box in the front of the shoes or a sandal with an open toe box allows the necessary space to accommodate the deformity of the toe and may prevent them from hurting.