Many bacterial proteins are localized to precise intracellular locations, but in most cases the mechanism for encoding localization information is not known. Screening libraries of peptides fused to green fluorescent protein identified sequences that directed the protein to helical structures or to midcell. These peptides indicate that protein localization can be encoded in 20-amino-acid peptides instead of complex protein-protein interactions and raise the possibility that the location of a protein within the cell could be predicted from bioinformatic data.