Functional groups based on halides, such as fluorine (F), chlorine (Cl), bromine (Br), and iodine (I), are crucial for understanding the chemical reactivity of graphitic nanomaterials. Except for I, halogens exhibit electronegativity greater than carbon (C); therefore, charge transfer from carbon to halogen is expected. First-principles density functional theory calculations were performed to determine the role of different Cl-functional groups (methyl-trichloride, ethyl-trichloride, chloride, acyl-chloride, vinyl-chloride, acetyl hypochlorite, chloramines, sulfonyl chloride, and more) on the electronic properties of graphene and graphene nanoribbons (GNRs). GNRs with zigzag edges (ZGNRs) and armchair edges (AGNRs) were studied. We analyzed the optimized structures, band structure, density of states, cohesive energy, and band gap. Our results revealed that the based-Cl functional groups can provide an alternative route to activate the borders and surfaces of sp2 carbon materials. Methyl-trichloride and acyl-chloride can induce magnetism and metallicity. Chloride and acyl-chloride are the most energetically stable functional groups attached to the edges. Surprisingly, methyl-trichloride or acyl-chloride functionalizing the surface of the AGNRs showed a direct (indirect) band gap for states with spin-up (spin-down). The results of aromatic (chlorobenzene- and dichlorobenzene-like structures) functionalization considering F, Cl, Br, and I are also shown. Finally, –F2 and –ClF functionalization cases are discussed.