A chain molecule can be entropically collapsed in a crowded medium in a free or confined space. Here, we present a unified view of how molecular crowding collapses a flexible polymer in three distinct spaces: free, cylindrical, and (two-dimensional) slit-like. Despite their seeming disparities, a few general features characterize all these cases, even though the φ c -dependence of chain compaction differs between the two cases: a > a c and a < a c , where φ c is the volume fraction of crowders, a the monomer size, and a c the crowder size. For a > a c (applicable to a coarse-grained model of bacterial chromosomes), chain size depends on the ratio aφ c /a c , and "full" compaction occurs universally at aφ c /a c ≈ 1; for a c > a (relevant for protein folding), it is controlled by φ c alone and crowding has a modest effect on chain size in a cellular environment (φ c ≈ 0.3). Also for a typical parameter range of biological relevance, molecular crowding can be viewed as effectively reducing the solvent quality, independently of confinement.