β-glucuronidase is an attractive reporter and prodrug-converting enzyme. The development of near-IR (NIR) probes for imaging of β-glucuronidase activity would be ideal to allow estimation of reporter expression and for personalized glucuronide prodrug cancer therapy in preclinical studies. However, NIR glucuronide probes are not yet available. In this work, we developed two fluorescent probes for detection of β-glucuronidase activity, one for the NIR range (containing IR-820 dye) and the other for the visible range [containing fluorescein isothiocyanate (FITC)], by utilizing a difluoromethylphenol-glucuronide moiety (TrapG) to trap the fluorochromes in the vicinity of the active enzyme. β-glucuronidase- mediated hydrolysis of the glucuronyl bond of TrapG generates a highly reactive alkylating group that facilitates the attachment of the fluorochrome to nucleophilic moieties located near β-glucuronidase-expressing sites. FITC-TrapG was selectively trapped on purified β-glucuronidase or β-glucuronidase-expressing CT26 cells (CT26/mβG) but not on bovine serum albumin or non-β-glucuronidase-expressing CT26 cells used as controls. β-glucuronidase-activated FITC-TrapG did not interfere with β-glucuronidase activity and could label bystander proteins near β-glucuronidase. Both FITC-TrapG and NIR-TrapG specifically imaged subcutaneous CT26/mβG tumors, but only NIR-TrapG could image CT26/mβG tumors transplanted deep in the liver. Thus NIR-TrapG may provide a valuable tool for visualizing β-glucuronidase activity in vivo.