DevKits

ASCII 247

Division Sign (÷)

Latin-1 Supplement

Division sign (÷), the visual ÷ as opposed to the slash /.

Common uses & context

Decimal 247 (0xF7) is Division Sign, part of the Latin-1 Supplement (128–255). Division sign (÷), the visual ÷ as opposed to the slash /. It renders as '÷' and its binary byte is 11110111.

This is where single-byte ASCII ends and encoding matters. In Latin-1 (ISO-8859-1) '÷' is the single byte 0xF7. In UTF-8 — today's default for the web — the same character is the multi-byte sequence 0xC3 0xB7. Treating a Latin-1 byte as UTF-8 (or vice versa) is the usual reason accented letters and symbols turn into mojibake like é or €. The Unicode code point is U+00F7, and in HTML you can write it as ÷ or ÷.

All encodings at a glance

Decimal247
Hexadecimal0xF7
Octal0367
Binary11110111
HTML numeric entity÷
HTML named entity÷
URL encoding%F7
UTF-8 bytes0xC3 0xB7

Code snippets

JavaScript

String.fromCharCode(247); // "÷"
247.toString(16); // "f7"

Python

chr(247)           # control char ÷
ord(chr(247))      # 247
hex(247)           # '0xf7'

HTML

&divide;   <!-- named entity -->
&#247;   <!-- numeric entity -->

Programming notes

  • Single byte 0xF7 in Latin-1, but the multi-byte sequence 0xC3 0xB7 in UTF-8 — never assume one byte per character above code 127.
  • Unicode code point U+00F7; HTML entity &divide;.
  • If '÷' shows as mojibake, the encoding declared and the encoding used disagree — align both on UTF-8.

Unicode & UTF-8 note

In Unicode this is U+00F7. In UTF-8 it encodes to the byte sequence 0xC3 0xB7. In legacy Latin-1 (ISO-8859-1) it is a single byte 0xF7, which is why Latin-1 files often appear as mojibake when interpreted as UTF-8.

Frequently asked questions

What character is ASCII code 247?

ASCII code 247 is the character '÷' (Division Sign). In hexadecimal it is 0xF7, in octal 0367, and in binary 11110111.

What is 0xF7 in ASCII?

Hexadecimal 0xF7 equals decimal 247, which is the character '÷' (Division Sign). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0xF7 = 247) and look up that code point.

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

In JavaScript use String.fromCharCode(247); in Python use chr(247); in HTML use the numeric entity &#247; or the named entity &divide;. In a URL it is percent-encoded as %F7, and in UTF-8 it is stored as the byte sequence 0xC3 0xB7.

Is '÷' part of standard ASCII?

No. Standard ASCII covers codes 0–127 only. '÷' is code 247, part of the Latin-1 Supplement (128–255, sometimes called "extended ASCII"). It is a single byte 0xF7 in Latin-1 but a multi-byte sequence (0xC3 0xB7) in UTF-8.

Nearby codes

Encode & convert this character