In this study, we developed a scanning transmission electron microscopy (STEM) method for imaging the antibacterial activity of organic polymeric nanoparticles (NPs) toward biofilms formed by Staphylococcus epidermidis bacterial cells, for optimizing NPs to treat biofilm infections. The combination of sample preparation method using a hydrophilic ionic liquid (IL) and STEM observation using the cooling holder eliminates the need for specialized equipment and techniques for biological sample preparation. The annular dark-field STEM results indicated that the two types of biodegradable poly-(DL-lactide-co-glycolide) (PLGA) NPs: PLGA modified with chitosan (CS), and clarithromycin (CAM)-loaded + CS-modified PLGA, prepared by emulsion solvent diffusion exhibited different antibacterial activities in nanoscale. To confirm damage to the sample during STEM observation, we observed the PLGA NPs and the biofilm treated with PLGA NPs by both the conventional method and the newly developed method. The optimized method allows microstructure of the biofilm treated with PLGA NPs to be maintained for 25 min at a current flow of 40 pA. The developed simple sample preparation method would be helpful to understand the interaction of drugs with target materials. In addition, this technique could contribute to the visualization of other deformable composite materials at the nanoscale level. © 2016 Wiley Periodicals, Inc. J Biomed Mater Res Part B: Appl Biomater, 105B: 1432-1437, 2017.