We propose and demonstrate a wireless optical energy transmission using optical beamforming with a spatial light modulator. We demonstrate an optical beamforming technology to focus the light of an optical source on a desired target, which can be used in various applications. Our experiment shows a wireless energy transmission efficiency of 1.3% with a white light-emitting diode light source. Although the transmission efficiency is currently low in our experimental result, we expect that the transmission efficiency can be improved up to 30% with highly efficient devices. We also propose an algorithm based on the optical beamforming to detect the location of the target device automatically. The proposed wireless optical energy transmission has several advantages over the previous wireless energy transmission methods.