We present a polyvinylidene fluoride (PVDF) nanogenerator (NG) with advantages of direct writing and in situ poling via near-field electrospinning (NFES), which is completely location addressable and substrate independent. The maximum output voltage reached 20 V from the three layers piled NGs with serial connections, and the maximum output current can exceed 390 nA with the parallel integration setup. Linear superposition and switching polarity of current and voltage tests were validated by the authentic piezoelectric output. Nanofiber (NF)-based devices with a length ∼5 cm can be easily attached on the human finger under folding-releasing at ∼45°, and the output voltage and current can reach 0.8 V and 30 nA, respectively. This work based on NFs can potentially have a huge impact on harvesting various external sources from mechanical energies.