The addition of carbon dioxide or a carboxyl group into an organic molecule or compound, thus forming carboxylic acid or carboxylate.