PEGylated ofloxacin nanoparticles render strong antibacterial activity against many clinically important human pathogens.