The shape and relative positions of two or more electrodes connected to a shaped metal surface are adjusted. By adjusting the shape and position of the electrodes, as well as the shape of the metal surface, the shape of the electrical field generated from the metal surface is precisely defined. The metal surface is brought into contact with cells and the defined electrical field provides reversible or irreversible electroporation to cells in a precisely defined area. The metal surface may be comprised of copper, silver, gold or other conductive material and combinations thereof and the voltage, wattage and duration of electricity applied to the electrodes can be varied to obtain a desired result.