A pH-sensitive ratiometric dye is used in combination with confocal laser scanning microscopy and digital image analysis to monitor extracellular pH in dental biofilms in real-time.