Barium chlorate in some sodium contamination, which is undesirable for pyrotechnic purposes, where the strong yellow of sodium can easily overpower the green of barium. Sodium-free barium chlorate can be produced directly through electrolysis: It can also be produced by the reaction of barium carbonate with boiling ammonium chlorate solution: The reaction initially produces barium chlorate and ammonium carbonate; boiling the solution decomposes the ammonium carbonate and drives off the resulting ammonia and carbon dioxide, leaving only barium chlorate in solution. When exposed to heat, barium chlorate alone will decompose to barium chloride and oxygen: Barium chlorate is used to produce chloric
Barium hydroxide to be free of carbonate, unlike those of sodium hydroxide and potassium hydroxide, as barium carbonate is insoluble in water. This allows the use of indicators such as phenolphthalein or thymolphthalein (with alkaline colour changes) without the risk of titration errors due to the presence of carbonate ions, which are much less basic. Barium hydroxide is occasionally used in organic synthesis as a strong base, for example for the hydrolysis of esters and nitriles, and as a base in aldol condensations. It has been used to hydrolyse one of the two equivalent ester groups in dimethyl hendecanedioate. Barium hydroxide is