Strip BOM
Remove the Byte Order Mark (\uFEFF) from pasted text. Fixes common issues with Excel-generated CSVs.
—
The invisible character at the start of a file
BOM stands for byte order mark, an optional marker at the start of a file that signals its encoding. In UTF-16 it does a real job, indicating byte order. In UTF-8 it is unnecessary, yet Notepad and various Microsoft tools add it anyway, writing the three bytes EF BB BF before the first real character.
The damage is always the same: an invisible character where nothing should be. In PHP, output before a header triggers "headers already sent". In CSV, the first header column gets junk in its name and the import cannot find the field. In JSON, the parser rejects the entire file. In a shell script, the shebang line stops being recognised. Paste the text here and the page reports whether a BOM was present and hands back the content without it.
Detection looks at the first character and checks for U+FEFF. Worth knowing: the browser sometimes strips the marker during paste, which makes the page report none even for content that had a BOM on disk — to check the file itself, use hexdump -C file | head -1 and look at the first three bytes. To save without the marker, virtually every editor offers a "UTF-8 without BOM" encoding option.
Frequently asked questions
Is a BOM in UTF-8 wrong?
How do I strip the BOM from many files at once?
My JSON fails at position 0 and I cannot see anything wrong. What causes it?
Related Tools
WCAG Contrast Checker
Check the contrast between text and background colors per WCAG 2.1 guidelines. Shows the ratio and AA/AAA levels for normal and large text.
Image to ASCII
Convert any image into ASCII art from each pixel's brightness. Configurable width and density.
Unicode Text Styles
Transform your text into decorative styles using Unicode characters: bold, italic, fraktur, double-struck and monospace.
Online Notepad
Online notepad that automatically saves in the browser via localStorage. Your notes persist between sessions without any account or login.
BOM Detector
Check whether an uploaded file starts with a Byte Order Mark (UTF-8, UTF-16-LE, UTF-16-BE, UTF-32). Useful for encoding issues.
Slugify
Convert titles and text into URL-friendly slugs. Removes accents, converts to lowercase and replaces spaces with hyphens. Essential for SEO.