The invention provides ionic polymers (IP) consisting of anions and a polymeric backbone containing cations. The invention also provides the ionic polymers incorporated in membranes or attached to solid supports and use of the ionic polymers in processing of biomass