Hydrogen peroxide (H 2 O 2 ) is an important molecule that is widely used or exists in foods, medicines, detergents and human body. Therefore, fast and accurate detection of H 2 O 2 is highly important in food security, disease diagnosis, etc. In this work, we report the fabrication of platinized silica nanoporous membrane (Pt@SNM) electrodes for the detection of H 2 O 2 in complex in vitro and in vivo environments. The porous structure of SNM can effectively confine the electrodeposition of Pt nanostructures and meanwhile prevent the adsorption of fouling species on the underlying electrode. In comparison with conventional electrodes for H 2 O 2 detection, the current one exhibited excellent antifouling ability and worked well in complex real samples. As we demonstrated that the Pt@SNM modified carbon fiber microelectrode could work pretty stably in cortex of rat brain up to 90 min. We believe that this methodology can be extended for electrochemical detection of many other species in strongly fouling media.[a] X.