The chemical reactions and pathways resulting in the formation of bilirubin monoglucuronide or bilirubin diglucuronide, water-soluble derivatives of bilirubin.