question: OBJECTIVE: Report simple reference structure fabrication and validate the precise localization of subdural micro- and standard electrodes in magnetic resonance imaging (MRI) in phantom experiments. APPROACH: Electrode contacts with diameters of 0.3 mm and 4 mm are localized in 1.5 T MRI using reference structures made of silicone and iron oxide nanoparticle doping. The precision of the localization procedure was assessed for several standard MRI sequences and implant orientations in phantom experiments and compared to common clinical localization procedures. MAIN RESULTS: A localization precision of 0.41±0.20 mm could be achieved for both electrode diameters compared to 1.46±0.69 mm that was achieved for 4 mm standard electrode contacts localized using a common clinical standard method. The new reference structures are intrinsically bio-compatible, and they can be detected with currently available feature detection software so that a clinical implementation of this technology should be feasible. SIGNIFICANCE: Neuropathologies are increasingly diagnosed and treated with subdural electrodes, where the exact localization of the electrode contacts with respect to the patient's cortical anatomy is a prerequisite for the procedure. Post-implantation electrode localization using MRI may be advantageous compared to the common alternative of CT-MRI image co-registration, as it avoids systematic localization errors associated with the co-registration itself, as well as brain shift and implant movement. Additionally, MRI provides superior soft tissue contrast for the identification of brain lesions without exposing the patient to ionizing radiation. Recent studies show that smaller electrodes and high-density electrode grids are ideal for clinical and research purposes, but the localization of these devices in MRI has not been demonstrated.