As a carbon-free energy carrier, ammonia (NH3) combustion is regarded as a promising solution to achieving zero CO2 emissions. Consequently, while ammonia exhibits significant potential for use in gas turbines, elevated NOx emissions remain a major barrier to its widespread adoption. Therefore, understanding the mechanisms of NOx formation and developing effective control strategies in ammonia swirl flames are of great significance. In this study, a nitrogen-labeled chemical kinetic model was developed and introduced to investigate intrinsic mechanisms of NOx formation and consumption in the swirl combustion of simulated ammonia cracking gas. In this study, eight chemical kinetic models were compared to select a chemical kinetic model with optimal predictive performance. Different symbols were used to distinguish the residual NH3 remaining after ammonia cracking (NremH3), the N2 generated during cracking (NcraNcra), and the N2 from air in the simulated ammonia cracking gas. Based on this nitrogen-labeled chemical kinetic model, three-dimensional simulations were conducted for simulated ammonia cracking gas with a 40% cracking ratio under various equivalence ratios. The characteristics of the swirl flame and the distribution of nitrogen-labeled nitric oxide in the combustor were then analyzed. On this basis, a chemical reaction network (CRN) analysis was conducted to investigate the NOx formation/consumption mechanisms under the influence of equivalence ratios. The results indicate that NremO exhibits a higher emission level than NcraO and NO in the swirl flames studied here, and the overall NOx emissions decrease with increasing equivalence ratio. Axially, a rich NremO region is located in the shear layer at ϕ = 0.8 or lower, whereas at high equivalence ratios, it is mainly concentrated in the inner recirculation zone. NcraO is primarily distributed near the shear layer, with only a small amount present in the inner recirculation zone. NO is mainly distributed in the inner recirculation zone and the post-flame region when the equivalence ratio is 0.8 or higher. Kinetic analysis indicates that, with increasing equivalence ratio, reactions involving H atoms contribute increasingly to the oxidation of NremH3 to NremHi (i = 0, 1, 2) and to the conversion of HNO series intermediates to NO. In the reduction of NO by NremHi (i = 0, 1, 2), however, pathways involving Nrem gradually become dominant. Sensitivity analysis shows that the reduction of NremO by NremH2 is among the most sensitive reactions inhibiting NremO formation, whereas the oxidation of NremH2 by O to form HNremO is among the most sensitive reactions promoting NremO formation, indicating strong competition between these two pathways. In addition, R16: O2 + H(+M) <=> HO2(+M) is crucial for suppressing the conversion of nitrogen to NO, while the reduction of NcraO and NO by NremHi (i = 0, 1, 2) also plays a key role in limiting the formation of NcraO and NO. At low equivalence ratios, R1487:NcraNcraO(+M) <=> NcraNcra+O(+M) and R1514:NcraNcraO+O <=> 2NcraO are the two most sensitive reactions promoting NcraO formation with R1484: NO2(+M) <=> N2+O(+M) and R1511: N2O+O <=> 2NO being the corresponding reactions for NO, and they also represent the dominant NcraO/NO formation pathways. As the equivalence ratio increases, N+NO <=> NN+O reaction series become the most sensitive reaction for NO/NcraO formation.