Magnetic resonance is one of the most powerful analytical techniques in material. Yet, it is comparably insensitive, requiring between 1010 (EPR) and 1016 (NMR) spins. By using novel quantum sensors, this sensitivity can be increased drastically, allowing single spin EPR and NMR even under ambient conditions. In my talk I will describe recent progress towards high resolution NMR on solid state and liquid samples [1,2]. When combined with optical microscopy, the method can be converted into MRI with unprecedented resolution [3].