BOM manager (add / remove)
Add or strip the invisible UTF-8 byte order mark at the start of your text.
Related tools
BOM manager (add / remove)
The byte order mark is three invisible bytes — U+FEFF — that some editors and Windows tools stamp at the very start of a UTF-8 file. You never see it, but everything downstream does: a BOM makes a shell script fail on its first line, breaks a CSV import that expects a clean header, shows up as the mojibake before <?php or <?xml, and turns a JSON file into a parse error. This tool adds or removes it in one paste, and detects whether one is present without touching anything.
Remove strips exactly one leading BOM and leaves the rest of the text — including any deliberate zero-width no-break space in the middle — completely alone. Add prepends the BOM, but never a second one if it is already there, so it is safe to run twice. Detect reports the state and returns the text unchanged, for when you just need to know. The tally names what happened and gives the resulting UTF-8 byte count, where the BOM's three bytes are the only difference you will see.
Why would you ever add a BOM? A handful of tools still rely on it: Excel reads a BOM-less UTF-8 CSV as the local ANSI codepage and garbles accented names, so a BOM is the pragmatic fix for CSVs opened in Excel. For almost everything else — web servers, scripts, config files, source code — the BOM is a liability and removal is the answer.
Everything runs locally in your browser — your file content never leaves your device.