Pain on the top of the foot can occur from injury or as a side effect of a medical condition. You may also experience swelling, numbness, tingling, or burning—depending on the cause of your foot pain.