Hollow and solid carbon nanospheres were synthesized by CVD method. NaCl was used as template for direct growth of carbon nanospheres. Separation of NaCl from the mixture is made easy by dissolving in water. The hollow carbon nanospheres exhibit high specific capacity in Li-ion batteries than the graphite anodes.