Pain in the top of the foot can be due to a range of problems. Some conditions that commonly cause pain in the top of the foot are:
Dorsal compression syndrome
This refers to inflammation of the ligaments along the top of the midfoot. Pain is usually felt on either side of the foot and along the joint lines at the top of the foot (just in front of where the leg meets the foot).
Metatarsal stress fractures
Stress fractures are commonly seen in the metatarsal bones of the forefoot. Fractures in this area will usually cause pain in the top of the foot, and there may be swelling and tenderness over the fracture site. It is possible to have a stress fracture without having any specific trauma or injury to the foot.
Arthritis often involves inflammation and damage to joint cartilage and surrounding structures, causing pain and stiffness. Arthritis can affect nearly every joint in your body, including the joints through the top of the foot.