The heteroatom doping of carbon materials can significantly improve the electrochemical performance of sodium-ion batteries. However, conventional doping techniques involve more than two steps, making them unsuitable for scale-up. In this study, an S and P co-doped carbon material is synthesized using a simple, one-step plasma-in-liquid process. The synthesized material consists of abundant macropores, which can improve the electrochemical properties of sodium-ion batteries. When the synthesized anode material is applied to a sodium-ion half-cell, the cell exhibits a remarkable cycling life of 3000 cycles at a high current density of 10 A g−1, with a high reversible capacity over 125 mAh g−1. These results indicate that S and P co-doped carbon materials are promising candidates as anodes for sodium-ion batteries, and the plasma-in-liquid process is an effective strategy for heteroatom co-doping.