The function of macrophages in vitro is linked to their metabolic rewiring. However, macrophage metabolism remains poorly characterized in situ. Here, we used two-photon intensity and lifetime imaging of autofluorescent metabolic coenzymes, nicotinamide adenine dinucleotide (phosphate) (NAD(P)H) and flavin adenine dinucleotide (FAD), to assess the metabolism of macrophages in the wound microenvironment. Inhibiting glycolysis reduced NAD(P)H mean lifetime and made the intracellular redox state of macrophages more oxidized, as indicated by reduced optical redox ratio. We found that TNFα+ macrophages had lower NAD(P)H mean lifetime and were more oxidized compared to TNFα− macrophages. Both infection and thermal injury induced a macrophage population with a more oxidized redox state in wounded tissues. Kinetic analysis detected temporal changes in the optical redox ratio during tissue repair, revealing a shift toward a more reduced redox state over time. Metformin reduced TNFα+ wound macrophages, made intracellular redox state more reduced and improved tissue repair. By contrast, depletion of STAT6 increased TNFα+ wound macrophages, made redox state more oxidized and impaired regeneration. Our findings suggest that autofluorescence of NAD(P)H and FAD is sensitive to dynamic changes in intracellular metabolism in tissues and can be used to probe the temporal and spatial regulation of macrophage metabolism during tissue damage and repair.