Small-field radiotherapy is an emerging technique that offers the potential to reduce damage to normal tissue, yet accurately measuring the dose distribution of small radiation fields presents a significant challenge. This study aims to develop an optical fiber X-ray sensor array (OFXSA) with high spatial resolution for dosimetry in small fields, thereby enhancing the effectiveness and safety of small-field radiotherapy treatments. The OFXSA combines the precision of single-point dosimeters with the ability to detect dose distribution across a small area. Two generations of sensor arrays were designed: the first-generation OFXSA comprises 7 optical fibers arranged in a hexagonal configuration (10.8 × 9.84 mm2), and the second-generation OFXSA consists of 37 optical fibers in a four-layer hexagonal distribution. These arrays were used to measure small field sizes of 1 × 1 cm2 and 0.8 × 0.8 cm2. Results from the first-generation OFXSA indicate dose distribution attenuation from the center to the periphery, while the second-generation OFXSA, with higher spatial resolution, captures more detailed and irregular dose attenuation, as well as non-uniform distribution across the field. This study demonstrates the viability of OFXSA for precise measurements in radiotherapy, particularly within small field dimensions, and lays the groundwork for future advancements in improving spatial resolution of sensor applications in small fields through complex fiber optic configurations.