ASCII 13
ASCII 13 is Carriage Return — the control character CR.
Every representation
| Character | CR (not printable) |
| Name | Carriage Return |
| Decimal | 13 |
| Hexadecimal | 0x0D |
| Octal | 0015 |
| Binary | 00001101 |
| HTML entity | |
| Escape sequence | \\r |
| Unicode | U+000D |
| Keyboard | Ctrl+M |
| Group | Control character |
What it is for
Returned the print head to the start of the line without advancing the paper. Windows line endings are CR followed by LF because a teletype needed both movements. A lone CR is what lets a progress bar overwrite itself.
Where the number comes from
Codes 0 to 31 were reserved for control: instructions to a teleprinter rather than characters to print. Code 13 is Ctrl+M because the Ctrl key was originally wired to clear the top two bits of whatever you typed, mapping the letter M at 77 down to 13.
Frequently asked questions
What is ASCII 13?
Carriage Return (CR), a control character. In hexadecimal it is 0x0D, in octal 0015, and in binary 00001101.
How do I type ASCII 13?
Press Ctrl+M in a terminal. In a string literal you can write it as \\r or \\x0D in most languages.
Is ASCII 13 printable?
No. Codes 0 to 31 and 127 are control characters — they were instructions to a teleprinter rather than marks on paper, and most terminals show nothing for them.
Nearby codes
- ASCII 6 — ACK
- ASCII 7 — BEL
- ASCII 8 — BS
- ASCII 9 — HT
- ASCII 10 — LF
- ASCII 11 — VT
- ASCII 12 — FF
- ASCII 14 — SO
- ASCII 15 — SI
- ASCII 16 — DLE
- ASCII 17 — DC1
- ASCII 18 — DC2
- ASCII 19 — DC3
- ASCII 20 — DC4
Full ASCII table · Text to binary converter · Number base converter