LF
Line Feed
ControlASCII 10 | Hex 0x0A | U+000A
LF (code 10) moves the cursor down one line. Unix and Linux use LF alone as the line ending, macOS adopted this convention in 2001 with OS X, and most modern text protocols (HTTP, SMTP headers) specify CRLF but tolerate bare LF. Git normalizes line endings on checkout using the core.autocrlf setting. The difference between LF (Unix), CRLF (Windows), and the old CR-only (classic Mac OS) line endings is one of the most common cross-platform text handling issues.
ASCII Code
Decimal
10
Hexadecimal
0x0A
Octal
12
Binary
0000 1010
Unicode
Code Point
U+000A
Escape
\u000a
UTF-8 Hex
0xE2 0x90 0x8A
UTF-8 Binary
111000101001000010001010
UTF-16
0x000A
UTF-32
0x0000000A
HTML Entities
Numeric
Hex


Named


How to Type
HTML Entity
Unicode InputU+000A
Source Code Representations
C / Java
"\u000A"CSS
\000AJavaScript
"\u000A"Perl
\x{000A}Python 2
u"\u000A"Python 3
\u000ARuby
\u{000A}Frequently Asked Questions
What is ASCII code 10?
ASCII code 10 represents the Line Feed character. In hexadecimal it is 0x0A, in binary 0000 1010, and in octal 12. This is a non-printable control character used for device signaling and data transmission control.
How do I type ASCII 10 on a keyboard?
Control characters are typically entered using Ctrl key combinations. For example, Ctrl+J produces ASCII 10 in most terminal emulators. You can also use the HTML entity in web pages.