ASCII 12
Form Feed (FF)
Control character
Historically ejected a page on line printers. Some editors interpret it as a page break marker.
Common uses & context
Decimal 12 (0x0C) is Form Feed, a whitespace code.Historically ejected a page on line printers. Some editors interpret it as a page break marker.
Whitespace codes are printable in the sense that they occupy horizontal or vertical space, but they carry no ink. That makes FF a frequent source of hard-to-see bugs: trailing spaces that break string equality, mixed tabs and spaces that confuse indentation-sensitive languages, or the wrong newline convention (LF vs CRLF) between operating systems. Its binary byte is 00001100.
All encodings at a glance
| Decimal | 12 |
| Hexadecimal | 0x0C |
| Octal | 0014 |
| Binary | 00001100 |
| HTML numeric entity |  |
| URL encoding | %0C |
| UTF-8 bytes | 0x0C |
Code snippets
JavaScript
String.fromCharCode(12); // "FF"
12.toString(16); // "0c"Python
chr(12) # control char FF
ord(chr(12)) # 12
hex(12) # '0x0c'HTML
 <!-- numeric entity (no named entity for this character) -->Programming notes
- ▸Form Feed (code 12) is invisible but significant — trailing or mixed whitespace silently breaks string equality and diffs.
- ▸Normalize line endings and trim whitespace explicitly rather than assuming input is clean.
- ▸Its byte value 12 (0x0C) lets you match it precisely in a byte-level scan.
Frequently asked questions
What character is ASCII code 12?
ASCII code 12 is Form Feed (FF), a non-printing control/whitespace character. In hexadecimal it is 0x0C and in binary 00001100. It has no visible glyph — it controls formatting or hardware instead of drawing a symbol.
What is 0x0C in ASCII?
Hexadecimal 0x0C equals decimal 12, which is theForm Feed control character (FF). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x0C = 12) and look up that code point.
How do I write the character with code 12 in code?
In JavaScript use String.fromCharCode(12); in Python use chr(12); in HTML use the numeric entity . In a URL it is percent-encoded as %0C, and in UTF-8 it is stored as the byte sequence 0x0C.