BOM

BOM

Encoding & Standards

Die Byte-Reihenfolge-Markierung (U+FEFF) am Anfang einer Textdatei, die die Byte-Reihenfolge (Endianness) bei UTF-16/UTF-32-Kodierungen angibt.

The BOM is a special Unicode character used to signal the byte order of a text stream. In UTF-16, it distinguishes between little-endian (FF FE) and big-endian (FE FF) formats.

In UTF-8, a BOM (EF BB BF) is sometimes added but is not recommended — it can cause issues with scripts, JSON parsing, and Unix tools that don't expect it. Many text editors add a UTF-8 BOM by default, which can lead to subtle bugs.

Modern best practice: use UTF-8 without BOM for web content and data files.

Verwandte Begriffe

UTF-16 UTF-16
Eine Unicode-Kodierung variabler Breite, die 2 oder 4 Bytes pro Zeichen verwendet und intern von JavaScript, Java und Windows genutzt wird.
UTF-32 UTF-32
Eine Unicode-Kodierung fester Breite, die genau 4 Bytes pro Zeichen verwendet und eine direkte Codepoint-Zuordnung auf Kosten des Speicherplatzes ermöglicht.
UTF-8 UTF-8
Eine Unicode-Kodierung variabler Breite, die 1 bis 4 Bytes pro Zeichen verwendet und im Web vorherrschend ist (mehr als 98 % aller Websites).

Verwandte Werkzeuge

🔢 Unicode-Suche Unicode-Suche
Geben Sie einen Codepoint wie U+1F600 ein und erhalten Sie das Emoji, Kodierungsdetails, UTF-8/16-Bytes und HTML-Entities.