ASCII code for form feed
12
Form Feed — a control character, not printable
| Decimal | 12 |
| Hexadecimal | 0x0C |
| Octal | 0014 |
| Binary | 00001100 |
| HTML entity |  |
| String escape | \f |
What it is
Ejected the page on a printer. Still used as a page break in some plain-text documents and as a section separator in Lisp and Emacs source files.
The full entry
ASCII 12 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for form feed?
The ASCII code for form feed is 12 in decimal, 0x0C in hexadecimal and 0014 in octal.
What is form feed in binary?
00001100 — eight bits, though ASCII only defines seven, so the top bit is always zero.
How do I write form feed in a string?
Most languages accept the escape \f. Writing the raw character instead works in some contexts and breaks in others, which is what the escape exists to avoid.
Other characters
- ASCII code for carriage return — 13
- ASCII code for shift out — 14
- ASCII code for shift in — 15
- ASCII code for data link escape — 16
- ASCII code for device control 1 (xon) — 17
- ASCII code for device control 2 — 18
- ASCII code for device control 3 (xoff) — 19
- ASCII code for device control 4 — 20
- ASCII code for negative acknowledge — 21
- ASCII code for synchronous idle — 22
- ASCII code for end of transmission block — 23
- ASCII code for cancel — 24
Every character by name · The ASCII table · Text to binary converter