Development of new nanoscale devices has increased the demand for new types of small-scale energy resources such as ambient vibrations energy harvesters. Among the vibration energy harvesters, piezoelectric energy harvesters (PEHs) can be easily miniaturized and fabricated in micro and nano scales. This change in the dimensions of a PEH leads to a change in its governing equations of motion, and consequently, the predicted harvested energy comparing to a macroscale PEH. In this research, effects of small scale dimensions on the nonlinear vibration and harvested voltage of a nanoscale PEH is studied. The PEH is modeled as a cantilever piezoelectric bimorph nanobeam with a tip mass, using the Euler-Bernoulli beam theory in conjunction with Hamilton’s principle. A harmonic base excitation is applied as a model of the ambient vibrations. The nonlocal elasticity theory is used to consider the size effects in the developed model. The derived equations of motion are discretized using the assumed-modes method and solved using the method of multiple scales. Sensitivity analysis for the effect of different parameters of the system in addition to size effects is conducted. The results show the significance of nonlocal elasticity theory in the prediction of system dynamic nonlinear behavior. It is also observed that neglecting the size effects results in lower estimates of the PEH vibration amplitudes. The results pave the way for designing new nanoscale sensors in addition to PEHs.