DevKits

ASCII 70

Latin Capital Letter F (F)

Printable ASCII

Uppercase letter F. ASCII code 70. Hex value 15 — the last hex digit. Codes 65-70 cover all letter hex digits A-F.

Common uses & context

Theuppercase letter 'F' has ASCII code 70 (0x46). Its lowercase twin 'f' sits exactly 32 code points away at 102. That constant gap of 32 — a single bit, 0x20 — is why changing letter case is one of the cheapest operations a CPU can do: you flip or mask one bit rather than looking anything up. Uppercase letter F. ASCII code 70. Hex value 15 — the last hex digit. Codes 65-70 cover all letter hex digits A-F.

The uppercase Latin letters form the contiguous block 65–90, so range checks like c >= 'A' && c <= 'Z' work without a lookup table. To convert 'F' to its lowercase form youset bit 5: 'F' | 0x20 gives 'f'. Because uppercase (65–90) sorts before lowercase (97–122) in raw byte order, naive sorting places every capitalized wordahead of every lowercase one — the reason "Zebra" comes before "apple" unless you sort case-insensitively.

'F' is also a hexadecimal digit: in base-16 it represents the value 15. Hex uses 0–9 for 0–15's firstten values and A–F (or a–f) for 10–15, so 'F' is valid inside literals like 0xFF and colour codes like #FFFFFF.

All encodings at a glance

Decimal70
Hexadecimal0x46
Octal0106
Binary01000110
HTML numeric entity&#70;
URL encoding%46
UTF-8 bytes0x46

Code snippets

JavaScript

String.fromCharCode(70); // "F"
70.toString(16); // "46"

Python

chr(70)           # 'F'
ord(chr(70))      # 70
hex(70)           # '0x46'

HTML

&#70;   <!-- numeric entity (no named entity for this character) -->

Programming notes

  • Case toggle: 'F' | 0x20 = 'f' (a single-bit change).
  • Letter test: c >= 'A' && c <= 'Z' — the uppercase block is contiguous (65–90).
  • As a hex digit, 'F' has value 15 in base-16.

Frequently asked questions

What character is ASCII code 70?

ASCII code 70 is the character 'F' (Latin Capital Letter F). In hexadecimal it is 0x46, in octal 0106, and in binary 01000110.

What is 0x46 in ASCII?

Hexadecimal 0x46 equals decimal 70, which is the character 'F' (Latin Capital Letter F). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x46 = 70) and look up that code point.

How do I write the character with code 70 in code?

In JavaScript use String.fromCharCode(70); in Python use chr(70); in HTML use the numeric entity &#70;. In a URL it is percent-encoded as %46, and in UTF-8 it is stored as the byte sequence 0x46.

What is the lowercase form of 'F' in ASCII?

'F' is code 70; its lowercase counterpart 'f' is code 102. The two always differ by 32, so you can convert by adding 32 (or setting bit 0x20).

Nearby codes

Encode & convert this character