Chiral magnetic effect is an interesting phenomenon that in principle occurs in heavy ion collision experiments. The intense magnetic field produced separates fermion charges and chiralities. This effect could be an evidence of nontrivial topological gluon configurations. There are many similarities between QCD in four dimensions and and QED in three dimensions. Here, I will show how it is possible to reproduce an equivalent effect in quantum electrodynamics confined into a plane.