Barium azide is an inorganic azide with the formula Ba(N3)2. It is a barium salt of hydrazoic acid. Like all azides, it is explosive. It is less sensitive to mechanical shock than lead azide.