A ratiometric nanoprobe consisting of up-conversion nanoparticles functionalized with cobalt oxyhydroxide for detecting and imaging ascorbic acid.