A general, aerosol- based, one-step approach was explored to synthesize microporous and mesoporous spherical carbon particles with highly porous foam-like structures from aqueous sucrose solutions containing colloidal silica particles and/or silicate cluster templates.