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.

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

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.

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. Use the "Strip BOM" button to get a clean copy with the BOM removed.
  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-06-09 · Reviewed by Nham Vu