DevKits

ASCII 248

Character 248 (ø)

Latin-1 Supplement

Latin small letter with diacritic. Used in Northern European alphabets.

Common uses & context

Decimal 248 (0xF8) is Character 248, part of the Latin-1 Supplement (128–255). Latin small letter with diacritic. Used in Northern European alphabets. It renders as 'ø' and its binary byte is 11111000.

This is where single-byte ASCII ends and encoding matters. In Latin-1 (ISO-8859-1) 'ø' is the single byte 0xF8. In UTF-8 — today's default for the web — the same character is the multi-byte sequence 0xC3 0xB8. 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+00F8, and in HTML you can write it as ø.

All encodings at a glance

Decimal248
Hexadecimal0xF8
Octal0370
Binary11111000
HTML numeric entityø
URL encoding%F8
UTF-8 bytes0xC3 0xB8

Code snippets

JavaScript

String.fromCharCode(248); // "ø"
248.toString(16); // "f8"

Python

chr(248)           # control char ø
ord(chr(248))      # 248
hex(248)           # '0xf8'

HTML

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

Programming notes

  • Single byte 0xF8 in Latin-1, but the multi-byte sequence 0xC3 0xB8 in UTF-8 — never assume one byte per character above code 127.
  • Unicode code point U+00F8; HTML numeric entity &#248;.
  • 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+00F8. In UTF-8 it encodes to the byte sequence 0xC3 0xB8. In legacy Latin-1 (ISO-8859-1) it is a single byte 0xF8, which is why Latin-1 files often appear as mojibake when interpreted as UTF-8.

Frequently asked questions

What character is ASCII code 248?

ASCII code 248 is the character 'ø' (Character 248). In hexadecimal it is 0xF8, in octal 0370, and in binary 11111000.

What is 0xF8 in ASCII?

Hexadecimal 0xF8 equals decimal 248, which is the character 'ø' (Character 248). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0xF8 = 248) and look up that code point.

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

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

Is 'ø' part of standard ASCII?

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

Nearby codes

Encode & convert this character