A high-quality planar two-dimensional p-i-n light emitting diode in an entirely undoped GaAs/AlGaAs quantum well has been fabricated by using conventional lithography process. With twin gate design, two-dimensional electron and hold gases can be placed closely on demand. The electroluminescence of the device exhibit high stability and clear transition peaks so it is promising for applications on electrically-driven single photon sources.