Piezoelectric nanogenerators (PENGs) are becoming increasingly popular for energy generation and their use in smart electronics. In this study, a barium stannate (BaSnO3)-doped polyvinylidene fluoride (PVDF)-based PENG has been fabricated for the first time. The β-phase of PVDF was stabilized by optimizing the doping of BaSnO3 nanoparticles without the need for external electrical poling. The high surface area of the BaSnO3 nanoparticles promotes the nucleation of the polar β-phase in PVDF through electrostatic interaction. A low-cost solution casting method was used to prepare flexible BaSnO3/PVDF nanocomposite containing 5 wt% BaSnO3, which was then shaped and sandwiched between copper electrodes and protected with a thin PDMS layer to create the final PENG. The fabricated PENG can generate up to ∼41 V of voltage, ∼1.51 µA of current and ∼18.1 µW/cm2 of power density when ∼15.7 kPa pressure is applied by a human finger. The PENG can also charge capacitors, power up 16 LEDs in a series connection, and power other small electronics such as wristwatches, speakers, and calculators. Additionally, the PENG can activate the electrochromic material methyl viologen, which is commonly used in smart window applications.