All representations
| Format | Value |
|---|
| Name | LF – Line feed (newline) |
| Decimal | 10 |
| Hexadecimal | 0x0A |
| Octal | 012 |
| Binary | 00001010 |
| HTML numeric entity | / 
 |
| Unicode code point | U+000A |
| URL encoded | %0A |
| Escape sequence | \n |
| UTF-8 bytes | 0A (one byte, same as ASCII) |
Notes
- Unix, Linux and macOS end lines with LF alone. Windows uses CR LF (13, 10).
- Written as
\n in most programming languages. - Caret notation:
^J.
Nearby codes
| Dec | Hex | Char | Name |
|---|
| 8 | 08 | BS | BS – Backspace |
| 9 | 09 | HT | HT – Horizontal tab |
| 11 | 0B | VT | VT – Vertical tab |
| 12 | 0C | FF | FF – Form feed |
Get this code in code
JavaScript String.fromCharCode(10)
Python chr(10)
C (char)10