Remove non-ascii character in string December 23, 2022 by Tarik ASCII is in range of 0 to 127, so: str.replace(/[^\x00-\x7F]/g, "");