Skip to tool

Python chr() Online

Create character(s) from code points.

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

Python example

print("".join(chr(code) for code in (72, 105)))
Expected native output
Hi

Using this operation in Python

The interactive result uses JavaScript. Python str stores Unicode text. Encode to bytes when an API expects UTF-8 or another byte representation.

Python reference