As an emerging environmentally friendly energy conversion device, degradable triboelectric nanogenerators (TENGs) play an important role in self-powered sensing, health care and human–machine interaction. However, traditional degradable materials used in TENGs often suffer from limited material sources and complex preparation processes, restricting large-scale production for widespread applications. Here, we propose a simple and efficient way to prepare degradable TENGs with inactivated bacterial film, taking advantage of wide source, self-proliferation and easy culture properties of bacteria. The prepared bacterial film-based TENG (BF-TENG) has stable electrical output, good durability and fatigue resistance, along with superior capabilities in both contact and non-contact sensing. In contact mode, the BF-TENG can generate a peak voltage of up to 83.3 V, which is employed for accurate Morse code transmission. In non-contact mode, the BF-TENG is capable of effectively perceiving the target polymer at a distance of 150 cm. The non-contact LED control circuit and a sensing array based on BF-TENG further demonstrate its practical potential for gesture recognition and spatial position perception. Furthermore, the fully degradable nature of BF-TENG ensures effortless disposal after use without environmental impact, serving as a promising solution for the new generation of eco-friendly and sustainable sensing devices.