We present a protocol for immobilizing single macromolecules in microfluidic devices and quantifying changes in their conformations under shear flow. This protocol is useful for characterizing the biomechanical and functional properties of biomolecules such as proteins and DNA in a flow environment.