Charset Detection
Detect text encoding and analyze character distribution and Unicode ranges.
Input Text
Usage Guide
This tool detects text encoding and analyzes character distribution, helping developers quickly understand text composition.
Features
- Count total characters, unique characters, and UTF-8 byte size
- Analyze character distribution across Unicode ranges (ASCII, CJK, Emoji, etc.)
- Identify invisible characters (zero-width spaces, BOM, etc.) and control characters (TAB, LF, etc.)
- Recommend optimal encoding scheme based on character composition
Steps
- Paste or type text to detect in the input box
- Click the "Example" button to load sample text with multiple charsets
- View statistics cards for overall summary
- View character distribution bar and Unicode range details table
- Check the special character section for potential problematic characters
Notes
- All computation is done locally in the browser; text is never uploaded to any server
- Byte count is calculated using UTF-8 encoding; Chinese characters typically take 3 bytes
- High-codepoint Unicode characters like Emoji may be composed of surrogate pairs; counts are by code point
- Invisible characters may cause display issues in editors; enabling invisible character display is recommended