The sequence determinants governing CRISPR/Cas9 specificity are not fully understood. Here, the authors devise a high-throughput dual-target synthetic system to explore the sequence features associated with CRISPR/Cas9 off-target effect, reveal a set of sequence-dependent rules, and develop an off-target prediction model and a strategy for Cas9-based allele-specific editing.