LF

ASCII Character: Line Feed

ASCII Code 10 · Unicode U+000A · Hex 0x0A

line-feed newline lf

About the Line Feed Character

ASCII code 10 (0x0A) represents the Line Feed (LF) control character. This is a non-printable character defined in the original ASCII standard (1963). It belongs to the format effector group, which controls the layout and positioning of text in output devices like printers and terminals. Control characters occupy codes 0–31 and 127 in the ASCII table and were originally designed for controlling hardware devices, managing communication links, and formatting text output. While many control characters have become obsolete with modern computing, several like LF (Line Feed), CR (Carriage Return), TAB, and ESC remain essential in everyday programming and text processing.

Encoding Details

ASCII Code 10
Hexadecimal 0x0A
Octal 012
Binary 00001010
Unicode U+000A
Unicode Name LINE FEED
HTML Numeric 

HTML Entity
URL Escape %0A
UTF-8 (Hex) 0A
Quoted-Printable =0A

Source Code Examples

JavaScript
// Using escape sequence
let char = '\n';
// Using String.fromCharCode
let char2 = String.fromCharCode(10);
Python
# Using escape sequence
char = '\n'
# Using chr()
char = chr(10)
HTML
<!-- Using HTML entity -->
&#10;
C#
// Using escape sequence
char c = '\n';
// Using cast
char c2 = (char)10;

Navigate

Copied!