Reconstruction of the miniaturized peptide to mimic the tailored functions of protein has been attractive but challenging. Herein, initialized from the crystal structure of redox-sensitive green fluorescent protein-2 (roGFP2), we propose a practical approach to construct the roGFP2 mimetic peptide by rethreading the aromatic residues adjacent to the chromophore fragment. By fine-tuning the residues of peptides, a mini tetrapeptide (Cys-Phe-Phe-His) was designed, which can act as a hydrogen peroxide sensor using its ratiometric fluorescence. The roGFP2 mimetic tetrapeptide is biocompatible and photostable and has competitive fluorescent properties with roGFP2 by the virtue of its assembly induced emissions. We expand the ratiometric tetrapeptide for sensing hydrogen peroxide in acidic chambers. The results provide a promising approach for the artificial design of miniaturized peptides with the desired function.