DevKits

ASCII 240

Character 240 (ð)

Latin-1 Supplement

Latin small letter ð. Common in Western European languages.

Common uses & context

Decimal 240 (0xF0) is Character 240, part of the Latin-1 Supplement (128–255). Latin small letter ð. Common in Western European languages. It renders as 'ð' and its binary byte is 11110000.

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

All encodings at a glance

Decimal240
Hexadecimal0xF0
Octal0360
Binary11110000
HTML numeric entityð
URL encoding%F0
UTF-8 bytes0xC3 0xB0

Code snippets

JavaScript

String.fromCharCode(240); // "ð"
240.toString(16); // "f0"

Python

chr(240)           # control char ð
ord(chr(240))      # 240
hex(240)           # '0xf0'

HTML

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

Programming notes

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

Frequently asked questions

What character is ASCII code 240?

ASCII code 240 is the character 'ð' (Character 240). In hexadecimal it is 0xF0, in octal 0360, and in binary 11110000.

What is 0xF0 in ASCII?

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

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

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

Is 'ð' part of standard ASCII?

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

Nearby codes

Encode & convert this character