Topical anti-infectives are important in the management of ocular infections, but little is known about their current status and trends in their use in China. Thus, we carried out a prescription-based, cross-sectional study using the database of Hospital Prescription Analysis Projection of China, and aimed to analyze the trend in the use of ocular topical anti-infectives for outpatients of the ophthalmology department from 2013 to 2019. A total of 2,341,719 prescriptions from 61 hospitals located in six major areas written by ophthalmologists for outpatients were identified, and 1,002,254 of the prescriptions contained at least one anti-infective. The yearly anti-infective prescriptions increased continuously from 126,828 prescriptions in 2013 to 163,434 prescriptions in 2019. The cost also increased from 4,503,711 Chinese Yuan (CNY) in 2013 to CNY 5,860,945 in 2019. However, the use rate of anti-infectives decreased slightly from 46.5% in 2013 to 41.1% in 2019. Patients aged between 19 and 45 years old had the highest anti-infective use rate. Levofloxacin was the most frequently used anti-infective and kept on increasing among all age groups, occupying 67.1% of the total cost at the end of the study. Tobramycin was more frequently used in pediatric patients than in adults, but the use still decreased. Ganciclovir was the preferred anti-viral drug over acyclovir. In conclusion, the prescriptions and cost of ocular topical anti-infectives for outpatients both increased progressively. The increasingly widespread use of levofloxacin raised concerns regarding safety in pediatrics and resistance development. The observed trends can lead to the more efficient management of ocular anti-topical anti-infectives in China.