Few-layer nitrogen-doped graphene has been prepared via fast and controlled electrochemical exfoliation of graphite in a protic ionic liquid ethylammonium nitrate. The method presents a potentially scalable approach for preparation of metal-free, N-doped graphene for use as electrocatalysts for oxygen reduction reactions.