A new chemical etching solution of bromine-water system, which is suitable for transforming the fine resist grating mask pattern onto InP and GaInAsP surfaces, is reported. The Br2:H2O:H3PO4 (or HCl) solution does not dissolve AZ 1350 photoresist and exhibits both moderate etching rate and a pit-free etched surface.