Why does only my right little toe hurt with shoes on but not when off?

Tight shoes. It sounds like your shoes may be too narrow and therefore tight on your foot. Try changing shoes.
Hammertoe. You could have a hammertoe deformity. Have it checked.