We utilize nitroanisole, that absorbs infrared(IR) radiation as heat, as an optical modulation device based on a thermal process. The nitroanisole exhibits a thermal lens effect, i.e. a temperature dependent refractive index. Hence, the nitroanisole can induce phase modulation to visible light, in direct response to intensity of the incident IR radiation. The proposed method can be used to obtain the phase modulation distribution that corresponds to the IR intensity distribution, i.e. the IR hologram itself, on the nitroanisole by examining the phase map of visible light that is modulated upon passing through the nitroanisole. The IR wavefront can be reconstructed by calculating extracted IR holograms through the Fresnel transform.It is verified that both the amplitude and the phase of the IR wavefront can be reconstructed accurately by proposed method.