An ophthalmic imaging system including an ocular lens and an optical coherence tomography (OCT) imaging module is provided. The OCT imaging module is able to image both retina and anterior segment of eyes by switching a lens group into and out of the OCT light path. The OCT imaging module includes a retina imaging mode and an anterior segment imaging mode. In the retina imaging mode, there exists an intermediate image plane located between the ocular lens and the OCT imaging module. From the retina imaging mode, anterior segment imaging is achieved by inserting a switching lens group into the optical path inside the OCT imaging module or replacing the whole OCT imaging module of the retina mode, wherein, after the insertion, there exist a new intermediate image plane located inside the OCT imaging module and a conjugate of the entrance pupil of the OCT imaging module located between the ocular lens and the OCT imaging module.