A novel optical sensor based on covalent immobilization for picric acid assay has been described. To improve the stability of the sensor, a terminal double bond was attached to the fluorescent compound, 3-amino-9-ethylcarbazole (AEC), via methacryloyl chloride. The resultant compound, 3-(N-methacryloyl) amino-9-ethylcarbazole (MAEC) was copolymerized with 2-hydroxypropyl methacrylate on surface-modified quartz glass plates by UV irradiation. The resulting optical sensor (optode membrane) was used to determine picric acid based on fluorescence quenching. It shows a linear response toward picric acid in the concentration range of 9.33 x 10(-8) to 9.33 x 10(-5) mol l(-1), with rapid response, high stability and good selectivity to picric acid.