Last Updated : 11 Jul, 2025
JavaScript String normalize() method returns a Unicode normalization form of a given input string. If the given input is not a string, then at first it will be converted into a string then this method will work.
Syntaxstring.normalize([form])Parameters
Here the parameter is formed which is of many types-
These all say the Unicode Normalization Form.
Return valueIt returns a new string containing the Unicode Normalization Form of the given input string.
Example 1: This example shows the basic use of the string.normalize() method in Javascript.
javascript
let a = "Geeks For Geeks";
b = a.normalize('NFC')
c = a.normalize('NFD')
d = a.normalize('NFKC')
e = a.normalize('NFKD')
console.log(b, c, d, e);
Output:
Geeks For GeeksGeeks For GeeksGeeks For GeeksGeeks For Geeks
Example 2: This example shows the basic use of the string.normalize() method in Javascript.
javascript
// Taking a string as input.
let a = "GeeksForGeeks";
// calling normalize method.
b = a.normalize('NFC')
c = a.normalize('NFD')
d = a.normalize('NFKC')
e = a.normalize('NFKD')
// Printing normalised form.
console.log(b);
console.log(c);
console.log(d);
console.log(e);
Output:
GeeksForGeeks GeeksForGeeks GeeksForGeeks GeeksForGeeksSupported Browsers
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4