As hydrogen emerges as a next-generation clean energy source, the production of hydrogen is generating much research interest. Water electrolysis, one of the promising methods of hydrogen production, has the advantage of no resource depletion or carbon dioxide emissions. In this study, a Pt@C core–shell catalyst in which an N-containing carbon layer covers individual Pt nanoparticles was applied to the hydrogen evolution reaction (the cathodic reaction of water electrolysis), and the effect of the carbon shell on the activity and stability of the catalyst was investigated. The catalyst was synthesized by simple annealing of Pt-aniline complexes at 600 °C in a N2 atmosphere. The thermal decomposition of aniline during annealing resulted in N-containing carbon shells. The carbon shell had a positive effect on both the activity and stability of the catalyst in the hydrogen evolution reaction. Graphitic N and pyridinic N on the carbon shell, along with Pt, served as active sites for the hydrogen evolution reaction, increasing the catalytic activity. The carbon shell also effectively protected the Pt core from dissolution and agglomeration while allowing the transport of the reactant protons through the shell, improving stability with minimal loss of catalytic activity.