Acute pancreatitis, a common exocrine inflammatory disease affecting the pancreas, is characterized by intense abdominal pain and multiple organ dysfunction. However, the alterations in retinal blood vessels among individuals with acute pancreatitis remain poorly understood. This study employed optical coherence tomography angiography (OCTA) to examine the superficial and deep retinal blood vessels in patients with pancreatitis. Sixteen patients diagnosed with pancreatitis (32 eyes) and 16 healthy controls (32 eyes) were recruited from the First Affiliated Hospital of Nanchang University for participation in the study. Various ophthalmic parameters, such as visual acuity, intraocular pressure, and OCTA image for retina consisting of the superficial retinal layer (SRL) and the deep retinal layer (DRL), were recorded for each eye. The study observed the superficial and deep retinal microvascular ring (MIR), macrovascular ring (MAR), and total microvessels (TMI) were observed. Changes in retinal vascular density in the macula through annular partitioning (C1–C6), hemispheric quadrant partitioning (SR, SL, IL, and IR), and early diabetic retinopathy treatment studies (ETDRS) partitioning methods (R, S, L, and I). Correlation analysis was employed to investigate the relationship between retinal capillary density and clinical indicators. Our study revealed that in the superficial retinal layer, the vascular density of TMI, MIR, MAR, SR, IR, S, C2, C3 regions were significantly decreased in patients group compared with the normal group. For the deep retinal layer, the vascular density of MIR, SR, S, C1, C2 regions also reduced in patient group. The ROC analysis demonstrated that OCTA possesses significant diagnostic performance for pancreatitis. In conclusion, patients with pancreatitis may have retinal microvascular dysfunction, and OCTA can be a valuable tool for detecting alterations in ocular microcirculation in pancreatitis patients in clinical practice.