With the development of the current networked society, personal identification based on biometrics has received more and more attention. Iris recognition has a satisfying performance due to its high reliability and non-invasion. In an iris recognition system, preprocessing, especially iris localization plays a very important role. The speed and performance of an iris recognition system is crucial and it is limited by the results of iris localization to a great extent. Iris localization includes finding the iris boundaries (inner and outer) and the eyelids (lower and upper). In this paper, we propose an iris localization algorithm based on texture segmentation. First, we use the information of low frequency of wavelet transform of the iris image for pupil segmentation and localize the iris with a differential integral operator. Then the upper eyelid edge is detected after eyelash is segmented. Finally, the lower eyelid is localized using parabolic curve fitting based on gray value segmentation. Extensive experimental results show that the algorithm has satisfying performance and good robustness.