TOOL
UTF-8 Sanitize (Lone Surrogates)
Sanitizes text to valid UTF-8: lone surrogates are replaced with U+FFFD; any other input is returned unchanged. This is not a general encoding converter — GBK/Shift-JIS/Big5 and other encodings are not decoded.
Try an example:
Local only
Recent history
No history yet
How to use
- Type or paste your input into the input box.
- Adjust any parameters if needed.
- Copy or download the result.
Frequently asked questions
- Is my data uploaded anywhere?
- No. All processing happens locally in your browser with no server round-trip.
- Does this tool work offline?
- Yes. Once the page loads, the tool runs entirely client-side and needs no network connection.
Related tools
File Hash
Compute a simple hash of file content. TOOL
File Info
Get file content info: size, lines, words. TOOL
File Diff
Line-by-line diff of two files. TOOL
File Add BOM
Add UTF-8 BOM to file content. TOOL
JSON CSV Converter
Convert between JSON and CSV formats online. Free, private, and 100% client-side. TOOL