SummaryPain hypersensitivity arises from the plasticity of peripheral and spinal somatosensory neurons, which modifies nociceptive input to the brain and alters pain perception. We utilized chronic calcium imaging of spinal dorsal horn neurons to determine how the representation of somatosensory stimuli in the anterolateral tract, the principal pathway transmitting nociceptive signals to the brain, changes between distinct pain states. In healthy conditions, we identify stable, narrowly tuned outputs selective for cooling or warming, and a neuronal ensemble activated by intense/noxious thermal and mechanical stimuli. Induction of an acute peripheral sensitization with capsaicin selectively and transiently retunes nociceptive output neurons to encode low-intensity stimuli. In contrast, peripheral nerve injury-induced neuropathic pain results in a persistent suppression of innocuous spinal outputs coupled with activation of a normally silent population of high-threshold neurons. These results demonstrate the differential modulation of specific spinal outputs to the brain during nociceptive and neuropathic pain states.