A fiber Bragg grating written in a photosensitive microfiber using KrF excimer laser via a uniform phase mask is demonstrated. We have successfully fabricated two Bragg gratings in microfibers having different diameters. In the reflection spectrum of a microfiber Bragg grating (MFBG), we observed two reflection peaks,which agrees with our numerical simulation results. Compared with the fundamental mode reflection, the higher-order reflection mode is more sensitive to the refractive index (RI) variation of the surrounding fluid due to its larger evanescent field. The measured maximum sensitivity is ~102 nm/RIU (RI unit) at an RI value of 1.378 in an MFBG with a diameter of 6 μm.