The concept
Locality = place. Formation = rock.
The simplest way to understand the difference: the Hell Creek Formation is a rock body exposed across Montana and the Dakotas. A Hell Creek fossil locality is a specific spot, such as a hillside or quarry where a fossil was collected. One formation can contain many localities.