A series of N‐halamine copolymers are synthesized by reacting hydantoinylacrylamide (HA) with acrylic acid (AA) in several mole ratios. The synthesized copolymers are characterized by Fourier transform infrared (FTIR) and 1H NMR and coated onto cotton fabrics. The coated cotton fabrics are rendered antibacterial by chlorinating with dilute household bleach solution. The ultraviolet (UVA) light stabilities of the resulting copolymers on the coated cotton fabrics are investigated; the results show that UVA exposure has minimal effect on the structure of the copolymers but can cause partial loss of the chlorine loading on the coated cotton fabrics. The coated cotton fabrics exhibit excellent antibacterial efficacies achieving inactivations of about six logs of Staphylococcus aureus and Escherichia coli O157:H7 within 1 min of contact time. The cotton fabrics coated with the copolymers would best be employed in disposable fabric applications because of lack of washing fastness due to the weak bonding interaction between the AA unit and cellulose. © 2018 Wiley Periodicals, Inc. J. Appl. Polym. Sci. 2019, 136, 47426.