An ultrasensitive magnetic field sensor based on a compact in-fiber Mach–Zehnder interferometer (MZI) created in twin-core fiber (TCF) is proposed, and its performance is experimentally demonstrated. A section of TCF was spliced between two sections of standard single-mode fibers, and then a microch