We determine the Krieger type of nonsingular Bernoulli actions G g∈G ({0, 1}, µ g ). When G is abelian, we do this for arbitrary marginal measures µ g . We prove in particular that the action is never of type II ∞ if G is abelian and not locally finite, answering Krengel's question for G = Z. When G is locally finite, we prove that type II ∞ does arise. For arbitrary countable groups, we assume that the marginal measures stay away from 0 and 1. When G has only one end, we prove that the Krieger type is always I, II 1 or III 1 . When G has more than one end, we show that other types always arise. Finally, we solve the conjecture of [VW17] by proving that a group G admits a Bernoulli action of type III 1 if and only if G has nontrivial first L 2 -cohomology.