Abstract Collective behaviors require coordination of individuals. Thus, a population must adjust its phenotypic distribution to adapt to changing environments. How can a population regulate its phenotypic distribution? One strategy is to utilize specialized networks for gene regulation and maintaining distinct phenotypic subsets. Another involves genetic mutations, which can be augmented by stress-response pathways. Here, we studied how a migrating bacterial population regulates its phenotypic distribution to traverse across diverse environments. We generated isogenic Escherichia coli populations with varying distributions of swimming behaviors and observed their phenotype distributions during migration in liquid and porous environments. Surprisingly, we found that during collective migration, the distributions of swimming phenotypes adapt to the environment without mutations or gene regulation. Instead, adaptation is caused by the dynamic and reversible enrichment of high-performing swimming phenotypes within each environment. This adaptation mechanism is supported by a recent theoretical study, which proposed that the phenotypic composition of a migrating population results from a balance between cell growth generating diversity and collective migration eliminating the phenotypes that are unable to keep up with the migrating group. Furthermore, by examining chemoreceptor abundance distributions during migration towards different attractants, we found that this mechanism acts on multiple chemotaxis-related traits simultaneously. Our findings reveal that collective migration itself can enable cell populations with continuous, multi-dimensional phenotypes to flexibly and rapidly adapt their phenotypic composition to diverse environmental conditions. Significance statement Conventional cell adaptation mechanisms, like gene regulation and random phenotypic switching, act swiftly but are limited to a few traits, while mutation-driven adaptations unfold slowly. By quantifying phenotypic diversity during bacterial collective migration, we discovered an adaptation mechanism that rapidly and reversibly adjusts multiple traits simultaneously. By dynamically balancing the elimination of phenotypes unable to keep pace with generation of diversity through growth, this process enables populations to tune their phenotypic composition based on the environment, without the need for gene regulation or mutations. Given the prevalence of collective migration in microbes, cancers, and embryonic development, non-genetic adaptation through collective migration may be a universal mechanism for populations to navigate diverse environments, offering insights into broader applications across various fields.