With the rapid urbanization in China, directly buried municipal pipelines have been gradually replaced by urban utility tunnels due to a serious shortage of urban underground spaces and weak disaster prevention of traditional municipal pipelines. The urban utility tunnels normally contain electricity pipelines, natural gas pipelines, heat pipelines, sewer pipelines, etc. If a natural gas pipeline leaks, a fire and explosion might occur and lead to serious consequences. In this study, the characteristics of gas explosion in a natural gas compartment of urban utility tunnel are investigated based on FLACS (Flame Acceleration Simulator) simulations. The results revealed that the flame profile undergoes two unstable flame stages. When the ignition position is set at the middle area (100.25, 1.2, 1.4 m) of the 200 m-long natural gas compartment, the maximum overpressure of the gas explosion in the 200 m-long natural gas compartment is 25.17 bar, which is the largest maximum overpressure under all gas explosion simulation setups. It is also found that the length of the natural gas compartment and different ignition positions have slight effects on the maximum overpressure. This study could provide technical support for structural strength design and division of the fireproofing area of the natural gas compartment in the utility tunnel, which is of great significance to improve urban safety during sustainable development.