A flexible nanoporous carbon-fiber film for wearable electronics is prepared by a facile and scalable method through pyrolysis of electrospun polyimide. It exhibits excellent bifunctional electrocatalytic activities for oxygen reduction and oxygen evolution. Flexible rechargeable zinc-air batteries based on the carbon-fiber film show high round-trip efficiency and mechanical stability.