The rational design of DNA/RNA aptamers for use as molecular probes depends on a clear understanding of their structural elements in relation to target-aptamer binding interactions. We present a simple method to create aptamer probes that can occupy two different structural states. Then, based on the difference in binding affinity between these states, target-aptamer binding interactions can be elucidated. The basis of our two-state system comes from the incorporation of azobenzene within the DNA strand. Azobenzene can be used to photoregulate the melting of DNA-duplex structures. When incorporated into aptamers, the light-regulated conformational change of azobenzene can be used to analyze how aptamer secondary structure is involved in target binding. Azobenzene-modified aptamers showed no change in target selectivity, but showed differences in binding affinity as a function of the number, position, and conformation of azobenzene modifications. Aptamer probes that can change binding affinity on demand may have future uses in targeted drug delivery and photodynamic therapy.