Fluorescent berberine-based carbon dots (Ber-CDs) were prepared through a facile synthesis strategy. Ber-CDs exhibited excellent optical properties for bioimaging and retained the biofunctions of berberine, and enabled selective and safe anti-tumor performance, demonstrating their promising application potential in cancer theranostics.