Two-dimensional particle-in-cell simulations are performed to investigate the formation of electron density depletions in collisionless magnetic reconnection. In anti-parallel reconnection, the quadrupole structures of the out-of-plane magnetic field are formed, and four symmetric electron density depletion layers can be found along the separatrices due to the effects of magetic mirror. With the increase of the initial guide field, the symmetry of both the out-of-plane magnetic field and electron density depletion layers is distorted. When the initial guide field is sufficiently large, the electron density depletion layers along the lower left and upper right separatrices disappear. The parallel electric field in guide field reconnection is found to play an important role in forming such structures of the electron density depletion layers. The structures of the out-of-plane magnetic field B y and electron depletion layers in anti-parallel and guide field reconnection are found to be related to electron flow or in-plane currents in the separatrix regions. In anti-parallel reconnection, electrons flow towards the X line along the separatrices, and are directed away from the X line along the magnetic field lines just inside the separatrices. In guide field reconnection, electrons can only flow towards the X line along the upper left and lower right separatrices due to the existence of the parallel electric field in these regions. Magnetic reconnection is thought to be one of the most important mechanisms that converts rapidly magnetic energy into kinetic energy of plasma. At the same time, the topological configuration of the magnetic field changes. Magnetic reconnection plays an important role in space and laboratory plasma as a driving mechanism for many explosive phenomena, such as solar flares, substorms in the Earth's magnetosphere and disruptions in laboratory fusion experiments [1][2][3][4][5]. At scale lengths greater than the ion inertial length, c/ω pi , magnetohydrodynamic theory is valid, because ions and electrons are both frozen in the magnetic field lines. However, if we study magnetic reconnection at scale lengths between the ion inertial length and electron inertial length *Corresponding author (email: qmlu@ustc.edu.cn) (where the electron inertial length is c/ω pe ), only the electrons are frozen in the magnetic field lines, and ions can move across the magnetic field lines. This ion-electron decoupling causes Hall effects which are very important in collisionless magnetic reconnection [6][7][8]. At scale lengths below c/ω pe , the frozen-in constraint of the electrons is also broken, both ions and electrons can move across the magnetic field lines [7,9]. Sonnerup [6] proposed that the Hall effects can lead to the in-plane Hall current system, and the relations between the Hall current and the out-of-plane magnetic field have recently been studied extensively in anti-parallel reconnection. This can be roughly summarized as follows: Because of the magnetic mirror effect, electrons will flow toward...