The antimicrobial and biofilm formation preventive properties of Mentha piperita and Rosmarinus officinalis essential oils and chlorhexidine were assessed against Streptococcus mutans and Streptococcus pyogenes. 26 and 20 compounds were identified by GC and GC-MS analysis in hydrodistilled oils from M. piperita and R. officinalis, respectively. The minimal bactericidal concentrations (MBC) of the M. piperita and R. officinalis oils and chlorhexidine were (6000, 2000, 8000 ppm) and (1000, 4000, 1000 ppm) for S. mutans and S. pyogenes, respectively. The decimal reduction time (D) of S. mutans exposed to the oils at their MBC levels was 2.8 min while chlorhexidine showed a longer time. The D values of S. pyogenes on exposure to the MBC levels of M. piperita and R. officinalis oils and of chlorhexidine were 2.14, 4.28 and 2.8 min, indicating a higher efficacy of M. piperita oil. Biofilm formation was performed by growing S. mutans culture with and without essential oils in LB medium in polystyrene tubes. In vitro biofilm inhibitory properties were in the order M. piperita > R. officinalis > chlorhexidine. In vivo experiments on the antibiofilm properties revealed that all concentrations of the oils were significantly (p < 0.001) more effective than chlorhexidine. In conclusion, essential oils may be considered as safe agents in the development of novel antibiofilm agents.