Tested tool guide
Tested browser tools
Checked August 15, 2026
What BOM (Byte Order Mark) Tool does, with a checked example
This tool inspects a file's leading bytes to tell you whether it starts with a byte order mark, then lets you add or strip one. A BOM is a short byte sequence - EF BB BF for UTF-8, FE FF or FF FE for UTF-16 - that some editors write automatically to signal encoding and byte order. The surprise: a UTF-8 BOM is legal but optional, and plenty of parsers (shell scripts, JSON readers, some CSV importers) choke on it or render it as a stray character even though the file looks completely normal when opened in a text editor.
Worked example
A concrete input and expected output from the current implementation.
Input
Hello (save as UTF-8, BOM: Add)
->
Expected output
EF BB BF 48 65 6C 6C 6F
The tool prepends the 3-byte UTF-8 BOM signature (EF BB BF) to the existing UTF-8 bytes of "Hello" (48 65 6C 6C 6F); the visible characters are unchanged, only the marker is added.