UTF-8 text processor
Normalize UTF-8 text BOMs and line endings while reporting real byte counts.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Text
Processed result
Shows normalized text and UTF-8 bytes.
Enter text to process
: 0
What this tool does
- Normalize cross-platform line endings.
- Add or remove a UTF-8 BOM.
- Check Unicode text byte counts.
Example
Input
Hello world
Output
Hello world
Unpaired surrogates are rejected and TextEncoder reports UTF-8 bytes.
Frequently asked questions
Is a BOM added by default?
No, it is removed by default.
Are CRLF endings supported?
Yes, endings can be normalized to CRLF.
How are unpaired surrogates handled?
They are rejected with invalid-utf8.
Keywords:UTF-8文本编码BOMnewlinetext encoding