The adenovirus-mediated somatic transfer of the embryonic T-box transcription factor 18 (TBX18) gene can convert chamber cardiomyocytes into induced pacemaker cells. However, the translation of therapeutic TBX18-induced cardiac pacing faces safety challenges. Here we show that the myocardial expression of synthetic TBX18 mRNA in animals generates de novo pacing and limits innate and inflammatory immune responses. In rats, intramyocardially injected mRNA remained localized, whereas direct myocardial injection of an adenovirus carrying a reporter gene resulted in diffuse expression and in substantial spillover to the liver, spleen and lungs. Transient expression of TBX18 mRNA in rats led to de novo automaticity and pacemaker properties and, compared with the injection of adenovirus, to substantial reductions in the expression of inflammatory genes and in activated macrophage populations. In rodent and clinically relevant porcine models of complete heart block, intramyocardially injected TBX18 mRNA provided rate-adaptive cardiac pacing for one month that strongly correlated with the animal’s sinus rhythm and physical activity. TBX18 mRNA may aid the development of biological pacemakers.