Two-dimensional (2D) hierarchical nanoporous CuO ribbons were successfully synthesized by a green solution-phase route. They serve as a promising electrode material for nonenzymatic glucose detection and show high sensitivity, a low detection limit, fast amperometric response and good selectivity.