BOM / UTF-8 cleanup tool

Remove BOM (Byte Order Mark)

Detect and remove hidden UTF-8 Byte Order Mark characters from text or files. Fix broken headers, weird JSON output, and invisible characters in one clean step.

Remove BOM Online

Paste text with a BOM, or upload a file. The tool will clean it instantly.

UTF-8 BOM remover
Input chars0
Output chars0
BOM detectedNo
StatusReady
Tip: BOM usually appears at the start of UTF-8 files and can break PHP headers, JSON parsing, and some text processing workflows.

What is the Remove BOM Tool?

A BOM (Byte Order Mark) is an invisible Unicode marker that may appear at the beginning of UTF-8 text files. Most of the time it is harmless, but in some workflows it causes annoying issues such as broken output, “headers already sent” errors in PHP, or unexpected whitespace in web applications.

Why removing the Byte Order Mark is critical

1. Fix PHP header errors Hidden BOM bytes can trigger output before headers, causing “headers already sent” problems.
2. Prevent JSON issues Some JSON parsers fail when a BOM appears before the opening brace or bracket.
3. Clean invisible characters Remove ghost whitespace that can make files behave strangely in editors or scripts.

How to use the BOM remover

1
Paste your text

Put your text or code into the input box.

2
Check or remove

Use Detect BOM to check, or Remove BOM to clean it instantly.

3
Copy or download

Copy the cleaned output or download it as a text file.

4
Use safely

The tool removes only the BOM at the start, not your actual content.

What this tool removes

This tool targets the following invisible BOM-related issue:

  • UTF-8 BOM sequence at the beginning of the text
  • Leading invisible characters that may interfere with code or content

Common developer use cases

PHP files Prevent header warnings, blank output, or broken page rendering.
JSON APIs Keep API responses clean so parsers do not fail on hidden bytes.
Config files Clean text files, CSVs, and code snippets before deployment.

Frequently asked questions

Is BOM necessary in UTF-8? Usually no. UTF-8 does not need a BOM for most modern systems and web workflows.
Can I see the BOM character? Not in a normal text editor. It is invisible, which is why it causes so much confusion.
Will this change the rest of my text? No. It removes only the BOM at the start if it exists, and leaves the rest untouched.
Is this safe for code files? Yes. It is designed to clean the beginning of the file without changing your code content.