This study incorporated purple sweet potato anthocyanin (PSPA) and silver-nanoparticles (AgNPs) into the chitosan/polyvinyl alcohol film matrix (PVA/CS) to successfully prepare a composite film, which effectively inhibited bacterial growth and indicated product freshness. The addition of AgNPs and PSPA led to a dense structure of the film, which effectively enhanced its physical properties, barrier properties and functional properties. The incorporation of PSPA made the composite film highly pH-sensitive, which exhibited distinct color changes in varying pH solutions. The PVA/CS-AgNPs-PSPA10 composite film with PSPA and AgNPs resulted the shelf life of strawberries to 13 days at 4 °C, which effectively reduced strawberry breathing during storage. Additionally, such composite film changed color from purple to yellow-purple, indicating the deterioration of strawberries. It also showed an antibacterial indication through its excellent antibacterial property and freshness indication performance, which demonstrated its significance in developing antibacterial indicator composite packaging materials for fruits and vegetables preservation.