Spinal cord circuits play crucial roles in transmitting and gating cutaneous somatosensory modalities, such as pain, but the underlying activity patterns within and across spinal segments in behaving mice have remained elusive. To enable such measurements, we developed a wearable widefield macroscope with a 7.9 mm2 field of view, subcellular lateral resolution, 2.7 mm working distance, and <10 g overall weight. We show that highly localized painful mechanical stimuli evoke widespread, coordinated astrocyte excitation across multiple spinal segments.