A high-yield and versatile method for the synthesis of carbon dots for bioimaging applications.