BOM Add / Remove Tool

Insert or strip the UTF-8 BOM (EF BB BF) from text

Ad placeholder (leaderboard)

The byte-order mark is a tiny, invisible character that causes outsized trouble. Some programs demand it, others choke on it. This tool lets you add or remove it precisely and confirms the change by byte count.

How it works

The BOM is the single Unicode codepoint U+FEFF. In UTF-8 it is serialised as three bytes:

EF BB BF

Adding a BOM prepends U+FEFF to the text if it is not already there. Removing a BOM strips one leading U+FEFF if present. To make the otherwise-invisible change verifiable, the tool encodes both the input and output to UTF-8 and reports the byte lengths — a difference of exactly three bytes is the BOM.

Tips and notes

  • For Excel CSV import of UTF-8 data, add the BOM so accented characters render correctly.
  • For shell scripts, JSON, PHP, and concatenated files, remove the BOM — a leading U+FEFF is a frequent cause of mysterious parse errors.
  • The output is plain text; paste it into your editor and save as UTF-8, or copy it into the destination application directly.
Ad placeholder (rectangle)