Skip to tool

JavaScript String.fromCharCode() Online

Create a JavaScript string from decimal UTF-16 code units.

The output updates as you type. The tool processes input in your browser.

Worked example

Enter decimal numbers separated by spaces. Check whether the target API expects a byte, UTF-16 code unit, or Unicode code point.

Sample input
72 105
Sample output
Hi

JavaScript example

console.log(String.fromCharCode(72, 105));
Expected native output
Hi

Using this operation in JavaScript

The interactive result uses JavaScript. JavaScript string indexes count UTF-16 code units. Use code-point iteration when working with supplementary Unicode characters.

JavaScript reference