A new type of multi-functional NaErF4 nanoprobe with enhanced red upconversion emission was developed and used for in vitro cell, in vivo X-ray and T2-weighted magnetic resonance imaging for the first time.