Extracellular pH and the Na(+)/H(+) exchanger (NHE1) modulate tumor cell migration. Yet, the pH nanoenvironment at the outer surface of the cell membrane (pH(em)) where cell/matrix interaction occurs and matrix metalloproteinases work was never measured. We present a method to measure this pH nanoenvironment using proton-sensitive dyes to label the outer leaflet of the plasma membrane or the glycocalyx of human melanoma cells. Polarized cells generate an extracellular proton gradient at their surface that increases from the rear end to the leading edge of the lamellipodium along the direction of movement. This gradient collapses upon NHE1 inhibition by HOE642. NHE1 stimulation by intracellular acidification increases the difference in pH(em) between the tips of lamellipodia and the cell body in a Na(+) dependent way. Thus, cells create a pH nanoenvironment that promotes cell migration by facilitating cell adhesion at their front and the release of cell/matrix contacts at their rear part.