Byte Order Mark (BOM) Detector

Paste text to instantly detect whether it contains a Byte Order Mark, see the BOM bytes in hex, and copy a clean BOM-free version.

Use the Byte Order Mark (BOM) Detector

Known BOM Signatures

Encoding Hex Bytes Length
UTF-8EF BB BF3 bytes
UTF-16 LEFF FE2 bytes
UTF-16 BEFE FF2 bytes
UTF-32 LEFF FE 00 004 bytes
UTF-32 BE00 00 FE FF4 bytes

Detection Result

Paste text on the left to analyze

Copied!

Summary

A Byte Order Mark (BOM) is a special Unicode character (U+FEFF) placed at the very beginning of a text file to signal its encoding and byte order. While useful in some contexts, unexpected BOMs — especially the UTF-8 BOM — cause parsing errors, broken CSV imports, and garbled output in many programming environments. This tool lets you paste any text, instantly detects the presence and type of BOM, shows the raw hex bytes, and gives you a clean BOM-free copy.

How it works

  1. Paste or type your text into the input area.
  2. The tool reads the first 4 bytes of the text to identify known BOM signatures.
  3. If a BOM is found, the encoding type and hex bytes are displayed.
  4. View the automatically stripped BOM-free text in the output panel.
  5. Copy the result to clipboard with one click.

Use cases

  • Debug broken CSV or JSON files caused by a stray UTF-8 BOM.
  • Verify that source code files do not carry an unexpected BOM.
  • Check text copied from Windows Notepad or Microsoft Word.
  • Confirm encoding before uploading data to a database or API.
  • Strip the BOM from configuration files that break parser tools.
  • Inspect clipboard content when a script fails on the first byte.

Frequently Asked Questions

Last updated: 2026-05-23 · Reviewed by Nham Vu