Text · Made a little simpler

BOM Detector and Remover

Identify UTF-8, UTF-16 or UTF-32 marks from a file prefix. Compare overlapping signatures and download a copy with the selected bytes removed.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

The prefix is checked as bytes. The export preserves every byte after the selected mark.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

BOM Detector and Remover: how to use it

  1. Choose Original file bytes and open a local file. For pasted text, switch to Pasted Unicode text.
  2. Check the leading bytes. If two signatures match, choose the encoding used when the source was saved.
  3. Download a copy with the mark removed, or copy the cleaned pasted text.

Limits and notes

Checks leading UTF-8, UTF-16LE, UTF-16BE, UTF-32LE and UTF-32BE signatures. Supports local files up to 128 MiB and pasted text up to 200,000 UTF-16 code units. The result concerns the prefix, not full-file encoding validity.

How your privacy works →

BOM Detector and Remover: common questions

What does FF FE 00 00 mean at the start of a file?

It can be the four-byte UTF-32LE signature or a two-byte UTF-16LE signature followed by a zero code unit. Choose using the file's source encoding.

Does removing the BOM also convert UTF-16 to UTF-8?

The file download removes only the selected leading bytes and preserves the source encoding of the payload.

Will a U+FEFF later in the file be removed?

The check examines the beginning of the file only. Later bytes and text remain in the exported copy.

Guides