The new approach of Foldy-Wouthuysen transformation is applied. In this approach, instead of momentum of charged particles, the electromagnetic potentials are treated as the perturbative operators. The electrodynamic Hamiltonians of scalar, spinor and vector fields are studied, and those Hamiltonians containing one and two electromagnetic potentials are derived. The mα 8 order Hamiltonian of the nonrelativistic quantum electrodynamics are also obtained by expanding momentum.