Toolman

ASCII 13

ASCII 13 is Carriage Return — the control character CR.

Every representation

CharacterCR (not printable)
NameCarriage Return
Decimal13
Hexadecimal0x0D
Octal0015
Binary00001101
HTML entity
Escape sequence\\r
UnicodeU+000D
KeyboardCtrl+M
GroupControl 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

Full ASCII table · Text to binary converter · Number base converter