How to convert Unicode values to characters in JavaScript ? Last Updated : 14 Mar, 2023 Comments Improve Suggest changes Like Article Like Report The purpose of this article is to get the characters of Unicode values by using JavaScript String.fromCharCode() method. This method is used to return the characters indicating the Unicode values. Description: Unicode is a character encoding standard that assigns a unique number to every character, symbol, and punctuation mark used in written language. JavaScript supports Unicode, and you can convert Unicode values to characters using the built-in String.fromCharCode() method. Syntax: String.fromCharCode( unicodeValue ); Approaches: There are two approaches to converting Unicode values to characters in JavaScript: Approach 1: Convert a Single Unicode Value to CharacterTo convert a single Unicode value to a character, you can pass the Unicode value to the String.fromCharCode() method as an argument. JavaScript <script> const unicodeValue = 65; // Unicode value for capital letter A const character = String.fromCharCode(unicodeValue); console.log(character); // Output: A </script> Output: A Approach 2: Convert a Sequence of Unicode Values to a StringTo convert a sequence of Unicode values to a string, you can pass an array of Unicode values to the String.fromCharCode() method as arguments using the spread operator. JavaScript <script> const unicodeValues = [103, 101, 101, 107, 115]; // Unicode values for the characters H, e, l, l, o const string = String.fromCharCode(...unicodeValues); console.log(string); // Output: geeks </script> Output: geeks Comment More infoAdvertise with us Next Article How to convert Unicode values to characters in JavaScript ? T tupakulateja3 Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Questions Similar Reads Get Unicode Character Value in JavaScript Here are various ways to get Unicode character values in JavaScript 1. Using charCodeAt() to Get Unicode ValuesThis code defines a string letter containing the character "A". It then uses the charCodeAt() method to get the Unicode value of the first character (index 0) and logs the result, which is 5 min read How to Convert Special Characters to HTML in JavaScript? In JavaScript, special characters like less-than (<), greater-than (>), and others can cause rendering issues in HTML because they are interpreted as tags. To display these characters correctly in HTML, it's necessary to convert them into their respective HTML entities. This process prevents t 2 min read How to convert character to ASCII code using JavaScript ? The purpose of this article is to get the ASCII code of any character by using JavaScript charCodeAt() method. This method is used to return the number indicating the Unicode value of the character at the specified index. Syntax: string.charCodeAt(index); Example: Below code illustrates that they ca 1 min read How to escape & unescape HTML characters in string in JavaScript? Escaping and unescaping HTML characters is important in JavaScript because it ensures proper rendering of content, preventing HTML injection attacks and preserving text formatting when displaying user-generated or dynamic content on web pages. Escape HTML Characters< : <> : >" : 3 min read How to Convert JSON to base64 in JavaScript ? Base 64 is the encoding scheme that represents binary data in a printable ASCII format, commonly used for data serialization and transmission. Table of Content Using btoa functionUsing Manual ConversionUsing btoa functionIn this approach, we're using btoa to encode a UTF-8 string representation of a 2 min read Like