Guides

Determine why UTF-16 conversion needs a byte order mark

Follow these steps using a local file and keep the original.

Determine why UTF-16 conversion needs a byte order mark
Actual local tool workspace with a synthetic sample.

Prepare the example

Create disposable test input with the exact content below (UTF-8 text unless marked hex). For duplicate filenames, save the two files in separate folders.

without-bom.txt — hex bytes
41 00 42 00

Create a binary file containing 41 00 42 00 without a BOM.

Run the workflow

  1. Open the related tool below and load the prepared file(s).
  2. The UTF-16 conversion refuses ambiguous byte order; identify the source encoding first.

Verified example result

This example was reproduced in Chrome on 2026-12-04 using FileTypeKit 0.9.0 and synthetic data. The expected result or expected refusal was checked; this does not establish support for every real file.

The downloaded output was checked against the expected properties below.

Observed status: UTF-16 byte-order mark required

Limitations and what to verify

Do not prepend an arbitrary BOM to unknown data.

Open related tool