Defects and localized states have been studied for molecular-beam-epitaxy (MBE)-grown high-resistivity and undoped GaAs1−x N x films with a N concentration not exceeding approximately 1.0 at.%. The crystalline quality of the films and hence the defects and localized states were determined by high-resolution X-ray diffraction, photoluminescence spectra, capacitance versus voltage measurements and photoinduced current transient spectra of GaAs and GaAs1−x N x layers. It was concluded that incorporation of low concentrations of N into MBE-grown GaAs1−x N x films promotes the formation of high densities of deep centres similar to EL2 donors, leading to heavy compensation of the films by some unidentified acceptors. GaAs antisite acceptors were believed to be responsible for the said compensation. A prominent defect band near 1.33-1.38 eV also appeared to be associated with these defects. The most prominent centres in dilute GaAs1−x N x films with N content less than 0.35 at.% seem to be the EL2 donors and the hole traps located near E v +0.3 eV.