Ammonia is one of the promising carbon-free alternative fuels for low-carbon power generation. This study investigated the self-excited thermoacoustic instability of premixed CH4/NH3/air flame in a swirl burner. The work aims to determine the effects of ammonia mole fraction (χNH3), equivalence ratio (Ф) and combustion chamber length (CL) on flame morphology and self-excited flame dynamics. In addition, the emission characteristics of CH4/NH3/air flame were also investigated. Results show that the thermoacoustic instability of the 1/4 wave mode is excited when 0.8≤Ф≤1.2 and χNH3 ≤ 0.3. There are apparent pressure fluctuations and heat release fluctuations in the combustion chamber. The fluctuating frequency decreases with increasing CL. The maximum fluctuating frequency and oscillation intensity appear near Ф=1.0. When χNH3 increases, the amplitude of fluctuating pressure and heat release rate decrease obviously, and the instability range narrows to Ф=1.0–1.1 simultaneously. The low-order acoustic network model successfully predicted the instability transition and frequency decreasing trend caused by increasing ammonia. The increase in the convective time delay is responsible for this transition. Emission analysis indicates that NOx emission can be controlled within 100 ppm under fuel-rich conditions, but the CO emission increases sharply. Thermoacoustic instability and nitrogen oxides can be simultaneously controlled under fuel-rich conditions when χNH3>0.3. However, this will be limited by unburned reactants.