DevKits

ASCII 241

Character 241 (ñ)

Latin-1 Supplement

Latin small letter ñ. Common in Western European languages.

Common uses & context

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

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

All encodings at a glance

Decimal241
Hexadecimal0xF1
Octal0361
Binary11110001
HTML numeric entityñ
URL encoding%F1
UTF-8 bytes0xC3 0xB1

Code snippets

JavaScript

String.fromCharCode(241); // "ñ"
241.toString(16); // "f1"

Python

chr(241)           # control char ñ
ord(chr(241))      # 241
hex(241)           # '0xf1'

HTML

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

Programming notes

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

Frequently asked questions

What character is ASCII code 241?

ASCII code 241 is the character 'ñ' (Character 241). In hexadecimal it is 0xF1, in octal 0361, and in binary 11110001.

What is 0xF1 in ASCII?

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

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

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

Is 'ñ' part of standard ASCII?

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

Nearby codes

Encode & convert this character