In this research, vibration analysis of axially preloaded nonlocal flexoelectric nanobeams considering surface and magnetic field effects is performed. The main propose of present paper is to fill the gap in previous analyzes of flexoelectric nanobeams in which nonlocal and surface effects are ignored. Flexoelectricity in a nanobeam results in larger vibration frequencies than a typical piezoelectric nanobeam. Via Galerkin’s technique, the governing equations of the flexoelectric nanobeam are numerically solved. The vibration frequency of the nanobeam is validated with previous one in the literature. The illustrative results demonstrate the influences of the flexoelectricity, nonlocal stress field, surface energy, magnetic field, axial load and beam thickness on vibrational characteristics of a nanosize preloaded flexoelectric beam.