Nucleic acid hairpins provide a powerful model system for understanding macromolecular folding, with free-energy landscapes that can be readily manipulated by changing the hairpin sequence. The full shapes of energy landscapes for the reversible folding of DNA hairpins under controlled loads exerted by an optical force clamp were obtained by deconvolution from high-resolution, single-molecule trajectories. The locations and heights of the energy barriers for hairpin folding could be tuned by adjusting the number and location of G:C base pairs, and the presence and position of folding intermediates were controlled by introducing single-nucleotide mismatches.