Toolman

ASCII code for form feed

12

Form Feed — a control character, not printable

Decimal12
Hexadecimal0x0C
Octal0014
Binary00001100
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

Every character by name · The ASCII table · Text to binary converter