# VBScript Chr Function
* * Complete VBScript Reference Manual](#)
* * *
The Chr function converts a specified ANSI character code into a character.
**Note:** Numbers between 0 and 31 represent non-printable ASCII codes; for example, Chr(10) returns a line feed character.
### Syntax
Chr(charcode)
| Parameter | Description |
| :--- | :--- |
| charcode | Required. A number identifying a character. |
## Example
## Example 1
document.write(Chr(65) & "
")
document.write(Chr(66) & "
")
document.write(Chr(67) & "
")
document.write(Chr(97) & "
")
document.write(Chr(98) & "
")
document.write(Chr(99) & "
")
Output of the above example:
A
B
C
a
b
c
[Try it yourself Β»](#)
## Example 2
document.write(Chr(34) & "
")
document.write(Chr(35) & "
")
document.write(Chr(36) & "
")
document.write(Chr(37) & "
")
Output of the above example:
"
#
$
%
[Try it yourself Β»](#)
* * Complete VBScript Reference Manual](#)
Func Chr
π
2026-06-13 | π C#
YouTip