Hydrogen sulfide is an important gasotransmitter that exhibits various functions in physiological processes. We present a ratiometric fluorescence probe (SN-N3) for H2S by functionalizing naphthalene imide with 4-(azidomethyl)benzene as a H2S recognition moiety and morpholine moiety as a lysosomal targeting unit. After reaction with H2S, the azido moiety is reduced to amine group, and the probe releases the self-immolative linker and regenerates the fluorophore with internal charge transfer effect. SN-N3 is responsive to H2S in a ratiometric mode, exhibiting excellent sensitivity and high selectivity. The probe is demonstrated to be localized in lysosomes with high specificity. More importantly, SN-N3 is successfully demonstrated to image lysosomal H2S in a ratiometric manner. Our design provides a novel tool to image H2S in living cells that would hold great potential in exploring various H2S-related physiological and pathological cellular processes.