We developed a multiplex PCR to detect the presence of methicillin- (mecA), cadmium/zinc-(czrC) and antiseptic-resistant (qacA/B) staphylococci and to identify Panton–Valentine leukocidin (PVL)-positive and -negative Staphylococcus aureus and coagulase-negative staphylococci (CoNS) from infected and healthy eyes. The assay was validated on 177 staphylococci comprising of 55 each of S. aureus and CoNS isolated from infected eyes and five S. aureus and 62 CoNS isolated from healthy eyes and nine direct ocular samples. Nine direct ocular samples for in situ testing consisted of corneal scrapings (4), conjunctiva swabs (2) and others (3). Multiplex PCR result was correlated with genotype data obtained with single PCR and dot-blot assay. The control strains that were positive in multiplex PCR for 16S rRNA, nuc, mecA, pvl, czrC and qacA/B genes were also positive in the dot-blot assay. The specificity of amplified genes obtained with reference strains was further confirmed by DNA sequencing. The single step-hexaplex PCR method can be used for rapid detection of mecA, nuc, pvl, czrC and qacA/B genes in staphylococci with simultaneous identification of PVL-positive and -negative S. aureus and CoNS from a variety of ocular samples.