A facile and robust synthesis of carbon dots (CDs) emitting blue-light in water without activation and stabilization has been developed by pyrolysis of citric acid (CA) adsorbed in silica gel (SiO 2 ) pores. Effect of the host pore size on luminescent properties of SiO 2 @CDs nanocomposite as well as water suspension of CDs has been studied. The synthesis conditions such as concentration of the precursor, duration of synthesis also have been investigated. It has been demonstrated that upon the thermal treatment of silica gels saturated with CA (60% of maximum loading) at 170°C for 5-600 min, luminescent CDs are shaped inside the nanoreactor pores. These SiO 2 @CDs emit photoluminescence centered at 450 nm. Silica-immobilized CDs can be separated from the source molecules and sideproducts by centrifugation, which allows avoiding the dialysis of the resulted mixture and so improve the scaling of the synthesis. The CDs can be easily released from SiO 2 @CDs by washing it with water. Water-eluted CDs demonstrate photoluminescence at 447 nm. The smaller pore size of the host and longer time of thermal treatment promote the formation of the CDs with better photoluminescent peak symmetry and higher quantum yield up to 10.1%.