CoinJoin
CoinJoin is a Bitcoin privacy technique in which several users combine their coins into one shared transaction, so outside observers cannot easily tell which input paid which output.
In a CoinJoin, each participant contributes one or more inputs (UTXOs) and names fresh addresses to receive their own funds. A coordinator, or the participants themselves, assembles everything into a single transaction. Each person signs only their own inputs, after checking that their outputs are included. Because nobody hands coins to anyone else, a CoinJoin is non-custodial. A centralized mixing service is different: it takes custody of deposits and must be trusted to pay them back.
This matters because Bitcoin's public ledger lets chain analysis link addresses and trace payment histories. For example, five people each contribute 0.1 BTC and each receive 0.1 BTC at a new address. An observer sees five inputs and five identical outputs but cannot tell which output belongs to whom. The group of participants whose outputs look the same is called the anonymity set. Larger sets and repeated rounds generally give stronger privacy.
A common misconception is that CoinJoin makes coins untraceable. Privacy can be undone by merging mixed coins with unmixed ones, reusing addresses, or spending in ways that reveal a link. Change outputs of non-standard amounts can also remain traceable. Participants pay mining fees and often a coordinator fee. Some exchanges and services flag or refuse funds with a CoinJoin history, and the legal treatment of mixing varies by jurisdiction.