Moxifloxacin and gatifloxacin are fourth-generation fluoroquinolone antibiotics used in the clinic to prevent or treat ocular infections. Their pharmacokinetics in the cornea is usually measured from extracted ocular fluids or tissues, and in vivo direct measurement is difficult. In this study multiphoton microscopy (MPM), which is a 3D optical microscopic technique based on multiphoton fluorescence, was applied to the measurement of moxifloxacin and gatifloxacin distribution in the cornea. Intrinsic multiphoton fluorescence properties of moxifloxacin and gatifloxacin were characterized, and their distributions in mouse cornea in vivo were measured by 3D MPM imaging. Both moxifloxacin and gatifloxacin had similar multiphoton spectra, while moxifloxacin had stronger fluorescence than gatifloxacin. MPM imaging of mouse cornea in vivo showed (1) moxifloxacin had good penetration through the superficial corneal epithelium, while gatifloxacin had relatively poor penetration, (2) both ophthalmic solutions had high intracellular distribution. In vivo MPM results were consistent with previous studies. This study demonstrates the feasibility of MPM as a method for in vivo direct measurement of moxifloxacin and gatifloxacin in the cornea.