An ophthalmic apparatus capable of performing alignment of the apparatus with respect to an examinees eye with ease regardless of characteristics of the eye or an environment of the apparatus includes a measurement unit (4) performing examination/measurement of the eye, a projection optical system (30) for projecting an alignment target onto an anterior segment of the eye, an image-pickup optical system (20) for picking up an anterior-segment image with an image of the projected target by a two-dimensional image-pickup element, and a calculation and control unit (70) detecting the target image, and based on the detection result, detecting an alignment condition of the measurement unit with the eye, wherein the calculation and control unit detects two-dimensional luminance distribution in an image obtained by the element, and based on the detection result, changes projection light intensity of light of the target and/or gain of the element so that the target image becomes detectable.