Extraintestinal pathogenic Escherichia coli (ExPEC) reside in the enteric tract as a commensal reservoir, but can transition to a pathogenic state by invading normally sterile niches, establishing infection and disseminating to invasive sites like the bloodstream. Macrophages are required for ExPEC dissemination, suggesting the pathogen has developed mechanisms to persist within professional phagocytes. Here, we report that FimX, an ExPEC-associated DNA invertase that regulates the major virulence factor type 1 pili (T1P), is also an epigenetic regulator of a LuxR-like response regulator HyxR. FimX regulated hyxR expression through bidirectional phase inversion of its promoter region at sites different from the type 1 pili promoter and independent of integration host factor (IHF). In vitro, transition from high to low HyxR expression produced enhanced tolerance of reactive nitrogen intermediates (RNIs), primarily through de-repression of hmpA, encoding a nitric oxide-detoxifying flavohaemoglobin. However, in the macrophage, HyxR produced large effects on intracellular survival in the presence and absence of RNI and independent of Hmp. Collectively, we have shown that the ability of ExPEC to survive in macrophages is contingent upon the proper transition from high to low HyxR expression through epigenetic regulatory control by FimX.