Toolman

ASCII 10

ASCII 10 is Line Feed — the control character LF.

Every representation

CharacterLF (not printable)
NameLine Feed
Decimal10
Hexadecimal0x0A
Octal0012
Binary00001010
HTML entity

Escape sequence\\n
UnicodeU+000A
KeyboardCtrl+J
GroupControl character

What it is for

Moved the paper up one line without moving the carriage. Unix and macOS use it alone to end a line; Windows uses CR+LF. This single difference is behind most "the whole file shows as changed" diffs.

Where the number comes from

Codes 0 to 31 were reserved for control: instructions to a teleprinter rather than characters to print. Code 10 is Ctrl+J because the Ctrl key was originally wired to clear the top two bits of whatever you typed, mapping the letter J at 74 down to 10.

Frequently asked questions

What is ASCII 10?

Line Feed (LF), a control character. In hexadecimal it is 0x0A, in octal 0012, and in binary 00001010.

How do I type ASCII 10?

Press Ctrl+J in a terminal. In a string literal you can write it as \\n or \\x0A in most languages.

Is ASCII 10 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