A simple but highly selective colorimetric and fluorescent chemosensor for fluoride ion has been prepared based on coumarin chromophore and 1H-tetrazole. Tetrazole functional group provided a novel sensing functional group containing the ESIPT structure for designing fluoride chemosensor.