Gut · Fibre and whole grains
Do fermented foods or high-fibre foods change your gut bacteria more?

Both help your gut in different ways. In one small study, foods like yogurt, kefir and kimchi made gut bacteria more varied. Fibre feeds the bacteria and has strong evidence for long-term health. Eat both.
In one small trial, fermented foods made gut bacteria more diverse and lowered inflammation, while fibre changed what the bacteria do. Both are worth eating. A 36-person Stanford trial compared adding fermented foods (yogurt, kefir, kimchi, sauerkraut, kombucha) with adding high-fibre foods. Fermented foods steadily increased the variety of gut bacteria and lowered 19 inflammation markers. Fibre didn't change variety but boosted the bacteria's ability to break down plant foods. Fibre also has decades of evidence for preventing disease; fermented foods' long-term effects are still unknown.
Who this applies to: Healthy adults. This is early research from one small trial, so it shouldn't replace fibre advice. Very salty pickled vegetables are a different story (see below).
Moderate evidenceOne small randomized trial (36 people) measured gut bacteria directly. Fibre's health benefits rest on much stronger evidence, but not on this exact comparison.
Educational summary, not medical advice. Talk to a clinician about your own health.