Glaucoma is a chronic progressive disease leading to irreversible visual impairment and blindness. High intraocular pressure (IOP) resulting from abnormally high outflow resistance is a major risk factor for glaucoma development, however, it is unclear how IOP elevation influences the structure and function of the retina and the optic nerve via vitreous humor located between the lens and retina in the eye. To understand vitreous biomechanical and stimulus response toward IOP elevation, we developed a novel near-infrared (NIR)/MRI dual-modal nanoprobe, DTA/P-NCA/17F@Co, which is composed of N, N-dimethyl-4(thien-2-yl)-aniline group (DTA) as NIR fluorophore and the fluorine-based polyamino acid cobalt nanoparticles (P-NCA/17F@Co) as T2 contrast agent. These nanoprobes exhibit good biocompatibility, low surface energy characteristics, and viscosity-responsive NIR emission and T2 relaxation values. The intrinsic viscosity-sensitivemechanismof nanoprobes was ascribed to constrained molecular motion in high-viscosity vitreous chamber, which causes enhanced fluorescence emission and shortened T2 relaxation times. By using its ability for dual-modal visualization of viscosity, we achieved non-invasive in vivo monitoring the changes in vitreous viscosity during elevated IOP in a glaucoma rat model. In vivo experiments validated that vitreous viscosity is very strongly correlated with IOP elevation induced by glaucoma, much earlier than structural and functional change in the retina. Our findings revealed that IOP elevation induced the increase of vitreous viscosity, indicating that monitoring vitreous viscosity is key to the glaucoma model. This study not only provides versatile nanoprobes for dual-modal visualization of biomechanical properties of the vitreous humor in its native environment, but also shows great potential in the early diagnosis of glaucoma.